:root {
  --primary: #2563eb;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card: #ffffff;
}

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 20px;
  color: #1e293b;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  background: var(--card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
}

h1 {
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 25px;
}

.tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

input,
textarea,
select {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.875rem;
}

.secondary {
  background: #64748b;
}

.danger {
  background: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  background: #f1f5f9;
}

tr.clickable:hover {
  background: #f8fafc;
  cursor: pointer;
}

tr.selected {
  background: #eff6ff !important;
}

.small {
  font-size: 0.75rem;
  color: #64748b;
}

.audit-info {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.2;
}

.code {
  font-family: monospace;
  font-weight: bold;
  color: var(--primary);
}

.expired-hits {
  color: #94a3b8;
  text-decoration: line-through;
}

.expired-time {
  background: #fff1f2;
}

.copy-btn {
  background: none;
  color: #64748b;
  padding: 2px 5px;
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.search-container {
  margin: 20px 0;
}

.search-container input {
  width: 100%;
  box-sizing: border-box;
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  padding: 10px;
  border-radius: 6px;
}
