@font-face {
  font-family: max-font;
  font-style: normal;
  font-weight: normal;
  src: url('./nova.woff2') format('woff2'),
    url('./nova.woff') format('woff');
}
:root {
  /* Primary Colors */
  --color-primary: #0099ff;
  --color-primary-hover: #0f6ecd;
  --color-primary-50: rgba(15, 110, 205, 0.05);
  --color-primary-100: rgba(15, 110, 205, 0.1);
  --color-primary-200: rgba(15, 110, 205, 0.2);
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-50: rgba(16, 185, 129, 0.05);
  --color-success-100: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-50: rgba(245, 158, 11, 0.05);
  --color-warning-100: rgba(245, 158, 11, 0.1);
  --color-error: #ef4444;
  --color-error-50: rgba(239, 68, 68, 0.05);
  --color-error-100: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6;
  --color-info-50: rgba(59, 130, 246, 0.05);
  --color-info-100: rgba(59, 130, 246, 0.1);
  /* Text Colors */
  --color-text: #444444;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  /* Background Colors */
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-hover: #f1f5f9;
  /* Border Colors */
  --color-border: #e2e8f0;
  /* Typography */
  --font-primary: max-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2rem;
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-base: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --header-height: 64px;
  /* Transitions */
  --transition: 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-text: #ffffff;
  --color-text-secondary: #c0c0c0;
  --color-text-muted: #838383;
  --color-background: #111214;
  --color-surface: #1f1f1f;
  --color-surface-hover: #262626;
  --color-border: #2d2d2d;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
.material-symbols-rounded {
  fill: var(--color-text-muted);
  line-height: 0;
}
.active>.material-symbols-rounded {
  fill: var(--color-primary);
  line-height: 0;
}

* {
  scrollbar-color: var(--color-text-muted) transparent;
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   DASHBOARD LAYOUT
   =================================== */
.dashboard-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  position: sticky;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
}

.dashboard-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.dashboard-brand {
  padding: var(--space-sm) calc(var(--space-md) - 3px);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--header-height);
}

.dashboard-sidebar-toggle {
  display: flex;
  align-items: center;
  color: var(--color-text);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.dashboard-sidebar-toggle:hover {
  background: var(--color-surface-hover);
}

.dashboard-sidebar .logo {
  font-size: var(--text-lg);
  white-space: nowrap;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: var(--transition);
}

.dashboard-sidebar.collapsed .logo {
  opacity: 0;
  pointer-events: none;
}

.dashboard-nav {
  flex: 1;
  padding: var(--space-md) var(--space-xs);
  overflow-x: hidden;
  overflow-y: auto;
}

.dashboard-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  margin: 2px var(--space-sm);
  transition: var(--transition);
  cursor: pointer;
}

.dashboard-nav-item .nav-icon {
  color: var(--color-text-secondary);
  margin-right: var(--space-base);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.dashboard-nav-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.dashboard-nav-item.active {
  background: var(--color-surface-hover);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.dashboard-sidebar .nav-label {
  transition: var(--transition);
}

.dashboard-sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

.sidebar-footer {
  padding: var(--space-md);
}

.sidebar-back-button {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-sidebar.collapsed .sidebar-back-button .btn-label {
  opacity: 0;
  pointer-events: none;
}

.dashboard-sidebar.collapsed .sidebar-back-button {
  padding-left: 12px;
}

.dashboard-sidebar-overlay {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: var(--transition);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.dashboard-header {
  height: var(--header-height);
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  gap: var(--space-md);
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-header .dashboard-sidebar-toggle {
  display: none;
}

.dashboard-header-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle (inside dropdown) */
.theme-toggle {
  display: flex;
  gap: var(--space-xs);
  margin-left: auto;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-option {
  padding: var(--space-xs) var(--space-base);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition);
}

.theme-option:not(.active):hover {
  background-color: var(--color-primary-200);
}

.theme-option.active {
  background: var(--color-primary);
  color: white;
}

/* Content Area */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  border-top-left-radius: var(--radius-xl);
  background: var(--color-surface);
}

/* Views */
.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Table Styles */
.dashboard-table-container {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
  }

  .dashboard-sidebar.collapsed :is(.logo, .nav-label, .nav-icon, .sidebar-back-button .btn-label) {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar.collapsed .sidebar-back-button {
    padding-left: var(--space-md);
  }

  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-brand {
    gap: var(--space-sm);
  }

  .dashboard-header .dashboard-sidebar-toggle {
    display: flex;
  }

  /* Sidebar Overlay Mobile Behavior */
  .dashboard-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
    width: var(--sidebar-width);
  }

  .dashboard-content {
    padding: var(--space-md);
    border-top-left-radius: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-content {
    padding: var(--space-base);
  }

  .dashboard-table-container {
    overflow-x: auto;
    padding: 20px;
  }
}

/* Focus Styles */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 40px 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  margin: 40px 0;
  padding: 0;
}

.badge {
  background-color: #8e96aa24;
  display: inline-block;
  border-radius: 12px;
  padding: 0 10px;
  font-weight: 500;
}