/* Theme: Light & Minimal - Clean Professional Style */

/* Apply theme to body with data-theme attribute */
body[data-theme="light-minimal"] {
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e40af;
  --color-accent: #0891b2;
  --color-accent-light: #06b6d4;
  --color-accent-dark: #0e7490;

  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.1);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  background-color: #fafbfc !important;
}

/* High specificity overrides for Tailwind classes */
body[data-theme="light-minimal"] html,
body[data-theme="light-minimal"] {
  background-color: #fafbfc !important;
}

body[data-theme="light-minimal"] .sidebar {
  background-color: white !important;
  border-right: 1px solid #e5e7eb !important;
}

body[data-theme="light-minimal"] .sidebar-header {
  background-color: white !important;
  color: #111827 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

body[data-theme="light-minimal"] .sidebar-nav {
  background-color: white !important;
}

body[data-theme="light-minimal"] .content-header {
  background-color: white !important;
  border-bottom: 1px solid #e5e7eb !important;
}

body[data-theme="light-minimal"] .content-body {
  background-color: #fafbfc !important;
}

body[data-theme="light-minimal"] .main-content {
  background-color: #fafbfc !important;
}

body[data-theme="light-minimal"] .bg-white {
  background-color: white !important;
}

body[data-theme="light-minimal"] .bg-gray-50 {
  background-color: #f9fafb !important;
}

body[data-theme="light-minimal"] .bg-gray-100 {
  background-color: #f3f4f6 !important;
}

body[data-theme="light-minimal"] .text-gray-900,
body[data-theme="light-minimal"] h1,
body[data-theme="light-minimal"] h2,
body[data-theme="light-minimal"] h3 {
  color: #111827 !important;
}

body[data-theme="light-minimal"] .text-gray-600,
body[data-theme="light-minimal"] .text-gray-700 {
  color: #6b7280 !important;
}

body[data-theme="light-minimal"] .btn-primary,
body[data-theme="light-minimal"] button:not(.btn-secondary):not(.btn-danger) {
  background-color: #2563eb !important;
  color: white !important;
}

body[data-theme="light-minimal"] .card {
  background-color: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
}

/* Header Dropdown Styling - Enhanced contrast for white-on-white */
body[data-theme="light-minimal"] .content-header .absolute.bg-white {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08) !important;
}

/* Dropdown headers */
body[data-theme="light-minimal"] .content-header .absolute.bg-white > .p-3.border-b {
  background-color: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}

body[data-theme="light-minimal"] .content-header .absolute.bg-white .p-3.border-b h3,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .p-3.border-b p:first-child {
  color: #111827 !important;
}

/* Dropdown menu items */
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 a,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button {
  color: #374151 !important;
}

body[data-theme="light-minimal"] .content-header .absolute.bg-white .text-gray-900 {
  color: #111827 !important;
}

/* Dropdown hover states */
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 a:hover,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button:hover {
  background-color: #f3f4f6 !important;
}

/* Dropdown menu item icons - ensure visibility */
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 a svg,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button svg {
  color: #6b7280 !important;
}

body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 a:hover svg,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button:hover svg {
  color: #374151 !important;
}

/* High specificity override for dropdown items */
body[data-theme="light-minimal"] .content-header div.absolute.bg-white button,
body[data-theme="light-minimal"] .content-header div.absolute.bg-white a {
  color: #374151 !important;
}

body[data-theme="light-minimal"] .content-header div.absolute.bg-white button:hover,
body[data-theme="light-minimal"] .content-header div.absolute.bg-white a:hover {
  color: #111827 !important;
}

body[data-theme="light-minimal"] .content-header div.absolute.bg-white svg {
  color: #6b7280 !important;
}

body[data-theme="light-minimal"] .content-header div.absolute.bg-white button:hover svg,
body[data-theme="light-minimal"] .content-header div.absolute.bg-white a:hover svg {
  color: #374151 !important;
}

/* Sign Out button - blue background with white text */
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 .border-t + button,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button[onclick*="logout" i] {
  background-color: #2563eb !important;
  color: white !important;
  margin: 0 !important;
  border-radius: 0 0 0.5rem 0.5rem !important;
}

body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 .border-t + button:hover,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button[onclick*="logout" i]:hover {
  background-color: #1e40af !important;
  color: white !important;
}

body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 .border-t + button svg,
body[data-theme="light-minimal"] .content-header .absolute.bg-white .py-1 button[onclick*="logout" i] svg {
  color: white !important;
}

/* User avatar in header */
body[data-theme="light-minimal"] .content-header .bg-blue-600 {
  background-color: #2563eb !important;
}
