/* Modern Custom Theme - Comprehensive Bootstrap Overrides */

/* ============================================
   1. ROOT THEME VARIABLES - Color Palette & Base
   ============================================ */
   [data-bs-theme="custom"] {
    /* Base colors - Modern dark with vibrant accents */
    --bs-body-bg: #0a0e27;
    --bs-body-color: #e8eaf6;
    --bs-body-font-family: "Inter", "SF Pro Display", system-ui, -apple-system, 
                           BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.7;
    
    /* Brand palette - Vibrant modern colors - Forest Green theme */
    --bs-primary: #2D6A4F;          /* Forest Green */
    --bs-primary-rgb: 45, 106, 79;
    --bs-secondary: #DEDCFF;        /* Light Purple */
    --bs-success: #10b981;          /* Emerald */
    --bs-info: #06b6d4;             /* Cyan */
    --bs-warning: #f59e0b;          /* Amber */
    --bs-danger: #ef4444;           /* Red */
    --bs-light: #1e293b;
    --bs-dark: #020617;
    
    /* Border & Radius System */
    --bs-border-width: 2px;
    --bs-border-style: solid;
    --bs-border-color: rgba(45, 106, 79, 0.2);
    --bs-border-radius: 1.25rem;         /* Modern rounded corners */
    --bs-border-radius-sm: 0.75rem;
    --bs-border-radius-lg: 1.5rem;
    --bs-border-radius-xl: 2rem;
    --bs-border-radius-2xl: 2.5rem;
    
    /* Spacing overrides - More generous modern spacing */
    --bs-spacer: 1.5rem;
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
    
    /* Shadow system - Modern layered shadows */
    --bs-box-shadow: 0 4px 6px -1px rgba(0, 0, 10, 0.3), 
                     0 2px 4px -1px rgba(0, 0, 10, 0.2);
    --bs-box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 10, 0.25);
    --bs-box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 10, 0.4), 
                        0 10px 10px -5px rgba(0, 0, 10, 0.3);
    --bs-box-shadow-xl: 0 25px 50px -12px rgba(45, 106, 79, 0.25);
    
    /* Card styling */
      --bs-card-bg: #1e293b;
    --bs-card-color: #e8eaf6;
    --bs-card-border-color: rgba(45, 106, 79, 0.3);
    --bs-card-border-width: 2px;
    --bs-card-border-radius: 1.5rem;
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-cap-bg: rgba(45, 106, 79, 0.1);
    --bs-card-cap-color: #e8eaf6;
    
    /* Link colors */
    --bs-link-color: #40916C;
    --bs-link-hover-color: #2D6A4F;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: underline;
    
    /* Focus ring */
    --bs-focus-ring-width: 3px;
    --bs-focus-ring-opacity: 0.5;
    --bs-focus-ring-color: rgba(45, 106, 79, 0.5);
  }
  
  /* ============================================
     2. BUTTON SYSTEM - Modern interactive buttons
     ============================================ */
  
    [data-bs-theme="custom"] .btn-primary {
      --bs-btn-bg: var(--bs-primary);
      --bs-btn-border-color: var(--bs-primary);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #2D6A4F;
    --bs-btn-hover-border-color: #2D6A4F;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #081C15;
    --bs-btn-active-border-color: #081C15;
    --bs-btn-focus-shadow-rgb: 45, 106, 79;
    box-shadow: 0 4px 14px 0 rgba(45, 106, 79, 0.4);
  }
  
  [data-bs-theme="custom"] .btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(45, 106, 79, 0.5);
  }
  
    [data-bs-theme="custom"] .btn-secondary {
      --bs-btn-bg: var(--bs-secondary);
      --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-color: #2D6A4F;
    --bs-btn-hover-bg: #C9C6FF;
    --bs-btn-hover-border-color: #C9C6FF;
    --bs-btn-hover-color: #2D6A4F;
    --bs-btn-focus-shadow-rgb: 222, 220, 255;
    box-shadow: 0 4px 14px 0 rgba(222, 220, 255, 0.4);
  }
  
  [data-bs-theme="custom"] .btn-secondary:hover {
    box-shadow: 0 6px 20px 0 rgba(222, 220, 255, 0.5);
    --bs-btn-color: #2D6A4F !important;
  }
  
  [data-bs-theme="custom"] .btn-success {
    --bs-btn-bg: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-color: #ffffff !important;
    --bs-btn-hover-bg: #34d399;
    --bs-btn-hover-border-color: #34d399;
    --bs-btn-hover-color: #ffffff !important;
    --bs-btn-focus-shadow-rgb: 16, 185, 129;
    box-shadow: 0 4px 14px 0 rgba(222, 220, 255, 0.4);
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom"] .btn-success:hover {
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom"] .btn-danger {
    --bs-btn-bg: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #f87171;
    --bs-btn-hover-border-color: #f87171;
    --bs-btn-focus-shadow-rgb: 239, 68, 68;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
  }
  
  [data-bs-theme="custom"] .btn-warning {
    --bs-btn-bg: var(--bs-warning);
    --bs-btn-border-color: var(--bs-warning);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #fbbf24;
    --bs-btn-hover-border-color: #fbbf24;
    --bs-btn-focus-shadow-rgb: 245, 158, 11;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
  }
  
  [data-bs-theme="custom"] .btn-light {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-color: #000000 !important;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #f1f5f9;
    --bs-btn-hover-color: #000000 !important;
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-border-color: #e2e8f0;
    --bs-btn-active-color: #000000 !important;
    --bs-btn-focus-color: #000000 !important;
    color: #000000 !important;
  }
  
  [data-bs-theme="custom"] .btn-light:hover,
  [data-bs-theme="custom"] .btn-light:focus,
  [data-bs-theme="custom"] .btn-light:active,
  [data-bs-theme="custom"] .btn-light:visited {
    color: #000000 !important;
  }
  
  [data-bs-theme="custom"] .btn-light * {
    color: #000000 !important;
  }
  
  /* ============================================
     3. CARD SYSTEM - Glassmorphism-inspired
     ============================================ */
    [data-bs-theme="custom"] .card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(45, 106, 79, 0.3);
    border-radius: var(--bs-card-border-radius);
    box-shadow: var(--bs-box-shadow-lg),
                0 0 0 1px rgba(45, 106, 79, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  [data-bs-theme="custom"] .card:hover {
    border-color: rgba(45, 106, 79, 0.5);
    box-shadow: 0 25px 50px -12px rgba(45, 106, 79, 0.3),
                0 0 0 1px rgba(45, 106, 79, 0.2);
  }
  
  [data-bs-theme="custom"] .card-img-top {
    border-radius: calc(var(--bs-card-border-radius) - 2px) calc(var(--bs-card-border-radius) - 2px) 0 0;
    transition: transform 0.3s ease;
  }
  
  [data-bs-theme="custom"] .card:hover .card-img-top {
    transform: scale(1.05);
  }
  
  [data-bs-theme="custom"] .card-body {
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  }
  
  [data-bs-theme="custom"] .card-title {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  
  [data-bs-theme="custom"] .card-text {
    color: #cbd5e1;
    line-height: 1.75;
  }
  
  /* ============================================
     4. FORM CONTROLS - Modern input styling
     ============================================ */
  [data-bs-theme="custom"] .form-control,
  [data-bs-theme="custom"] .form-select {
    background-color: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(45, 106, 79, 0.3);
    border-radius: 0.875rem;
    color: #e8eaf6;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
  }
  
  [data-bs-theme="custom"] .form-control:focus,
  [data-bs-theme="custom"] .form-select:focus {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.2),
                0 4px 14px 0 rgba(45, 106, 79, 0.3);
    color: #ffffff;
    outline: none;
  }
  
  [data-bs-theme="custom"] .form-control::placeholder {
    color: rgba(203, 213, 225, 0.6);
  }
  
  [data-bs-theme="custom"] .form-label {
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* ============================================
     5. NAVBAR - Sleek navigation
     ============================================ */
  [data-bs-theme="custom"] .navbar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(45, 106, 79, 0.3);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  }
  
  [data-bs-theme="custom"] .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }
  
  [data-bs-theme="custom"] .navbar-brand:hover {
    color: var(--bs-primary) !important;
  }
  
  [data-bs-theme="custom"] .nav-link {
    color: rgba(232, 234, 246, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
  }
  
  [data-bs-theme="custom"] .nav-link:hover,
  [data-bs-theme="custom"] .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.2) 0%, rgba(222, 220, 255, 0.2) 100%);
    border: 1px solid rgba(45, 106, 79, 0.4);
  }
  
  /* ============================================
     6. ACCORDION - Modern collapsible panels
     ============================================ */
  [data-bs-theme="custom"] .accordion {
    --bs-accordion-bg: rgba(30, 41, 59, 0.8);
    --bs-accordion-border-color: rgba(45, 106, 79, 0.3);
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: calc(1rem - 2px);
    --bs-accordion-btn-padding-x: 1.5rem;
    --bs-accordion-btn-padding-y: 1.25rem;
    --bs-accordion-body-padding-x: 1.5rem;
    --bs-accordion-body-padding-y: 1.25rem;
  }
  
  [data-bs-theme="custom"] .accordion-button {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #f1f5f9;
    font-weight: 600;
    border: 2px solid rgba(45, 106, 79, 0.3);
    transition: all 0.3s ease;
  }
  
  [data-bs-theme="custom"] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.2) 0%, rgba(222, 220, 255, 0.2) 100%);
    color: #ffffff;
    border-color: rgba(45, 106, 79, 0.5);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
  }
  
  [data-bs-theme="custom"] .accordion-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.2);
  }
  
  [data-bs-theme="custom"] .accordion-body {
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
  }
  
  /* ============================================
     7. TABLES - Modern data presentation
     ============================================ */
  [data-bs-theme="custom"] .table {
    --bs-table-bg: rgba(30, 41, 59, 0.6);
    --bs-table-border-color: rgba(45, 106, 79, 0.3);
    --bs-table-striped-bg: rgba(45, 106, 79, 0.05);
    --bs-table-hover-bg: rgba(45, 106, 79, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(45, 106, 79, 0.3);
  }
  
  [data-bs-theme="custom"] .table thead {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.2) 0%, rgba(222, 220, 255, 0.2) 100%);
  }
  
  [data-bs-theme="custom"] .table thead th {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(45, 106, 79, 0.4);
    padding: 1.25rem;
  }
  
  [data-bs-theme="custom"] .table tbody td {
    color: #e8eaf6;
    padding: 1rem 1.25rem;
    border-color: rgba(45, 106, 79, 0.2);
  }
  
  /* ============================================
     8. ALERTS & BADGES - Enhanced notifications
     ============================================ */
  [data-bs-theme="custom"] .alert {
    border-radius: 1rem;
    border: 2px solid;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--bs-box-shadow);
  }
  
  [data-bs-theme="custom"] .alert-success {
    background: linear-gradient(135deg, rgba(222, 220, 255, 0.15) 0%, rgba(222, 220, 255, 0.05) 100%);
    border-color: rgba(222, 220, 255, 0.4);
    color: #6ee7b7;
  }
  
  [data-bs-theme="custom"] .badge {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
  }
  
  /* Ensure white text on green backgrounds */
  [data-bs-theme="custom"] .badge.bg-success,
  [data-bs-theme="custom"] .badge.bg-secondary,
  [data-bs-theme="custom-light"] .badge.bg-success,
  [data-bs-theme="custom-light"] .badge.bg-secondary {
    color: #ffffff !important;
  }
  
  /* ============================================
     9. MODAL - Enhanced dialogs
     ============================================ */
  [data-bs-theme="custom"] .modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(45, 106, 79, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #e8eaf6;
  }
  
  [data-bs-theme="custom"] .modal-header {
    border-bottom: 2px solid rgba(45, 106, 79, 0.3);
    padding: 1.5rem;
  }
  
  [data-bs-theme="custom"] .modal-title {
    color: #ffffff;
    font-weight: 700;
  }
  
  [data-bs-theme="custom"] .modal-body {
    padding: 1.5rem;
    color: #cbd5e1;
  }
  
  [data-bs-theme="custom"] .modal-footer {
    border-top: 2px solid rgba(45, 106, 79, 0.3);
    padding: 1.5rem;
  }
  
  /* ============================================
     10. HEADER & FOOTER - Hero sections
     ============================================ */
  [data-bs-theme="custom"] .bg-primary {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%) !important;
    box-shadow: 0 10px 40px -10px rgba(45, 106, 79, 0.4);
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom"] .bg-primary * {
    color: #ffffff !important;
  }
  
  /* Exception: White buttons should have black text even inside bg-primary */
  [data-bs-theme="custom"] .bg-primary .btn-light,
  [data-bs-theme="custom"] .bg-primary .btn-light * {
    color: #000000 !important;
  }
  
  [data-bs-theme="custom"] .bg-primary h1,
  [data-bs-theme="custom"] .bg-primary h2,
  [data-bs-theme="custom"] .bg-primary h3,
  [data-bs-theme="custom"] .bg-primary h4,
  [data-bs-theme="custom"] .bg-primary h5,
  [data-bs-theme="custom"] .bg-primary h6,
  [data-bs-theme="custom"] .bg-primary p,
  [data-bs-theme="custom"] .bg-primary span,
  [data-bs-theme="custom"] .bg-primary a:not(.btn-light),
  [data-bs-theme="custom"] .bg-primary .lead {
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom"] .bg-dark {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-top: 2px solid rgba(45, 106, 79, 0.3);
  }
  
  [data-bs-theme="custom"] footer {
    padding: 2rem 0 !important;
  }
  
  [data-bs-theme="custom"] footer a {
    color: var(--bs-primary);
    transition: color 0.3s ease;
  }
  
  [data-bs-theme="custom"] footer a:hover {
    color: #40916C;
  }
  
  /* ============================================
     11. UTILITY ENHANCEMENTS
     ============================================ */
  [data-bs-theme="custom"] .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  [data-bs-theme="custom"] h1, 
  [data-bs-theme="custom"] h2, 
  [data-bs-theme="custom"] h3, 
  [data-bs-theme="custom"] h4, 
  [data-bs-theme="custom"] h5, 
  [data-bs-theme="custom"] h6 {
    color: #f1f5f9;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  [data-bs-theme="custom"] .display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  /* Smooth scroll behavior */
  [data-bs-theme="custom"] html {
    scroll-behavior: smooth;
  }
  
  /* Selection color */
  [data-bs-theme="custom"] ::selection {
    background: rgba(45, 106, 79, 0.3);
    color: #ffffff;
  }
  
  /* ============================================
     12. LIGHT THEME VARIANT
     ============================================ */
  [data-bs-theme="custom-light"] {
    /* Base colors - Modern light with vibrant accents */
    --bs-body-bg: #f8fafc;
    --bs-body-color: #1e293b;
    --bs-body-font-family: "Inter", "SF Pro Display", system-ui, -apple-system, 
                           BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.7;
    
    /* Brand palette - Same vibrant colors - Forest Green theme */
    --bs-primary: #2D6A4F;
    --bs-primary-rgb: 45, 106, 79;
    --bs-secondary: #DEDCFF;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f1f5f9;
    --bs-dark: #0f172a;
    
    /* Border & Radius System */
    --bs-border-width: 2px;
    --bs-border-style: solid;
    --bs-border-color: rgba(45, 106, 79, 0.2);
    --bs-border-radius: 1.25rem;
    --bs-border-radius-sm: 0.75rem;
    --bs-border-radius-lg: 1.5rem;
    --bs-border-radius-xl: 2rem;
    --bs-border-radius-2xl: 2.5rem;
    
    /* Spacing */
    --bs-spacer: 1.5rem;
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
    
    /* Shadow system - Softer for light mode */
    --bs-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                     0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bs-box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bs-box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --bs-box-shadow-xl: 0 25px 50px -12px rgba(45, 106, 79, 0.15);
    
    /* Card styling */
    --bs-card-bg: #ffffff;
    --bs-card-color: #1e293b;
    --bs-card-border-color: rgba(45, 106, 79, 0.2);
    --bs-card-border-width: 2px;
    --bs-card-border-radius: 1.5rem;
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-cap-bg: rgba(45, 106, 79, 0.05);
    --bs-card-cap-color: #1e293b;
    
    /* Link colors */
    --bs-link-color: #40916C;
    --bs-link-hover-color: #2D6A4F;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: underline;
    
    /* Focus ring */
    --bs-focus-ring-width: 3px;
    --bs-focus-ring-opacity: 0.5;
    --bs-focus-ring-color: rgba(45, 106, 79, 0.5);
  }
  
  /* Light theme buttons */
  [data-bs-theme="custom-light"] .btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #2D6A4F;
    --bs-btn-hover-border-color: #2D6A4F;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #081C15;
    --bs-btn-active-border-color: #081C15;
    --bs-btn-focus-shadow-rgb: 45, 106, 79;
    box-shadow: 0 4px 14px 0 rgba(45, 106, 79, 0.3);
  }
  
  [data-bs-theme="custom-light"] .btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(45, 106, 79, 0.4);
  }
  
  [data-bs-theme="custom-light"] .btn-secondary {
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-color: #2D6A4F;
    --bs-btn-hover-bg: #C9C6FF;
    --bs-btn-hover-border-color: #C9C6FF;
    --bs-btn-hover-color: #2D6A4F;
    --bs-btn-focus-shadow-rgb: 222, 220, 255;
    box-shadow: 0 4px 14px 0 rgba(222, 220, 255, 0.3);
  }
  
  [data-bs-theme="custom-light"] .btn-secondary:hover {
    box-shadow: 0 6px 20px 0 rgba(222, 220, 255, 0.4);
    --bs-btn-color: #2D6A4F !important;
  }
  
  [data-bs-theme="custom-light"] .btn-success {
    --bs-btn-bg: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-color: #ffffff !important;
    --bs-btn-hover-bg: #34d399;
    --bs-btn-hover-border-color: #34d399;
    --bs-btn-hover-color: #ffffff !important;
    --bs-btn-focus-shadow-rgb: 16, 185, 129;
    box-shadow: 0 4px 14px 0 rgba(222, 220, 255, 0.3);
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom-light"] .btn-success:hover {
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom-light"] .btn-danger {
    --bs-btn-bg: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #f87171;
    --bs-btn-hover-border-color: #f87171;
    --bs-btn-focus-shadow-rgb: 239, 68, 68;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
  }
  
  [data-bs-theme="custom-light"] .btn-warning {
    --bs-btn-bg: var(--bs-warning);
    --bs-btn-border-color: var(--bs-warning);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #fbbf24;
    --bs-btn-hover-border-color: #fbbf24;
    --bs-btn-focus-shadow-rgb: 245, 158, 11;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
  }
  
  [data-bs-theme="custom-light"] .btn-light {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-color: #000000 !important;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #f1f5f9;
    --bs-btn-hover-color: #000000 !important;
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-border-color: #e2e8f0;
    --bs-btn-active-color: #000000 !important;
    --bs-btn-focus-color: #000000 !important;
    color: #000000 !important;
  }
  
  [data-bs-theme="custom-light"] .btn-light:hover,
  [data-bs-theme="custom-light"] .btn-light:focus,
  [data-bs-theme="custom-light"] .btn-light:active,
  [data-bs-theme="custom-light"] .btn-light:visited {
    color: #000000 !important;
  }
  
  [data-bs-theme="custom-light"] .btn-light * {
    color: #000000 !important;
  }
  
  /* Apply button styles to both themes */
  [data-bs-theme="custom-light"] .btn,
  [data-bs-theme="custom"] .btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 0.875rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-font-size: 0.9375rem;
    --bs-btn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-width: 2px;
    position: relative;
    overflow: hidden;
  }
  
  [data-bs-theme="custom-light"] .btn::before,
  [data-bs-theme="custom"] .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  [data-bs-theme="custom-light"] .btn:hover::before,
  [data-bs-theme="custom"] .btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  /* Light theme cards */
  [data-bs-theme="custom-light"] .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(45, 106, 79, 0.2);
    border-radius: var(--bs-card-border-radius);
    box-shadow: var(--bs-box-shadow-lg),
                0 0 0 1px rgba(45, 106, 79, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  [data-bs-theme="custom-light"] .card:hover {
    border-color: rgba(45, 106, 79, 0.4);
    box-shadow: 0 25px 50px -12px rgba(45, 106, 79, 0.2),
                0 0 0 1px rgba(45, 106, 79, 0.1);
  }
  
  [data-bs-theme="custom-light"] .card-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  
  [data-bs-theme="custom-light"] .card-text {
    color: #475569;
    line-height: 1.75;
  }
  
  /* Light theme forms */
  [data-bs-theme="custom-light"] .form-control,
  [data-bs-theme="custom-light"] .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(45, 106, 79, 0.2);
    border-radius: 0.875rem;
    color: #1e293b;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
  }
  
  [data-bs-theme="custom-light"] .form-control:focus,
  [data-bs-theme="custom-light"] .form-select:focus {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1),
                0 4px 14px 0 rgba(45, 106, 79, 0.2);
    color: #0f172a;
    outline: none;
  }
  
  [data-bs-theme="custom-light"] .form-control::placeholder {
    color: rgba(71, 85, 105, 0.5);
  }
  
  [data-bs-theme="custom-light"] .form-label {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Light theme navbar */
  [data-bs-theme="custom-light"] .navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(45, 106, 79, 0.2);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  [data-bs-theme="custom-light"] .navbar-brand {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }
  
  [data-bs-theme="custom-light"] .navbar-brand:hover {
    color: var(--bs-primary) !important;
  }
  
  [data-bs-theme="custom-light"] .nav-link {
    color: rgba(15, 23, 42, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
  }
  
  [data-bs-theme="custom-light"] .nav-link:hover,
  [data-bs-theme="custom-light"] .nav-link.active {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(222, 220, 255, 0.1) 100%);
    border: 1px solid rgba(45, 106, 79, 0.3);
  }
  
  /* Light theme accordion */
  [data-bs-theme="custom-light"] .accordion {
    --bs-accordion-bg: rgba(255, 255, 255, 0.8);
    --bs-accordion-border-color: rgba(45, 106, 79, 0.2);
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: calc(1rem - 2px);
    --bs-accordion-btn-padding-x: 1.5rem;
    --bs-accordion-btn-padding-y: 1.25rem;
    --bs-accordion-body-padding-x: 1.5rem;
    --bs-accordion-body-padding-y: 1.25rem;
  }
  
  [data-bs-theme="custom-light"] .accordion-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: #0f172a;
    font-weight: 600;
    border: 2px solid rgba(45, 106, 79, 0.2);
    transition: all 0.3s ease;
  }
  
  [data-bs-theme="custom-light"] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(222, 220, 255, 0.1) 100%);
    color: #0f172a;
    border-color: rgba(45, 106, 79, 0.4);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.05);
  }
  
  [data-bs-theme="custom-light"] .accordion-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
  }
  
  [data-bs-theme="custom-light"] .accordion-body {
    background: rgba(248, 250, 252, 0.8);
    color: #475569;
  }
  
  /* Light theme tables */
  [data-bs-theme="custom-light"] .table {
    --bs-table-bg: rgba(255, 255, 255, 0.8);
    --bs-table-border-color: rgba(45, 106, 79, 0.2);
    --bs-table-striped-bg: rgba(45, 106, 79, 0.03);
    --bs-table-hover-bg: rgba(45, 106, 79, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(45, 106, 79, 0.2);
  }
  
  [data-bs-theme="custom-light"] .table thead {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(222, 220, 255, 0.1) 100%);
  }
  
  [data-bs-theme="custom-light"] .table thead th {
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(45, 106, 79, 0.3);
    padding: 1.25rem;
  }
  
  [data-bs-theme="custom-light"] .table tbody td {
    color: #1e293b;
    padding: 1rem 1.25rem;
    border-color: rgba(45, 106, 79, 0.15);
  }
  
  /* Light theme alerts */
  [data-bs-theme="custom-light"] .alert {
    border-radius: 1rem;
    border: 2px solid;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--bs-box-shadow);
  }
  
  [data-bs-theme="custom-light"] .alert-success {
    background: linear-gradient(135deg, rgba(222, 220, 255, 0.1) 0%, rgba(222, 220, 255, 0.05) 100%);
    border-color: rgba(222, 220, 255, 0.3);
    color: #059669;
  }
  
  /* Light theme modal */
  [data-bs-theme="custom-light"] .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(45, 106, 79, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #1e293b;
  }
  
  [data-bs-theme="custom-light"] .modal-header {
    border-bottom: 2px solid rgba(45, 106, 79, 0.2);
    padding: 1.5rem;
  }
  
  [data-bs-theme="custom-light"] .modal-title {
    color: #0f172a;
    font-weight: 700;
  }
  
  [data-bs-theme="custom-light"] .modal-body {
    padding: 1.5rem;
    color: #475569;
  }
  
  [data-bs-theme="custom-light"] .modal-footer {
    border-top: 2px solid rgba(45, 106, 79, 0.2);
    padding: 1.5rem;
  }
  
  /* Light theme header & footer */
  [data-bs-theme="custom-light"] .bg-primary {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%) !important;
    box-shadow: 0 10px 40px -10px rgba(45, 106, 79, 0.3);
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom-light"] .bg-primary * {
    color: #ffffff !important;
  }
  
  /* Exception: White buttons should have black text even inside bg-primary */
  [data-bs-theme="custom-light"] .bg-primary .btn-light,
  [data-bs-theme="custom-light"] .bg-primary .btn-light * {
    color: #000000 !important;
  }
  
  [data-bs-theme="custom-light"] .bg-primary h1,
  [data-bs-theme="custom-light"] .bg-primary h2,
  [data-bs-theme="custom-light"] .bg-primary h3,
  [data-bs-theme="custom-light"] .bg-primary h4,
  [data-bs-theme="custom-light"] .bg-primary h5,
  [data-bs-theme="custom-light"] .bg-primary h6,
  [data-bs-theme="custom-light"] .bg-primary p,
  [data-bs-theme="custom-light"] .bg-primary span,
  [data-bs-theme="custom-light"] .bg-primary a:not(.btn-light),
  [data-bs-theme="custom-light"] .bg-primary .lead {
    color: #ffffff !important;
  }
  
  [data-bs-theme="custom-light"] .bg-dark {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    border-top: 2px solid rgba(45, 106, 79, 0.2);
    color: #0f172a !important;
  }
  
  [data-bs-theme="custom-light"] footer a {
    color: var(--bs-primary);
    transition: color 0.3s ease;
  }
  
  [data-bs-theme="custom-light"] footer a:hover {
    color: #40916C;
  }
  
  /* Light theme headings */
  [data-bs-theme="custom-light"] h1, 
  [data-bs-theme="custom-light"] h2, 
  [data-bs-theme="custom-light"] h3, 
  [data-bs-theme="custom-light"] h4, 
  [data-bs-theme="custom-light"] h5, 
  [data-bs-theme="custom-light"] h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  [data-bs-theme="custom-light"] .display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  [data-bs-theme="custom-light"] ::selection {
    background: rgba(45, 106, 79, 0.2);
    color: #0f172a;
  }
  
  /* ============================================
     13. THEME TOGGLE SWITCH
     ============================================ */
  .theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
  }
  
  [data-bs-theme="custom-light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  
  [data-bs-theme="custom-light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .theme-toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
  }
  
  .theme-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
  }
  
  .theme-toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    transition: background 0.3s ease;
  }
  
  [data-bs-theme="custom-light"] .theme-toggle-switch {
    background: rgba(45, 106, 79, 0.3);
  }
  
  .theme-toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  [data-bs-theme="custom-light"] .theme-toggle-switch::after {
    transform: translateX(24px);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

  /* ============================================
     15. TOAST CONTAINER - Bottom right positioning
     ============================================ */
  #toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1055;
    min-width: 300px;
    max-width: 400px;
  }

  #toast-container .toast {
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  @media (max-width: 576px) {
    #toast-container {
      bottom: 0.5rem;
      right: 0.5rem;
      left: 0.5rem;
      min-width: auto;
      max-width: 100%;
    }
  }

  /* ============================================
     16. FORM VALIDATION - Remove validation icons
     ============================================ */
  .form-control.is-invalid,
  .form-control.is-valid {
    background-image: none !important;
    padding-right: 0.75rem;
  }

  .form-control.is-invalid:focus,
  .form-control.is-valid:focus {
    background-image: none !important;
  }
     