@font-face {
  font-family: 'SolaimanLipi';
  src: url('/fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --admin-font: 'SolaimanLipi', 'Hind Siliguri', 'Inter', system-ui, sans-serif;
  --admin-primary: #dc2626;
  --admin-primary-dark: #b91c1c;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #1e293b;
  --admin-muted: #64748b;
}

body {
  font-family: var(--admin-font);
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.admin-sidebar {
  background-color: var(--admin-sidebar-bg);
  color: #94a3b8;
  width: 260px;
  transition: all 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
  overscroll-behavior: contain;
}

#admin-mobile-drawer .admin-sidebar {
  width: 18rem;
  max-width: 85vw;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
}

.admin-sidebar a {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
  background-color: var(--admin-sidebar-hover);
  color: #ffffff;
}

.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #f8fafc;
  color: var(--admin-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.925rem;
}

tr:hover td {
  background-color: #f1f5f9;
}

/* ==========================================================================
   Admin Dark Mode Rules
   ========================================================================== */
html.dark, html[data-theme="dark"] {
  color-scheme: dark;
  --admin-bg: #0b101b;
  --admin-card: #111726;
  --admin-border: #1e293b;
  --admin-text: #f1f5f9;
  --admin-muted: #94a3b8;
}

html.dark body, html[data-theme="dark"] body {
  background-color: #0b101b !important;
  color: #f1f5f9 !important;
}

html.dark .bg-white, html[data-theme="dark"] .bg-white {
  background-color: #111726 !important;
  color: #f1f5f9;
}

html.dark .bg-gray-50, html[data-theme="dark"] .bg-gray-50 {
  background-color: #0d1320 !important;
}

html.dark .bg-gray-100, html[data-theme="dark"] .bg-gray-100 {
  background-color: #151d2e !important;
}

html.dark .text-gray-900, html[data-theme="dark"] .text-gray-900,
html.dark .text-gray-800, html[data-theme="dark"] .text-gray-800 {
  color: #f8fafc !important;
}

html.dark .text-gray-700, html[data-theme="dark"] .text-gray-700,
html.dark .text-gray-600, html[data-theme="dark"] .text-gray-600 {
  color: #cbd5e1 !important;
}

html.dark .text-gray-500, html[data-theme="dark"] .text-gray-500 {
  color: #94a3b8 !important;
}

html.dark .border-gray-200, html[data-theme="dark"] .border-gray-200,
html.dark .border-gray-100, html[data-theme="dark"] .border-gray-100 {
  border-color: #1e293b !important;
}

html.dark th, html[data-theme="dark"] th {
  background-color: #0d1320 !important;
  color: #94a3b8 !important;
  border-bottom-color: #1e293b !important;
}

html.dark td, html[data-theme="dark"] td {
  border-bottom-color: #1e293b !important;
  color: #e2e8f0 !important;
}

html.dark tr:hover td, html[data-theme="dark"] tr:hover td {
  background-color: #162033 !important;
}

html.dark input, html.dark select, html.dark textarea,
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background-color: #0d1320 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html.dark .admin-card, html[data-theme="dark"] .admin-card {
  background-color: #111726 !important;
  border-color: #1e293b !important;
}
