/* Paging Server - 2026 Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #0f172a;
  --color-primary-soft: #1e293b;
  --color-accent: #dc2626;
  --color-accent-hover: #b91c1c;
  --color-accent-muted: rgba(220, 38, 38, 0.12);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-surface-subtle: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.06), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-glow: 0 0 0 1px rgb(99 102 241 / 0.08);
}

* { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
[x-cloak] { display: none !important; }
body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--color-text);
  min-height: 100vh;
}

/* Navigation */
.nav-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--color-text-muted);
}
.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-subtle);
}
.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border-subtle);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
}

/* Buttons */
.btn-primary {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: white;
  box-shadow: 0 2px 4px rgb(220 38 38 / 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(220 38 38 / 0.35);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  background: var(--color-surface);
}
.btn-secondary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-text-muted);
}

/* Inputs */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: var(--color-surface);
}
.input-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

/* Tables */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table { min-width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-subtle);
}
.data-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.data-table td {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover td {
  background: var(--color-surface-alt);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge-error { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-neutral { background: rgba(100, 116, 139, 0.1); color: var(--color-text-muted); }

/* Hide scrollbar but keep functionality */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
