:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaf2;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --canvas: #f4f7fb;
  --navy: #071527;
  --navy-2: #0b1f3a;
  --navy-3: #102a4c;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;
  --shadow-sm: 0 12px 32px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 20px 55px rgba(16, 24, 40, 0.13);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background:
    radial-gradient(circle at 22% 8%, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(6, 182, 212, 0.12), transparent 24rem),
    linear-gradient(135deg, #f7f9fd 0%, #eef3f9 52%, #f8fafc 100%);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
}

.admin-shell {
  display: flex;
  gap: 1.25rem;
  min-height: 100vh;
  padding: 1rem;
}

.admin-sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.22), transparent 16rem),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 58%, #06101f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(2, 8, 23, 0.28);
  color: #d9e4f5;
  flex: 0 0 286px;
  min-height: calc(100vh - 2rem);
  overflow: hidden;
  position: sticky;
  top: 1rem;
  width: 286px;
}

.admin-sidebar.collapsing {
  min-height: calc(100vh - 2rem);
  transition: width 0.25s ease;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
  color: #fff;
  display: inline-flex;
  font-size: 1.25rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: #90a4c1;
  font-size: 0.78rem;
  font-weight: 600;
}

.sidebar-label {
  color: #7890b0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.35rem 0.6rem;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.9rem;
}

.sidebar-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #c8d4e7;
  display: flex;
  gap: 0.85rem;
  min-height: 50px;
  padding: 0.75rem 0.85rem;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #8ec5ff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.72));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.sidebar-link.active .sidebar-icon {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.sidebar-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  left: 1rem;
  padding: 0.85rem;
  position: absolute;
  right: 1rem;
}

.sidebar-status strong,
.sidebar-status span {
  display: block;
}

.sidebar-status strong {
  color: #fff;
  font-size: 0.9rem;
}

.sidebar-status span {
  color: #9fb1cc;
  font-size: 0.78rem;
}

.status-dot {
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
  height: 10px;
  width: 10px;
}

.admin-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 78px;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 1rem;
  z-index: 4;
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.sidebar-toggle,
.logout-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #344054;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  width: 44px;
}

.sidebar-toggle:hover,
.logout-button:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.logout-button {
  color: var(--red);
}

.breadcrumb-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.4rem;
}

.breadcrumb-line i {
  font-size: 0.62rem;
}

.topbar-title {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.15;
}

.quick-action,
.user-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
}

.quick-action {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  color: #fff;
}

.quick-action:hover {
  color: #fff;
  transform: translateY(-1px);
}

.user-pill {
  background: #fff;
  border: 1px solid var(--line);
  color: #344054;
}

.admin-content {
  flex: 1 0 auto;
  padding: 1.25rem 0.1rem 1rem;
}

.admin-footer {
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  padding: 0.75rem 0.25rem 0;
}

.page-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 18rem);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}

.page-kicker {
  align-items: center;
  color: #2563eb;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 850;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.btn {
  border-radius: 14px;
  font-weight: 750;
  letter-spacing: 0;
  min-height: 42px;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.btn i {
  margin-right: 0.3rem;
}

.btn-primary,
.btn-action {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
}

.btn-outline-primary:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.btn-outline-secondary {
  border-color: #d8deea;
  color: #475467;
}

.btn-outline-secondary:hover {
  background: #f2f5fa;
  border-color: #cbd5e1;
  color: #344054;
}

.btn-outline-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.btn-outline-danger:hover,
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-color: transparent;
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.modern-table .btn-sm {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 36px;
}

.modern-table .btn-sm i {
  margin-right: 0;
}

.dashboard-card {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  color: #fff;
  display: flex;
  gap: 1rem;
  min-height: 138px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card::after {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  content: "";
  height: 120px;
  position: absolute;
  right: -36px;
  top: -40px;
  width: 120px;
}

.dashboard-card:hover {
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.18);
  transform: translateY(-4px);
}

.dashboard-card-primary {
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.dashboard-card-success {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.dashboard-card-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.dashboard-card-danger {
  background: linear-gradient(135deg, #b91c1c, #f97316);
}

.dashboard-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  display: inline-flex;
  font-size: 1.35rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-label {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.9;
}

.dashboard-value {
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1;
}

.filter-panel,
.form-card,
.detail-card,
.table-responsive {
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.filter-panel {
  padding: 1.05rem;
}

.filter-title {
  align-items: center;
  color: #1f3b63;
  display: flex;
  font-weight: 850;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.filter-title i {
  color: #2563eb;
}

.filter-panel .form-label {
  color: #475467;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.form-card,
.detail-card {
  padding: 1.35rem;
}

.form-label {
  color: #344054;
  font-weight: 800;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8deea;
  border-radius: 15px;
  min-height: 44px;
  padding-left: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.13);
}

.table-responsive {
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.modern-table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table thead th {
  background: rgba(15, 23, 42, 0.035);
  border-bottom: 1px solid #e8edf5;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 1rem 1.1rem;
  white-space: nowrap;
}

.modern-table tbody td {
  border-color: #eef2f7;
  color: #344054;
  padding: 1rem 1.1rem;
}

.modern-table tbody td:first-child {
  color: #101828;
  font-weight: 850;
}

.modern-table tbody tr {
  transition: background 0.16s ease, transform 0.16s ease;
}

.modern-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.045);
}

.badge,
.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.5rem 0.72rem;
  white-space: nowrap;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.detail-card {
  margin: 0;
}

.detail-card dt {
  color: var(--muted);
  font-weight: 850;
}

.detail-card dd {
  margin-bottom: 0.85rem;
}

.alert {
  border-radius: 18px;
}

.auth-body {
  background: linear-gradient(135deg, #071527 0%, #0b1f3a 44%, #eff6ff 44%, #f8fbff 100%);
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.auth-hero {
  align-items: center;
  color: #fff;
  display: flex;
  overflow: hidden;
  padding: 3rem;
  position: relative;
}

.auth-hero::before,
.auth-hero::after {
  border-radius: 999px;
  content: "";
  position: absolute;
}

.auth-hero::before {
  background: rgba(37, 99, 235, 0.30);
  height: 260px;
  left: -90px;
  top: -70px;
  width: 260px;
}

.auth-hero::after {
  background: rgba(6, 182, 212, 0.22);
  bottom: 8%;
  height: 180px;
  right: 12%;
  width: 180px;
}

.auth-hero-content {
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.auth-hero-icon {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 24px;
  display: inline-flex;
  font-size: 1.8rem;
  height: 72px;
  justify-content: center;
  margin-bottom: 1.4rem;
  width: 72px;
}

.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.auth-hero p {
  color: #c8d8ee;
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-hero-metrics span {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #eaf2ff;
  padding: 0.65rem 0.9rem;
}

.auth-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.16);
  max-width: 440px;
  padding: 2rem;
  width: 100%;
  backdrop-filter: blur(20px);
}

.auth-card-wide {
  max-width: 540px;
}

.auth-logo {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
  color: #fff;
  display: flex;
  font-size: 1.45rem;
  height: 60px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 60px;
}

@media (max-width: 1100px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
    width: 100%;
  }

  .admin-sidebar.collapse:not(.show) {
    display: none;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-status {
    display: none;
  }

  .admin-main {
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 320px;
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .admin-shell {
    padding: 0.75rem;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .quick-action,
  .user-pill {
    justify-content: center;
  }

  .admin-content {
    padding-top: 1rem;
  }

  .page-header,
  .filter-panel,
  .form-card,
  .detail-card,
  .table-responsive {
    border-radius: 20px;
  }

  .dashboard-card {
    min-height: 116px;
  }

  .dashboard-value {
    font-size: 2rem;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 1rem;
  }
}
body {
    overflow-x: hidden;
}

table {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}