/* ==========================================================================
   ELIOS CRM - Cyber Luxury Theme System (Light / Dark Mode Engine)
   System-elios/css/theme.css
   ========================================================================== */

/* 1. Theme Toggle Button Styling (زر الإيقونة الدائري التفاعلي) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(234, 160, 35, 0.45);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.08);
  border-color: #fbbf24;
  box-shadow: 0 6px 20px rgba(234, 160, 35, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.theme-toggle-btn:active {
  transform: translateY(0) scale(0.95);
}

.theme-toggle-btn .theme-icon {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, color 0.3s ease;
}

.theme-icon-sun {
  color: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
}

.theme-icon-moon {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

/* ==========================================================================
   2. Light Theme Overrides (الوضع الفاتح الأنيق والمريح للعين)
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  --bg-dark: #f0f4f9;
  --bg-surface: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-border: #cbd5e1;
  --bg-card-hover: #f8fafc;

  --fiat-red: #EAA023;
  --fiat-red-light: #FBBF24;
  --fiat-red-dark: #D97706;
  --fiat-red-glow: rgba(234, 160, 35, 0.2);

  --neon-cyan: #EAA023;
  --neon-cyan-glow: rgba(234, 160, 35, 0.2);
  --neon-blue: #0284c7;
  --neon-green: #059669;
  --neon-amber: #d97706;
  --neon-red: #dc2626;

  --gold-gradient: linear-gradient(135deg, #FCD34D 0%, #EAA023 50%, #D97706 100%);
  --gold-hover: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #B45309 100%);
  --gold-shadow: 0 4px 15px rgba(234, 160, 35, 0.3);

  --chrome-silver: #1e293b;
  --chrome-light: #0f172a;
  --chrome-mid: #475569;
  --chrome-dark: #64748b;
  --chrome-gunmetal: #cbd5e1;
  --chrome-slate: #f8fafc;
  --chrome-border: rgba(148, 163, 184, 0.5);
  --chrome-border-hover: rgba(234, 160, 35, 0.6);
  --chrome-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 75%, #475569 100%);
  --metal-surface: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #EAA023;
}

/* Base Body */
[data-theme="light"] body {
  background-color: #f0f4f9 !important;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(234, 160, 35, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 82% 15%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(234, 160, 35, 0.04) 0%, transparent 50%) !important;
  color: #0f172a !important;
}

/* Header & Nav Bar */
[data-theme="light"] .header-bar,
[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   Sidebar Navigation Rail (Light Mode)
   ========================================================================== */
[data-theme="light"] .side-nav-rail {
  background: #ffffff !important;
  border-left: 1.5px solid #e2e8f0 !important;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .nav-rail-item {
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .nav-rail-item span {
  color: #475569 !important;
}

[data-theme="light"] .nav-rail-item:hover {
  color: #d97706 !important;
  background: #fffbeb !important;
  border-color: rgba(234, 160, 35, 0.45) !important;
  box-shadow: 0 4px 12px rgba(234, 160, 35, 0.15) !important;
  transform: translateY(-2px) !important;
}

[data-theme="light"] .nav-rail-item:hover span {
  color: #d97706 !important;
}

[data-theme="light"] .nav-rail-item.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%) !important;
  border: 1px solid #EAA023 !important;
  box-shadow: 0 4px 14px rgba(234, 160, 35, 0.4) !important;
}

[data-theme="light"] .nav-rail-item.active i,
[data-theme="light"] .nav-rail-item.active svg,
[data-theme="light"] .nav-rail-item.active span {
  color: #ffffff !important;
}

[data-theme="light"] .nav-rail-item.active::before {
  background: #EAA023 !important;
  box-shadow: 0 0 8px rgba(234, 160, 35, 0.6) !important;
}

[data-theme="light"] .nav-rail-item.logout-item {
  color: #e11d48 !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
}

[data-theme="light"] .nav-rail-item.logout-item span {
  color: #e11d48 !important;
}

[data-theme="light"] .nav-rail-item.logout-item:hover {
  color: #ffffff !important;
  background: #e11d48 !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
}

[data-theme="light"] .nav-rail-item.logout-item:hover span {
  color: #ffffff !important;
}

[data-theme="light"] .sidebar-dev-card,
[data-theme="light"] .dev-credits-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sidebar-dev-card .dev-credits-title,
[data-theme="light"] .dev-credits-title {
  color: #0f172a !important;
}

[data-theme="light"] .dev-by-eng {
  color: #d97706 !important;
  text-shadow: none !important;
}

[data-theme="light"] .dev-name {
  color: #0284c7 !important;
  text-shadow: none !important;
}

[data-theme="light"] .sidebar-dev-card .dev-social-btn,
[data-theme="light"] .dev-social-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .sidebar-dev-card .dev-social-btn:hover,
[data-theme="light"] .dev-social-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: scale(1.1) !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9 !important;
  border-color: rgba(234, 160, 35, 0.45) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #ffffff !important;
  border-color: #EAA023 !important;
  box-shadow: 0 6px 18px rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .user-badge {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .user-name-text {
  color: #0f172a !important;
}

[data-theme="light"] .brand-title {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .brand-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .header-center-title,
[data-theme="light"] .header-indicator {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Search Bar in Header */
[data-theme="light"] .search-box-wrapper,
[data-theme="light"] .search-bar-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .search-input {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 25px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .search-input:focus {
  border-color: #EAA023 !important;
  box-shadow: 0 0 12px rgba(234, 160, 35, 0.25) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

[data-theme="light"] .search-input::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .search-icon-btn {
  color: #EAA023 !important;
}

[data-theme="light"] .search-icon-btn:hover {
  color: #d97706 !important;
}

[data-theme="light"] .search-action-btn {
  background: #EAA023 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 160, 35, 0.3) !important;
}

[data-theme="light"] .search-action-btn:hover {
  background: #d97706 !important;
}

[data-theme="light"] .search-clear-btn {
  color: #64748b !important;
}

[data-theme="light"] .search-clear-btn:hover {
  color: #ef4444 !important;
}

/* Search Dropdown in Light Mode */
[data-theme="light"] .search-results-dropdown {
  background: #ffffff !important;
  border: 1.5px solid rgba(234, 160, 35, 0.35) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .search-result-item {
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .search-result-item:hover {
  background: #f8fafc !important;
  border-color: rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .search-result-name {
  color: #0f172a !important;
}

[data-theme="light"] .search-result-code,
[data-theme="light"] .search-result-meta {
  color: #64748b !important;
}

/* History Modal Search Box */
[data-theme="light"] .history-search-wrap {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .history-search-wrap input {
  color: #0f172a !important;
}

[data-theme="light"] .history-search-wrap input::placeholder {
  color: #64748b !important;
}

/* Glass Panels & Cards */
[data-theme="light"] .glass-panel,
[data-theme="light"] .client-card,
[data-theme="light"] .hub-tab-panel,
[data-theme="light"] .complaints-card,
[data-theme="light"] .report-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .card-panel,
[data-theme="light"] .diag-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .kpi-card,
[data-theme="light"] .summary-card,
[data-theme="light"] .survey-kpi-card,
[data-theme="light"] .no-answer-card,
[data-theme="light"] .settings-hero-card,
[data-theme="light"] .settings-content-card,
[data-theme="light"] .perm-checkbox-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Inputs, Textareas, Selects */
[data-theme="light"] .input-field,
[data-theme="light"] select.input-field,
[data-theme="light"] textarea.input-field,
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] .date-input,
[data-theme="light"] .filter-search-box input {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] select::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .input-field:focus,
[data-theme="light"] select.input-field:focus,
[data-theme="light"] textarea.input-field:focus,
[data-theme="light"] input[type="date"]:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="tel"]:focus {
  border-color: #EAA023 !important;
  box-shadow: 0 0 10px rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .input-field:disabled,
[data-theme="light"] input:disabled,
[data-theme="light"] textarea:disabled {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

/* Select Option Items in Light Mode */
[data-theme="light"] select.input-field option,
[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* ==========================================================================
   Light Mode Autofill & Autocomplete Overrides
   ========================================================================== */
[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] input:-webkit-autofill:active,
[data-theme="light"] textarea:-webkit-autofill,
[data-theme="light"] textarea:-webkit-autofill:hover,
[data-theme="light"] textarea:-webkit-autofill:focus,
[data-theme="light"] textarea:-webkit-autofill:active,
[data-theme="light"] select:-webkit-autofill,
[data-theme="light"] select:-webkit-autofill:hover,
[data-theme="light"] select:-webkit-autofill:focus,
[data-theme="light"] select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  caret-color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  transition: background-color 5000000s ease-in-out 0s !important;
}

[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] textarea:-webkit-autofill:focus,
[data-theme="light"] select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 10px rgba(234, 160, 35, 0.25) !important;
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 10px rgba(234, 160, 35, 0.25) !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  caret-color: #0f172a !important;
  border-color: #EAA023 !important;
}

/* ==========================================================================
   3. Combobox & Searchable Dropdowns (Light Mode Enhancements)
   ========================================================================== */
[data-theme="light"] .custom-combobox-wrapper .combobox-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .custom-combobox-wrapper.open .combobox-input {
  border-color: #EAA023 !important;
  box-shadow: 0 0 10px rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .combobox-chevron {
  color: #64748b !important;
}

[data-theme="light"] .custom-combobox-wrapper.open:not(.has-value) .combobox-chevron {
  color: #EAA023 !important;
}

[data-theme="light"] .custom-combobox-wrapper.has-value .combobox-chevron {
  color: #ef4444 !important;
}

[data-theme="light"] .custom-combobox-wrapper.has-value .combobox-chevron:hover {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

[data-theme="light"] .combobox-dropdown {
  background: #ffffff !important;
  border: 1.5px solid rgba(234, 160, 35, 0.4) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .combobox-option {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .combobox-option:hover {
  background: #fefce8 !important;
  color: #b45309 !important;
}

[data-theme="light"] .combobox-option.selected {
  background: linear-gradient(135deg, #fefce8, #fef3c7) !important;
  color: #d97706 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .combobox-empty {
  color: #64748b !important;
}

[data-theme="light"] .combobox-options-scroll::-webkit-scrollbar-track {
  background: #ffffff !important;
}

[data-theme="light"] .combobox-options-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 6px !important;
  border: 2px solid #ffffff !important;
}

[data-theme="light"] .combobox-options-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

[data-theme="light"] .combobox-add-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .combobox-add-btn {
  background: linear-gradient(135deg, #fefce8, #fef3c7) !important;
  border: 1.2px dashed rgba(234, 160, 35, 0.5) !important;
  color: #d97706 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .combobox-add-btn:hover {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border-color: #d97706 !important;
  color: #92400e !important;
  box-shadow: 0 2px 8px rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .combobox-inline-add-box {
  background: #ffffff !important;
  border: 1.2px solid rgba(234, 160, 35, 0.45) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .combobox-inline-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .combobox-inline-input:focus {
  border-color: #EAA023 !important;
  background: #ffffff !important;
}

/* ==========================================================================
   4. Hub Tab Buttons (Light Mode High Contrast)
   ========================================================================== */
[data-theme="light"] .hub-tabs-header {
  border-bottom: 1.5px solid #e2e8f0 !important;
}

/* Inactive Hub Tabs */
[data-theme="light"] .hub-tab-btn {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .hub-tab-btn span:not(.tab-badge-count):not(.tab-latest-arrow) {
  color: #334155 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .hub-tab-btn i,
[data-theme="light"] .hub-tab-btn svg:not(.tab-latest-arrow-svg) {
  color: #475569 !important;
}

[data-theme="light"] .hub-tab-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

[data-theme="light"] .hub-tab-btn:hover span:not(.tab-badge-count):not(.tab-latest-arrow),
[data-theme="light"] .hub-tab-btn:hover i {
  color: #0f172a !important;
}

/* Inactive Badge counts inside hub tabs */
[data-theme="light"] .tab-badge-count,
[data-theme="light"] .hub-tab-btn .tab-badge-count {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Active Inquiries Hub Tab (Amber/Gold Theme) */
[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active,
[data-theme="light"] .hub-tab-btn.active:first-child {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%) !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  box-shadow: 0 2px 10px rgba(234, 160, 35, 0.2) !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active span:not(.tab-badge-count):not(.tab-latest-arrow) {
  color: #b45309 !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active i,
[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active svg:not(.tab-latest-arrow-svg) {
  color: #d97706 !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active .tab-badge-count,
[data-theme="light"] .hub-tab-btn#tab-btn-inquiries.active #tab-inquiry-counter {
  background: #EAA023 !important;
  border: 1px solid #d97706 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(234, 160, 35, 0.4) !important;
}

/* Active Complaints Hub Tab (Red Theme) */
[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border-color: #ef4444 !important;
  color: #c8102e !important;
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.15) !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active span:not(.tab-badge-count):not(.tab-latest-arrow) {
  color: #dc2626 !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active i,
[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active svg:not(.tab-latest-arrow-svg) {
  color: #dc2626 !important;
}

[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active .tab-badge-count,
[data-theme="light"] .hub-tab-btn#tab-btn-complaints.active #tab-complaint-counter {
  background: #dc2626 !important;
  border: 1px solid #991b1b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35) !important;
}

/* Latest Action Arrow inside tabs */
[data-theme="light"] .tab-latest-arrow,
[data-theme="light"] .hub-tab-btn .tab-latest-arrow,
[data-theme="light"] .hub-tab-btn.active .tab-latest-arrow {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  color: #16a34a !important;
}

[data-theme="light"] .tab-latest-arrow svg,
[data-theme="light"] .hub-tab-btn .tab-latest-arrow svg,
[data-theme="light"] .hub-tab-btn.active .tab-latest-arrow svg {
  stroke: #16a34a !important;
  color: #16a34a !important;
}

/* ==========================================================================
   5. Form Submit Button & Action Buttons
   ========================================================================== */
[data-theme="light"] .btn-primary,
[data-theme="light"] button.btn-primary,
[data-theme="light"] #btn-submit-inquiry,
[data-theme="light"] #btn-submit-complaint {
  background: linear-gradient(135deg, #FCD34D 0%, #EAA023 50%, #D97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: 1px solid #d97706 !important;
  box-shadow: 0 4px 15px rgba(234, 160, 35, 0.35) !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] button.btn-primary:hover,
[data-theme="light"] #btn-submit-inquiry:hover,
[data-theme="light"] #btn-submit-complaint:hover {
  background: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #B45309 100%) !important;
  box-shadow: 0 6px 20px rgba(234, 160, 35, 0.45) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. Unified Activity Table & Rows (Light Mode High Contrast)
   ========================================================================== */
[data-theme="light"] .hub-table-wrapper,
[data-theme="light"] .table-responsive,
[data-theme="light"] .complaints-table-container,
[data-theme="light"] .settings-table-wrapper {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .hub-table th,
[data-theme="light"] table th,
[data-theme="light"] thead th,
[data-theme="light"] .complaints-table th,
[data-theme="light"] .reports-table th,
[data-theme="light"] .settings-table th,
[data-theme="light"] .no-answer-table th,
[data-theme="light"] .no-answer-compact-table th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .activity-row td,
[data-theme="light"] table td,
[data-theme="light"] tbody td,
[data-theme="light"] .hub-table td,
[data-theme="light"] .complaints-table td,
[data-theme="light"] .reports-table td,
[data-theme="light"] .settings-table td,
[data-theme="light"] .no-answer-table td,
[data-theme="light"] .no-answer-compact-table td {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .activity-row:nth-child(even) td,
[data-theme="light"] table tr:nth-child(even) td,
[data-theme="light"] tbody tr:nth-child(even) td,
[data-theme="light"] .hub-table tr:nth-child(even) td,
[data-theme="light"] .no-answer-compact-table tr:nth-child(even) td {
  background: #f8fafc !important;
}

[data-theme="light"] .activity-row:hover td,
[data-theme="light"] table tr:hover td,
[data-theme="light"] tbody tr:hover td,
[data-theme="light"] .hub-table tr:hover td,
[data-theme="light"] .complaints-table tr:hover td,
[data-theme="light"] .no-answer-compact-table tr:hover td {
  background: rgba(234, 160, 35, 0.08) !important;
}

/* Force high contrast text inside all table cells across all pages */
[data-theme="light"] tbody tr td div,
[data-theme="light"] tbody tr td span:not(.activity-type-badge):not(.record-num-pill):not(.status-dot):not(.badge):not(.record-pill):not(.type-badge):not(.ticket-type-badge):not(.status-badge):not(.status-pill-na):not(.source-badge):not(.client-code-pill):not(.replies-count-badge):not(.btn-action-reply):not(.btn-view-row) {
  color: #0f172a !important;
}

[data-theme="light"] tbody tr td div[style*="color: #cbd5e1"],
[data-theme="light"] tbody tr td div[style*="color: #e2e8f0"],
[data-theme="light"] tbody tr td div[style*="color: #fff"],
[data-theme="light"] tbody tr td div[style*="color: #ffffff"],
[data-theme="light"] .activity-cell-date {
  color: #0f172a !important;
}

[data-theme="light"] .client-cell-name,
[data-theme="light"] .client-cell-name span,
[data-theme="light"] .client-cell-name div {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .client-cell-meta,
[data-theme="light"] .client-cell-meta span {
  color: #64748b !important;
}

[data-theme="light"] tbody tr td div[style*="color: #38bdf8"],
[data-theme="light"] .activity-cell-time {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] tbody tr td span[style*="color: #ffffff"],
[data-theme="light"] tbody tr td span[style*="color: #fff"],
[data-theme="light"] .activity-cell-agent {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Action Buttons (Reply, Follow Up, View, Table actions) */
[data-theme="light"] .btn-follow-up,
[data-theme="light"] .btn-action-reply,
[data-theme="light"] .btn-view-row,
[data-theme="light"] .btn-table-action,
[data-theme="light"] .btn-view-details {
  background: #fefce8 !important;
  border: 1.2px solid #fde68a !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(234, 160, 35, 0.12) !important;
}

[data-theme="light"] .btn-follow-up:hover,
[data-theme="light"] .btn-action-reply:hover,
[data-theme="light"] .btn-view-row:hover,
[data-theme="light"] .btn-table-action:hover,
[data-theme="light"] .btn-view-details:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
  box-shadow: 0 2px 6px rgba(234, 160, 35, 0.25) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   7. Ticket Number Pills & Activity Badges (High Contrast Light Mode)
   ========================================================================== */

/* Inquiries Ticket Number Pills (T-1, T-2) -> Blue Badge */
[data-theme="light"] .record-num-pill.inq-num,
[data-theme="light"] .record-pill.inq,
[data-theme="light"] .hub-table tbody tr.activity-row-inquiry .record-num-pill,
[data-theme="light"] .record-num-pill,
[data-theme="light"] .record-pill,
[data-theme="light"] #followup-ticket-serial:not(.cmp-num),
[data-theme="light"] #followup-ticket-serial.inq-num {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #7dd3fc !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Complaints Ticket Number Pills -> Red Badge */
[data-theme="light"] .record-num-pill.cmp-num,
[data-theme="light"] .record-pill.cmp,
[data-theme="light"] .record-pill.record-pill-cmp,
[data-theme="light"] .hub-table tbody tr.activity-row-complaint .record-num-pill,
[data-theme="light"] #followup-ticket-serial.cmp-num,
[data-theme="light"] #modal-complaint-serial {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Inquiries Activity Type Badges ("استفسار") -> Blue/Sky Badge */
[data-theme="light"] .activity-type-badge.inq-badge,
[data-theme="light"] .type-badge.inquiry,
[data-theme="light"] .ticket-type-badge.type-inquiry,
[data-theme="light"] .hub-table tbody tr.activity-row-inquiry .activity-type-badge,
[data-theme="light"] .activity-type-badge,
[data-theme="light"] .type-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* Complaints Activity Type Badges ("شكوى") -> Red Badge */
[data-theme="light"] .activity-type-badge.cmp-badge,
[data-theme="light"] .type-badge.complaint,
[data-theme="light"] .ticket-type-badge.type-complaint,
[data-theme="light"] .hub-table tbody tr.activity-row-complaint .activity-type-badge {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* Status Badges & Status Dropdowns in Table */
[data-theme="light"] .status-dropdown {
  color-scheme: light !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .status-dropdown.status-open,
[data-theme="light"] .status-badge.status-open,
[data-theme="light"] .status-badge.open,
[data-theme="light"] .status-transfer-not-done {
  background-color: #fef2f2 !important;
  border: 1.5px solid #f87171 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .status-dropdown.status-pending,
[data-theme="light"] .status-badge.status-pending,
[data-theme="light"] .status-badge.pending,
[data-theme="light"] .status-transfer-follow {
  background-color: #fffbeb !important;
  border: 1.5px solid #fbbf24 !important;
  color: #d97706 !important;
}

[data-theme="light"] .status-dropdown.status-closed,
[data-theme="light"] .status-badge.status-closed,
[data-theme="light"] .status-badge.closed,
[data-theme="light"] .status-transfer-done,
[data-theme="light"] .status-confirmed {
  background-color: #f0fdf4 !important;
  border: 1.5px solid #4ade80 !important;
  color: #16a34a !important;
}

[data-theme="light"] .status-dropdown option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .status-dropdown option[value="Open"] {
  color: #dc2626 !important;
}

[data-theme="light"] .status-dropdown option[value="Pending"] {
  color: #d97706 !important;
}

[data-theme="light"] .status-dropdown option[value="Closed"] {
  color: #16a34a !important;
}

/* ==========================================================================
   8. Client Basic Info Panel (Light Mode)
   ========================================================================== */
[data-theme="light"] .avatar-client-code-badge,
[data-theme="light"] .client-badge-code,
[data-theme="light"] #display-client-code-pill,
[data-theme="light"] .client-code-pill {
  background: #fefce8 !important;
  color: #b45309 !important;
  border: 1.5px solid #fde68a !important;
  box-shadow: 0 1px 4px rgba(234, 160, 35, 0.15) !important;
}

[data-theme="light"] .avatar-client-code-badge *,
[data-theme="light"] .avatar-client-code-badge i {
  color: #b45309 !important;
}

[data-theme="light"] .avatar-client-code-badge strong,
[data-theme="light"] #display-client-code {
  color: #92400e !important;
  font-weight: 800 !important;
}

[data-theme="light"] .btn-save-gold-main {
  background: linear-gradient(135deg, #FCD34D 0%, #EAA023 50%, #D97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: 1px solid #d97706 !important;
  box-shadow: 0 4px 15px rgba(234, 160, 35, 0.3) !important;
}

[data-theme="light"] .btn-save-gold-main:hover {
  background: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #B45309 100%) !important;
  box-shadow: 0 6px 20px rgba(234, 160, 35, 0.45) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary-action {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-secondary-action:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

[data-theme="light"] #display-client-name,
[data-theme="light"] .client-name-heading {
  color: #d97706 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .sub-form-title {
  color: #0284c7 !important;
}

[data-theme="light"] .field-label,
[data-theme="light"] .client-header-title,
[data-theme="light"] .section-title,
[data-theme="light"] label,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: #1e293b !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .client-header-subtitle {
  color: #64748b !important;
}

/* Account type pill selector (Personal / Corporate) */
[data-theme="light"] .account-type-pill,
[data-theme="light"] .pill-btn,
[data-theme="light"] #pill-personal,
[data-theme="light"] #pill-corporate {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] .account-type-pill.active,
[data-theme="light"] .pill-btn.active,
[data-theme="light"] #pill-personal.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] #pill-corporate.active {
  background: #fefce8 !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   9. Modals & WhatsApp Chat Elements (Light Mode)
   ========================================================================== */
[data-theme="light"] .modal-backdrop,
[data-theme="light"] .modal-overlay,
[data-theme="light"] .cyber-modal {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal-card,
[data-theme="light"] .modal-card.wa-chat-card,
[data-theme="light"] .cyber-modal-card,
[data-theme="light"] .cyber-modal .cyber-modal-card,
[data-theme="light"] .settings-modal-card,
[data-theme="light"] .full-history-modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .cyber-modal-card .modal-header,
[data-theme="light"] .wa-chat-header {
  background: transparent !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-title,
[data-theme="light"] .modal-title span,
[data-theme="light"] #modal-title-text,
[data-theme="light"] .modal-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-close-btn,
[data-theme="light"] .wa-close-btn,
[data-theme="light"] .btn-close-modal {
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .modal-close-btn:hover,
[data-theme="light"] .wa-close-btn:hover,
[data-theme="light"] .btn-close-modal:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

[data-theme="light"] .modal-meta-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-meta-label {
  color: #64748b !important;
}

[data-theme="light"] .modal-meta-value {
  color: #0f172a !important;
}

[data-theme="light"] .modal-details-block {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .wa-contact-name {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .wa-contact-sub,
[data-theme="light"] .wa-contact-sub span {
  color: #475569 !important;
}

[data-theme="light"] .wa-bullet {
  color: #94a3b8 !important;
}

[data-theme="light"] .wa-header-phone-badge {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .wa-avatar {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .wa-online-dot {
  border-color: #ffffff !important;
}

/* Chat Messages Body */
[data-theme="light"] .wa-chat-container,
[data-theme="light"] .wa-chat-body,
[data-theme="light"] .wa-chat-messages {
  background: #f1f5f9 !important;
}

[data-theme="light"] .wa-date-pill {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Client Bubble (Incoming) */
[data-theme="light"] .wa-bubble-client {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-right: 4px solid #EAA023 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .wa-bubble-sender {
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .wa-sender-client {
  color: #0f172a !important;
}

[data-theme="light"] .wa-sender-client .wa-sender-label {
  color: #64748b !important;
}

[data-theme="light"] .wa-sender-client .wa-sender-name,
[data-theme="light"] #followup-bubble-client-name {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .wa-complaint-type-tag,
[data-theme="light"] #modal-bubble-type,
[data-theme="light"] #followup-bubble-type-tag {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.1) !important;
}

[data-theme="light"] .wa-complaint-type-tag *,
[data-theme="light"] #modal-bubble-type *,
[data-theme="light"] #modal-bubble-car-text,
[data-theme="light"] #followup-bubble-car-text {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .wa-ticket-body-box {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  padding: 8px 12px !important;
}

[data-theme="light"] .wa-bubble-text,
[data-theme="light"] .wa-ticket-body-box .wa-bubble-text,
[data-theme="light"] #modal-complaint-details,
[data-theme="light"] #followup-bubble-main-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .wa-bubble-time {
  color: #64748b !important;
}

/* Agent Bubble (Outgoing) */
[data-theme="light"] .wa-bubble-agent {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-left: 4px solid #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="light"] .wa-sender-agent {
  color: #0284c7 !important;
}

[data-theme="light"] .agent-handle {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}

[data-theme="light"] .wa-reply-badge {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .wa-bubble-agent .wa-bubble-text {
  color: #0f172a !important;
}

/* Bottom Input Bar */
[data-theme="light"] .wa-chat-input-bar {
  background: #ffffff !important;
  border-top: 1.5px solid #e2e8f0 !important;
}

[data-theme="light"] .wa-input-author-badge {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
  box-shadow: none !important;
}

[data-theme="light"] .wa-input-wrap {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .wa-input-wrap:focus-within {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] .wa-chat-textarea {
  color: #0f172a !important;
  background: transparent !important;
}

[data-theme="light"] .wa-chat-textarea::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .wa-send-btn {
  background: linear-gradient(135deg, #FBBF24, #D97706) !important;
  border: 1px solid #EAA023 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 160, 35, 0.3) !important;
}

[data-theme="light"] .wa-send-btn:hover {
  background: linear-gradient(135deg, #FCD34D, #B45309) !important;
  box-shadow: 0 4px 14px rgba(234, 160, 35, 0.45) !important;
}

/* ==========================================================================
   10. Reports, Complaints, Settings, No-Answer & Surveys (Light Mode High Contrast)
   ========================================================================== */
[data-theme="light"] .filters-bar,
[data-theme="light"] .filter-bar-unified,
[data-theme="light"] .settings-filter-bar,
[data-theme="light"] .no-answer-toolbar,
[data-theme="light"] .filter-toolbar,
[data-theme="light"] .table-controls-wrap {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Category & Status Filter Tabs in Complaints Page */
[data-theme="light"] .category-filter-tabs,
[data-theme="light"] .status-filter-tabs,
[data-theme="light"] .date-range-filter-group,
[data-theme="light"] .filter-inputs-group {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
}

[data-theme="light"] .category-pill-btn,
[data-theme="light"] .status-tab-btn {
  background: transparent !important;
  color: #475569 !important;
  border: none !important;
}

[data-theme="light"] .category-pill-btn span,
[data-theme="light"] .status-tab-btn span {
  color: #475569 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .category-pill-btn:hover,
[data-theme="light"] .status-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .category-pill-btn:hover span,
[data-theme="light"] .status-tab-btn:hover span {
  color: #0f172a !important;
}

[data-theme="light"] .category-pill-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.2px solid #7dd3fc !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .category-pill-btn.active span {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .status-tab-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.2px solid #94a3b8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .status-tab-btn.active span {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .status-tab-btn.tab-open.active {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1.2px solid #f87171 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15) !important;
}

[data-theme="light"] .status-tab-btn.tab-open.active span {
  color: #dc2626 !important;
}

[data-theme="light"] .status-tab-btn.tab-pending.active {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1.2px solid #fbbf24 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15) !important;
}

[data-theme="light"] .status-tab-btn.tab-pending.active span {
  color: #d97706 !important;
}

[data-theme="light"] .status-tab-btn.tab-closed.active {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1.2px solid #4ade80 !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15) !important;
}

[data-theme="light"] .status-tab-btn.tab-closed.active span {
  color: #16a34a !important;
}

[data-theme="light"] .search-filter-wrap {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .search-filter-input {
  background: transparent !important;
  color: #0f172a !important;
}

[data-theme="light"] .search-filter-input::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .filter-input,
[data-theme="light"] input[type="date"].filter-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .filter-label,
[data-theme="light"] .filter-group label {
  color: #475569 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-reset-filters {
  background: #fef2f2 !important;
  border: 1.2px solid #fca5a5 !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-reset-filters:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* Reports Page Filter Select Dropdowns */
[data-theme="light"] .filter-field label,
[data-theme="light"] .filter-field label span {
  color: #1e293b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .filter-select,
[data-theme="light"] select.filter-select,
[data-theme="light"] #filter-type,
[data-theme="light"] #filter-status,
[data-theme="light"] #filter-agent {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  color-scheme: light !important;
}

[data-theme="light"] .filter-select:focus,
[data-theme="light"] select.filter-select:focus,
[data-theme="light"] #filter-type:focus,
[data-theme="light"] #filter-status:focus,
[data-theme="light"] #filter-agent:focus {
  border-color: #EAA023 !important;
  box-shadow: 0 0 10px rgba(234, 160, 35, 0.25) !important;
}

[data-theme="light"] .filter-select option,
[data-theme="light"] select.filter-select option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Filtered Transactions Table Top Search Box */
[data-theme="light"] .table-search-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .table-search-box input {
  color: #0f172a !important;
  background: transparent !important;
}

[data-theme="light"] .table-search-box input::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .table-search-box i,
[data-theme="light"] .table-search-box svg {
  color: #EAA023 !important;
}

[data-theme="light"] .table-header-banner,
[data-theme="light"] .table-section-title,
[data-theme="light"] .table-title-box,
[data-theme="light"] .section-header-box,
[data-theme="light"] .complaints-table-header,
[data-theme="light"] .table-header-info-bar {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .table-header-info-bar span,
[data-theme="light"] .table-header-info-bar div,
[data-theme="light"] .table-title-area h2,
[data-theme="light"] .table-title-area h3,
[data-theme="light"] .table-title-area span {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .kpi-card,
[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .kpi-card .kpi-value,
[data-theme="light"] .kpi-value,
[data-theme="light"] .kpi-total .kpi-value {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

[data-theme="light"] .kpi-card.kpi-open .kpi-value {
  color: #dc2626 !important;
  text-shadow: none !important;
}

[data-theme="light"] .kpi-card.kpi-pending .kpi-value {
  color: #d97706 !important;
  text-shadow: none !important;
}

[data-theme="light"] .kpi-card.kpi-closed .kpi-value {
  color: #16a34a !important;
  text-shadow: none !important;
}

[data-theme="light"] .kpi-title,
[data-theme="light"] .kpi-label {
  color: #475569 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .kpi-percent,
[data-theme="light"] .kpi-subtext {
  color: #64748b !important;
}

/* ==========================================================================
   11. Universal Sleek Scrollbars (Light Mode)
   ========================================================================== */
html[data-theme="light"],
html[data-theme="light"] *,
body[data-theme="light"],
body[data-theme="light"] *,
[data-theme="light"],
[data-theme="light"] * {
  scrollbar-color: #cbd5e1 #ffffff !important;
  scrollbar-width: thin !important;
}

html[data-theme="light"]::-webkit-scrollbar,
html[data-theme="light"] *::-webkit-scrollbar,
body[data-theme="light"]::-webkit-scrollbar,
body[data-theme="light"] *::-webkit-scrollbar,
[data-theme="light"]::-webkit-scrollbar,
[data-theme="light"] *::-webkit-scrollbar {
  width: 9px !important;
  height: 9px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html[data-theme="light"]::-webkit-scrollbar-track,
html[data-theme="light"] *::-webkit-scrollbar-track,
body[data-theme="light"]::-webkit-scrollbar-track,
body[data-theme="light"] *::-webkit-scrollbar-track,
[data-theme="light"]::-webkit-scrollbar-track,
[data-theme="light"] *::-webkit-scrollbar-track {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

html[data-theme="light"]::-webkit-scrollbar-thumb,
html[data-theme="light"] *::-webkit-scrollbar-thumb,
body[data-theme="light"]::-webkit-scrollbar-thumb,
body[data-theme="light"] *::-webkit-scrollbar-thumb,
[data-theme="light"]::-webkit-scrollbar-thumb,
[data-theme="light"] *::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  background-color: #cbd5e1 !important;
  border-radius: 6px !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="light"]::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] *::-webkit-scrollbar-thumb:hover,
body[data-theme="light"]::-webkit-scrollbar-thumb:hover,
body[data-theme="light"] *::-webkit-scrollbar-thumb:hover,
[data-theme="light"]::-webkit-scrollbar-thumb:hover,
[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
  background-color: #94a3b8 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

[data-theme="light"] .btn-mini-export {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .btn-mini-export:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}
