/* ============================================================
   QuotePro v2 — Theme: Warm Sunrise (Light) + Soft Twilight (Dark)
   Palette: Light Orange · Sky Blue · Light Purple · White
   ============================================================ */

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

/* ── CSS Variables — Light Mode (Professional Dashboard) ── */
:root {
  /* Brand Colors */
  --primary: #2563EB;
  /* Blue 600 */
  --primary-light: #DBEAFE;
  --primary-pale: #EFF6FF;
  --primary-hover: #1D4ED8;

  --secondary: #64748B;
  /* Slate 500 */
  --secondary-light: #E2E8F0;
  --secondary-pale: #F8FAFC;

  --accent: #6366F1;
  /* Indigo 500 */
  --accent-light: #E0E7FF;
  --accent-pale: #EEF2FF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --sky: #0EA5E9;
  --purple: #8B5CF6;

  /* UI Surfaces */
  --body-bg: #F1F5F9;
  /* Slate 100 */
  --card-bg: #FFFFFF;
  --sidebar-bg: #FFFFFF;
  --header-bg: #FFFFFF;
  --input-bg: #FFFFFF;

  /* Text */
  --text-main: #0F172A;
  /* Slate 900 */
  --text-muted: #475569;
  /* Slate 600 */
  --text-light: #94A3B8;
  /* Slate 400 */

  /* Borders */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Shadows (Tighter, more professional) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  --sidebar-active-glow: 0 4px 12px rgba(37, 99, 235, 0.15);

  /* Branding */
  --logo-url: url('../img/logo.png');

  /* Sizes */
  --radius: 0.625rem;
  --radius-sm: 0.4rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --sidebar-w: 280px;
  /* Bit wider for less congestion */
  --header-h: 72px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dark Mode (Professional Slate/Navy) ── */
[data-theme="dark"] {
  --body-bg: #0A0A1F;
  /* Much deeper navy/black */
  --card-bg: #12122b;
  /* Sleek card surface */
  --sidebar-bg: #0A0A1F;
  --header-bg: rgba(10, 10, 31, 0.85);
  --input-bg: #1E1E3F;

  --text-main: #FFFFFF;
  /* Pure white for titles */
  --text-muted: #A0A0C0;
  /* Clearer muted text */
  --text-light: #636382;

  --border-color: #1E1E3F;
  --border-light: #12122b;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.7);

  --primary: #2563EB;
  --primary-light: rgba(37, 99, 235, 0.25);
  --primary-pale: rgba(37, 99, 235, 0.12);
  --primary-hover: #3B82F6;

  --sidebar-active-glow: 0 4px 20px rgba(37, 99, 235, 0.3);

  /* Branding Dark Mode */
  --logo-url: url('../img/icon-trans-white.png');
  --primary-glow: rgba(37, 99, 235, 0.4);

  /* Force Table Compatibility */
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border-color);
}

[data-theme="dark"] .table {
  color: var(--text-main);
  --bs-table-color: var(--text-main);
  --bs-table-bg: transparent;
  border-color: var(--border-color);
}

[data-theme="dark"] .table-light {
  --bs-table-bg: #1e1e3f !important;
  --bs-table-color: #ffffff !important;
  --bs-table-border-color: #2e2e4f !important;
}

[data-theme="dark"] .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* ============================================================
   COMPREHENSIVE DARK MODE BOOTSTRAP OVERRIDES
   This single block fixes all dark mode visual bugs.
   ============================================================ */

/* -- Backgrounds -- */
[data-theme="dark"] .bg-light {
  background-color: #1E1E3F !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-body {
  background-color: var(--body-bg) !important;
}

/* -- Text -- */
[data-theme="dark"] .text-dark {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .text-main {
  color: var(--text-main) !important;
}

[data-theme="dark"] .text-body {
  color: var(--text-main) !important;
}

/* -- Borders -- */
[data-theme="dark"] .border {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-top {
  border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .border-bottom {
  border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .border-light {
  border-color: var(--border-color) !important;
}

/* -- Card Headers -- */
[data-theme="dark"] .card-header {
  background-color: transparent;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .card-header.bg-white,
[data-theme="dark"] .card-header.bg-light {
  background-color: transparent !important;
}

[data-theme="dark"] .card-footer {
  background-color: transparent;
  border-top-color: var(--border-color);
}

/* -- Forms -- */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--input-bg);
  color: var(--text-main);
}

[data-theme="dark"] .input-group-text {
  background-color: #1E1E3F;
  border-color: var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .form-control.bg-light,
[data-theme="dark"] .form-select.bg-light {
  background-color: var(--input-bg) !important;
}

/* -- Tables -- */
[data-theme="dark"] .table-bordered> :not(caption)>*>* {
  border-color: var(--border-color);
}

[data-theme="dark"] .table-hover>tbody>tr:hover>* {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

[data-theme="dark"] thead,
[data-theme="dark"] thead th {
  color: var(--text-main) !important;
}

/* -- Dropdowns -- */
[data-theme="dark"] .dropdown-header {
  color: var(--text-light);
}

[data-theme="dark"] .dropdown-header.bg-light {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

/* -- List Groups -- */
[data-theme="dark"] .list-group-item {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .list-group-item-action:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

/* -- Modals -- */
[data-theme="dark"] .modal-content {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
  border-top-color: var(--border-color);
}

/* -- Pagination -- */
[data-theme="dark"] .page-link {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* -- Progress bars -- */
[data-theme="dark"] .progress {
  background-color: rgba(255, 255, 255, 0.08);
}

/* -- Bootstrap close button -- */
[data-theme="dark"] .btn-close {
  filter: invert(1);
}

/* -- Breadcrumbs -- */
[data-theme="dark"] .breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-light);
}

[data-theme="dark"] .breadcrumb-item.active {
  color: var(--text-muted);
}

/* -- Misc utilities used in HTML -- */
[data-theme="dark"] .shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .shadow-lg {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] hr {
  border-color: var(--border-color);
  opacity: 0.3;
}

[data-theme="dark"] code {
  color: #A78BFA;
}

/* Logo Visibility Toggles */
.logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: inline-block !important;
}

/* ============================================================
   Base Reset & Body
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px;
  /* Slightly smaller for precision */
  line-height: 1.7;
  /* Increased line height for airiness */
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* ============================================================
   Page Load Animation
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease both;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease both;
}

.animate-scaleIn {
  animation: scaleIn 0.35s var(--spring) both;
}

.animate-slideLeft {
  animation: slideInLeft 0.4s ease both;
}

.animate-slideRight {
  animation: slideInRight 0.4s ease both;
}

/* Staggered children */
.stagger>* {
  animation: fadeInUp 0.45s ease both;
}

.stagger>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger>*:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger>*:nth-child(6) {
  animation-delay: 0.3s;
}

/* ============================================================
   Layout
   ============================================================ */
#app-wrapper {
  display: flex;
  min-height: 100vh;
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: fadeIn 0.4s ease;
}

/* ============================================================
   Sidebar
   ============================================================ */
#sidebar {
  width: var(--sidebar-w);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: var(--transition);
  animation: slideInLeft 0.4s ease;
}

#sidebar .brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  /* Matched */
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.02em;
}

[data-theme="dark"] #sidebar .brand {
  color: #fff;
}

#sidebar .sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

#sidebar .sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

#sidebar .sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

#sidebar .nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 1rem 0.75rem 0.4rem;
  margin-top: 0.5rem;
}

#sidebar .nav-item {
  margin: 0.15rem 0;
}

#sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  gap: 0.7rem;
  transition: var(--transition);
  position: relative;
}

#sidebar .nav-link i {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

#sidebar .nav-link:hover {
  background-color: var(--primary-pale);
  color: var(--primary);
  transform: translateX(3px);
}

[data-theme="dark"] #sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#sidebar .nav-link.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--sidebar-active-glow);
  transform: translateX(0);
}

[data-theme="dark"] #sidebar .nav-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   Top Navbar / Header
   ============================================================ */
#main-content-inner {
  margin-left: var(--sidebar-w);
  flex: 1;
  width: calc(100% - var(--sidebar-w));
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-navbar {
  height: var(--header-h);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  /* Matched to page-content */
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.top-navbar .welcome-label {
  color: var(--text-muted);
  font-weight: 500;
}

.top-navbar .welcome-user {
  color: var(--primary);
  font-weight: 700;
}

.top-navbar .role-badge {
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-navbar .notification-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--header-bg);
}

.avatar-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  /* Modern squircle */
  border: 1.5px solid var(--border-color);
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2.5px solid var(--header-bg);
  border-radius: 50%;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.user-email-text {
  font-size: 0.68rem;
  color: var(--text-light);
}

.chevron-icon {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: var(--transition);
}

.profile-dropdown-btn:hover .chevron-icon {
  color: var(--primary);
  transform: translateY(2px);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Content Area
   ============================================================ */
.page-content {
  padding: 2.5rem;
  /* Increased padding for less congestion */
  flex: 1;
  animation: fadeInUp 0.4s ease;
}

.page-content .row {
  margin-right: 0;
  margin-left: 0;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 1.5rem;
  /* Standard vertical spacing */
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 1.75rem;
  /* Increased padding */
}

.card-body {
  padding: 1.75rem;
}

/* Increased padding */

/* Footer Styling */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--primary) !important;
}

/* Fix for un-adjusted heading in dark mode cards */
.card h5,
.card h6,
.card .card-header .fw-bold,
.welcome-text,
.nav-section-label {
  color: var(--text-main) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.card-header h5 {
  color: var(--text-main);
  opacity: 1;
}

/* Stat Cards */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0;
}

/* Icon BG Helpers */
.bg-primary-pale {
  background: var(--primary-pale);
  color: var(--primary);
}

.bg-success-pale {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.bg-info-pale {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.bg-warning-pale {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.bg-danger-pale {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.icon-bg-primary {
  background: var(--primary-pale);
  color: var(--primary);
}

.icon-bg-slate {
  background: var(--secondary-pale);
  color: var(--secondary);
}

.icon-bg-indigo {
  background: var(--accent-pale);
  color: var(--accent);
}

.icon-bg-green {
  background: #ECFDF5;
  color: var(--success);
}

[data-theme="dark"] .icon-bg-primary {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
}

[data-theme="dark"] .icon-bg-slate {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}

[data-theme="dark"] .icon-bg-indigo {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}

[data-theme="dark"] .icon-bg-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

[data-theme="dark"] .icon-bg-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

[data-theme="dark"] .icon-bg-sky {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

[data-theme="dark"] .btn-primary {
  background: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--sky), #38BDF8);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--sky-hover), var(--sky));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--purple), #C4B5FD);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--purple-hover), var(--purple));
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-outline-secondary {
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
}

[data-theme="dark"] .btn-outline-secondary {
  border-color: #2e2e4f;
  color: var(--text-muted);
}

.btn-outline-secondary:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: var(--sky-pale);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20BA5A, #25D366);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border: none;
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: #fff;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  color: #fff;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  transform: translateY(-2px);
}

/* Loading State for Buttons */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   Forms & Inputs
   ============================================================ */
.form-control,
.form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  /* Better padding */
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-pale);
  background-color: var(--input-bg);
  color: var(--text-main);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.input-group-text {
  background: var(--border-light);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
}

/* ============================================================
   Tables
   ============================================================ */
.table {
  color: var(--text-main);
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--primary-pale);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid var(--primary-light);
  white-space: nowrap;
}

[data-theme="dark"] .table thead th {
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--border-color);
  color: #fff;
}

.table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--primary-pale);
}

[data-theme="dark"] .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  padding: 0.35em 0.75em;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.badge.bg-primary {
  background: var(--primary) !important;
  color: #fff;
}

.badge.bg-secondary {
  background: var(--secondary-pale) !important;
  color: var(--secondary);
  border: 1px solid var(--secondary-light);
}

.badge.bg-success {
  background: #ECFDF5 !important;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge.bg-warning {
  background: #FFFBEB !important;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge.bg-danger {
  background: #FEF2F2 !important;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.badge.bg-info {
  background: var(--sky-pale) !important;
  color: var(--sky-hover);
  border: 1px solid var(--sky-light);
}

.badge.bg-purple {
  background: var(--purple-pale) !important;
  color: var(--purple-hover);
  border: 1px solid var(--purple-light);
}

.badge.bg-dark {
  background: #1C1917 !important;
  color: #fff;
}

.badge.bg-light {
  background: var(--border-light) !important;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .badge.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge.bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .badge.bg-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .badge.bg-light {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Auth Pages (Login / Access Denied)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF7ED 0%, #F0F9FF 50%, #F5F3FF 100%);
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
}

[data-theme="dark"] .auth-wrapper {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  background-size: 300% 300%;
}

/* Floating blobs */
.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite 2s;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1;
  animation: scaleIn 0.5s var(--spring);
}

[data-theme="dark"] .auth-card {
  background: rgba(34, 34, 59, 0.9);
  border: 1px solid rgba(196, 181, 253, 0.15);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(196, 181, 253, 0.1);
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

[data-theme="dark"] .auth-logo {
  color: #fff;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   Flash Messages
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInRight 0.35s ease;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: var(--sky-pale);
  color: var(--sky-hover);
  border-left: 4px solid var(--sky);
}

[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
}

[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
}

[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

[data-theme="dark"] .alert-info {
  background: rgba(14, 165, 233, 0.12);
  color: #7DD3FC;
}

/* ============================================================
   Navbar & Dropdowns
   ============================================================ */
.dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  animation: scaleIn 0.2s var(--spring);
}

.dropdown-item {
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background-color: var(--orange-pale);
  color: var(--orange);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: rgba(196, 181, 253, 0.12);
  color: var(--text-main);
}

.dropdown-divider {
  border-color: var(--border-color);
  margin: 0.4rem 0;
}

.dropdown-header {
  color: var(--text-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

/* ============================================================
   Avatar
   ============================================================ */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange-light);
  transition: var(--transition);
}

.avatar:hover {
  border-color: var(--orange);
  transform: scale(1.05);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  background: var(--card-bg);
  margin: 0 2px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.pagination .page-link:hover {
  background: var(--orange-pale);
  border-color: var(--orange);
  color: var(--orange);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--orange), #FB923C);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

/* ============================================================
   Template Gallery
   ============================================================ */
.template-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  position: relative;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--orange);
}

.template-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), var(--shadow-lg);
}

.template-card .template-preview {
  height: 220px;
  overflow: hidden;
  background: #f8f8f8;
  position: relative;
}

.template-card .template-preview iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

.template-card .template-info {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.template-card .template-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--orange), #FB923C);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 20px;
  text-transform: uppercase;
}

.template-card .template-actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-actions {
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

/* ============================================================
   Modals
   ============================================================ */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 1.5rem;
}

.modal-title {
  font-weight: 700;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

.modal.fade .modal-dialog {
  animation: scaleIn 0.25s var(--spring);
}

/* ============================================================
   Public Quote View
   ============================================================ */
.public-view-bar {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.public-view-bar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.public-view-bar .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   Access Denied Page
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #FFF7ED 0%, #F5F3FF 100%);
}

[data-theme="dark"] .error-page {
  background: linear-gradient(135deg, #1A1A2E 0%, #0F3460 100%);
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease;
}

.error-icon {
  font-size: 4rem;
  animation: bounceIn 0.7s ease;
}

.error-title {
  font-size: 1.6rem;
  font-weight: 800;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.error-msg {
  color: var(--text-muted);
  animation: fadeInUp 0.5s ease 0.2s both;
}

.countdown-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-radius: 4px;
  animation: countdownAnim 5s linear forwards;
}

@keyframes countdownAnim {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* ============================================================
   Save Overlay / Page Loader
   ============================================================ */
#save-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.2s ease;
}

[data-theme="dark"] #save-overlay {
  background: rgba(26, 26, 46, 0.8);
}

#save-overlay.show {
  display: flex;
}

.save-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border-color);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.save-text {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: pulse 1.5s ease infinite;
}

/* ============================================================
   Toast Notification (custom)
   ============================================================ */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-custom {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  padding: 0.85rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.35s var(--spring);
}

.toast-custom.success {
  border-left-color: var(--success);
}

.toast-custom.error {
  border-left-color: var(--danger);
}

.toast-custom.info {
  border-left-color: var(--sky);
}

/* ============================================================
   Audit Log / Timeline
   ============================================================ */
.audit-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeInUp 0.3s ease both;
}

.audit-item:last-child {
  border-bottom: none;
}

.audit-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.audit-content {
  flex: 1;
}

.audit-time {
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
}

.audit-user {
  font-weight: 600;
  font-size: 0.85rem;
}

.audit-action {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.audit-diff {
  font-size: 0.78rem;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.6rem;
}

[data-theme="dark"] .audit-diff {
  background: #0f172a;
  /* Deeper punch-out for diffs */
}

.audit-diff table {
  background: transparent !important;
}

.audit-diff .old-val {
  color: #fb7185;
  /* Soft red */
  text-decoration: line-through;
  opacity: 0.8;
}

.audit-diff .new-val {
  color: #34d399;
  /* Soft emerald */
  font-weight: 600;
}

/* ============================================================
   WhatsApp Preview Card
   ============================================================ */
.wa-preview {
  background: #ECE5DD;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .wa-preview {
  background: #1E2328;
}

.wa-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='60' height='60' fill='none'/%3E%3C/svg%3E");
  opacity: 0.05;
}

.wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 1rem 1.1rem;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.13);
  position: relative;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

[data-theme="dark"] .wa-bubble {
  background: #202C33;
  color: #E9EDEF;
}

.wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border: 8px solid transparent;
  border-right-color: #fff;
  border-top: 0;
}

[data-theme="dark"] .wa-bubble::before {
  border-right-color: #202C33;
}

.wa-time {
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 0.35rem;
}

/* ============================================================
   Misc Utilities
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.25rem 0;
}

/* Footer Styling */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--primary) !important;
}

/* Fix for un-adjusted heading in dark mode cards */
.card h5,
.card h6,
.card .card-header .fw-bold,
.welcome-text,
.nav-section-label {
  color: var(--text-main) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.card-header h5 {
  color: var(--text-main);
  opacity: 1;
}

.code-editor {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: #1C1917;
  color: #FEF3C7;
  border-color: #444;
}

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border-color) 50%, var(--border-light) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-100%);
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #main-content-inner {
    margin-left: 0;
    width: 100%;
  }

  .page-content {
    padding: 1.1rem;
  }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.show {
  display: block;
}

/* Interactive Badge Buttons */
.status-btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none !important;
}

.status-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.status-btn:focus, .status-btn:active {
  outline: none !important;
  box-shadow: none !important;
  transform: scale(0.96);
}

.no-chevron::after {
  display: none !important;
}

/* Dropdown fixes for table clipping */
.dropdown-menu {
  z-index: 1060 !important;
}

[data-theme="dark"] .dropdown-menu {
  background-color: #1E1E3F !important;
  border: 1px solid #2e2e4f !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .dropdown-item {
  color: #A0A0C0 !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}

[data-theme="dark"] .dropdown-header {
  color: #636382 !important;
}