/* Enhanced Light Theme with Visual Definition */
:root[data-theme="light"] {
    /* Bootstrap Light Theme Variables */
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    
    /* Enhanced Background Colors with Subtle Gradients */
    --bs-body-bg: #f0f4f8;
    --bs-body-color: #1a202c;
    --bs-border-color: #c1c9d2;
    --bs-gray-100: #f7f9fc;
    --bs-gray-200: #edf2f7;
    --bs-gray-300: #e2e8f0;
    --bs-gray-400: #cbd5e0;
    --bs-gray-500: #a0aec0;
    --bs-gray-600: #718096;
    --bs-gray-700: #4a5568;
    --bs-gray-800: #2d3748;
    --bs-gray-900: #1a202c;
    
    /* Enhanced Card and Component Colors */
    --bs-tertiary-bg: #f7f9fc;
    --bs-secondary-bg: #edf2f7;
    --bs-emphasis-color: #1a202c;
    --bs-secondary-color: #718096;
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    
    /* Orange Button Colors for Light Theme */
    --orange-primary: #ff6b35;
    --orange-hover: #e55a2b;
    --orange-active: #cc4d21;
    
    /* Custom Enhanced Variables for Better Visual Hierarchy */
    --light-card-bg: #ffffff;
    --light-card-shadow: 0 10px 30px rgba(74, 85, 104, 0.18);
    --light-card-hover-shadow: 0 15px 45px rgba(74, 85, 104, 0.25);
    --light-border: #d1d5db;
    --light-border-strong: #9ca3af;
    --light-text-primary: #111827;
    --light-text-secondary: #374151;
    --light-text-muted: #6b7280;
}

/* Maximum Definition Light Theme Body */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
    color: var(--light-text-primary) !important;
    min-height: 100vh !important;
    
    /* Add subtle texture pattern for more definition */
    &::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(circle at 25% 25%, rgba(156, 163, 175, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(156, 163, 175, 0.03) 0%, transparent 50%);
        background-size: 200px 200px;
        pointer-events: none;
        z-index: -1;
    }
}

/* Maximum Definition Navigation for Light Theme */
[data-theme="light"] .navbar-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%) !important;
    border-bottom: 4px solid #9ca3af !important;
    box-shadow: 0 8px 30px rgba(74, 85, 104, 0.18), 0 4px 15px rgba(74, 85, 104, 0.1), inset 0 -2px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 0 0 20px 20px !important;
}

[data-theme="light"] .navbar-dark .navbar-brand {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

[data-theme="light"] .navbar-dark .navbar-brand:hover {
    color: #0d6efd !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 0.25rem !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: translateY(-1px) !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link.active {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.15) !important;
    font-weight: 700 !important;
}

[data-theme="light"] .navbar-dark .navbar-toggler {
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
}

[data-theme="light"] .navbar-dark .navbar-toggler:hover {
    border-color: #adb5bd !important;
    background-color: #f8f9fa !important;
}

[data-theme="light"] .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

/* Maximum Definition Breadcrumb */
[data-theme="light"] .breadcrumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%) !important;
    border: 2px solid var(--light-border-strong) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
}

/* Enhanced Page Headers and Titles */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
    color: var(--light-text-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

[data-theme="light"] .page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
}

[data-theme="light"] .breadcrumb-item a {
    color: #0d6efd !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

[data-theme="light"] .breadcrumb-item a:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

[data-theme="light"] .breadcrumb-item.active {
    color: #6c757d !important;
    font-weight: 600 !important;
}

/* Dramatically Enhanced Cards for Light Theme with Maximum Definition */
[data-theme="light"] .card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 3px solid #9ca3af !important;
    color: var(--light-text-primary) !important;
    box-shadow: 0 20px 50px rgba(74, 85, 104, 0.25), 0 12px 35px rgba(74, 85, 104, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(74, 85, 104, 0.1) !important;
    border-radius: 18px !important;
    outline: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    
    /* Add visible inner shadow for more definition */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 15px;
        padding: 2px;
        background: linear-gradient(145deg, rgba(156, 163, 175, 0.2), rgba(209, 213, 219, 0.2));
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }
}

/* Enhanced Card Hover Effects with Moderate Definition */
[data-theme="light"] .card:hover {
    border-color: #6b7280 !important;
    box-shadow: 0 20px 50px rgba(74, 85, 104, 0.25), 0 12px 30px rgba(74, 85, 104, 0.18), inset 0 3px 0 rgba(255, 255, 255, 1), 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-4px) scale(1.01) !important;
}

/* Card Enhanced Backgrounds for Different Sections */
[data-theme="light"] .container .card,
[data-theme="light"] .main-content .card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%) !important;
    border: 4px solid #a8b8cc !important;
    box-shadow: 0 18px 50px rgba(74, 85, 104, 0.20), 0 10px 30px rgba(74, 85, 104, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Clickable Cards Enhancement */
[data-theme="light"] .card.clickable,
[data-theme="light"] .card[onclick],
[data-theme="light"] .card.pointer {
    cursor: pointer !important;
    border-color: #a0aec0 !important;
    box-shadow: 0 10px 25px rgba(74, 85, 104, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .card.clickable:hover,
[data-theme="light"] .card[onclick]:hover,
[data-theme="light"] .card.pointer:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.2), 0 8px 20px rgba(13, 110, 253, 0.12) !important;
    transform: translateY(-3px) !important;
}

/* Card Action Buttons */
[data-theme="light"] .card .btn-group .btn,
[data-theme="light"] .card .btn-toolbar .btn {
    margin: 0 0.25rem !important;
    font-weight: 600 !important;
    border-width: 2px !important;
}

/* Enhanced Image Grid Cards with Stable Definition */
[data-theme="light"] .image-item,
[data-theme="light"] .image-card {
    background-color: #ffffff !important;
    border: 2px solid #d1d5db !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.1), 0 2px 8px rgba(74, 85, 104, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    overflow: hidden !important;
    position: relative !important;
}

[data-theme="light"] .image-item:hover,
[data-theme="light"] .image-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2), 0 6px 15px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

[data-theme="light"] .image-item img,
[data-theme="light"] .image-card img {
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .user-image-label {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #212529 !important;
    font-weight: 600 !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
    border: 1px solid #e9ecef !important;
    text-align: center !important;
}

/* Ensure borders are always visible, not just on focus */
[data-theme="light"] .card:focus,
[data-theme="light"] .card:active {
    border: 2px solid #6c757d !important;
    outline: none !important;
}

/* Dramatically Enhanced Shadows for Better Visual Hierarchy */
[data-theme="light"] .shadow-sm {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.15), 0 3px 12px rgba(74, 85, 104, 0.08) !important;
}

[data-theme="light"] .shadow {
    box-shadow: 0 10px 30px rgba(74, 85, 104, 0.2), 0 6px 20px rgba(74, 85, 104, 0.12) !important;
}

[data-theme="light"] .shadow-lg {
    box-shadow: 0 20px 60px rgba(74, 85, 104, 0.25), 0 12px 40px rgba(74, 85, 104, 0.15) !important;
}

/* Custom Enhanced Shadow Classes */
[data-theme="light"] .shadow-enhanced {
    box-shadow: 0 15px 50px rgba(74, 85, 104, 0.18), 0 8px 30px rgba(74, 85, 104, 0.1) !important;
}

[data-theme="light"] .shadow-subtle {
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.1), 0 2px 8px rgba(74, 85, 104, 0.05) !important;
}

/* Maximum Definition Button Shadows and Effects */
[data-theme="light"] .btn {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.15), 0 2px 8px rgba(74, 85, 104, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid transparent !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    
    /* Add subtle border definition */
    &::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 14px;
        padding: 2px;
        background: linear-gradient(145deg, rgba(156, 163, 175, 0.3), rgba(209, 213, 219, 0.3));
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        opacity: 0.5;
    }
}

[data-theme="light"] .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(74, 85, 104, 0.2), 0 4px 12px rgba(74, 85, 104, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(156, 163, 175, 0.4) !important;
}

/* Remove duplicate card hover rule - handled above */

[data-theme="light"] .card-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    border-bottom: 2px solid var(--light-border) !important;
    color: var(--light-text-primary) !important;
    font-weight: 600 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 16px 16px 0 0 !important;
}

[data-theme="light"] .card-footer {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    border-top: 2px solid var(--light-border) !important;
    color: var(--light-text-secondary) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 0 16px 16px !important;
}

[data-theme="light"] .card-body {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--light-text-primary) !important;
    padding: 1.25rem !important;
}

/* Compact cards for stats sections */
[data-theme="light"] .card .card-body.py-3 {
    padding: 0.75rem 1rem !important;
}

[data-theme="light"] .card .card-body.py-2 {
    padding: 0.5rem 0.75rem !important;
}

[data-theme="light"] .card .card-body.p-3 {
    padding: 1rem !important;
}

[data-theme="light"] .card .card-body.py-3 h6,
[data-theme="light"] .card .card-body.py-2 h6,
[data-theme="light"] .card .card-body.p-3 h6 {
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

[data-theme="light"] .card .card-body.py-3 h3,
[data-theme="light"] .card .card-body.p-3 h3 {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

[data-theme="light"] .card .card-body.py-3 .progress {
    margin-top: 0.5rem !important;
}

[data-theme="light"] .card .card-body.py-3 .d-flex {
    margin-bottom: 0.5rem !important;
}

/* Enhanced Main Content Areas */
[data-theme="light"] .container,
[data-theme="light"] .container-fluid {
    padding: 1rem !important;
}

[data-theme="light"] .row {
    margin-bottom: 1rem !important;
}

/* Maximum Definition Page Sections */
[data-theme="light"] .dashboard-section,
[data-theme="light"] .content-section,
[data-theme="light"] .main-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.12), 0 4px 15px rgba(74, 85, 104, 0.06), inset 0 2px 0 rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--light-border) !important;
}

/* Buttons for Light Theme */
[data-theme="light"] .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

[data-theme="light"] .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #ffffff;
}

/* Maximum Definition Forms for Light Theme */
[data-theme="light"] .form-control {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: var(--light-text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .form-control:focus {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%) !important;
    border-color: #3b82f6 !important;
    color: var(--light-text-primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 6px 20px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(74, 85, 104, 0.08) !important;
    outline: none !important;
    transform: none !important;
}

[data-theme="light"] .form-control::placeholder {
    color: #6c757d !important;
    opacity: 0.8 !important;
}

[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    border: 1px solid #d1d5db !important;
    color: #212529 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .form-select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 4px 12px rgba(13, 110, 253, 0.15) !important;
}

/* Form Labels */
[data-theme="light"] .form-label {
    color: #212529 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* Input Groups */
[data-theme="light"] .input-group-text {
    background-color: #f8f9fa !important;
    border: 1px solid #d1d5db !important;
    color: #495057 !important;
    font-weight: 600 !important;
    border-radius: 8px 0 0 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .input-group .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

[data-theme="light"] .input-group-text:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
}

/* Textareas */
[data-theme="light"] textarea.form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Form Text and Help */
[data-theme="light"] .form-text {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

/* Checkbox and Radio */
[data-theme="light"] .form-check-input {
    background-color: #ffffff !important;
    border: 2px solid #ced4da !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

[data-theme="light"] .form-check-label {
    color: #212529 !important;
    font-weight: 500 !important;
}

/* Dramatically Enhanced Tables for Light Theme */
[data-theme="light"] .table {
    color: var(--light-text-primary) !important;
    border-color: var(--light-border) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(74, 85, 104, 0.12) !important;
}

[data-theme="light"] .table th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    color: var(--light-text-primary) !important;
    font-weight: 700 !important;
    border-bottom: 3px solid var(--light-border) !important;
    padding: 1.25rem 1rem !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.5px !important;
}

[data-theme="light"] .table td {
    padding: 1.25rem 1rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    color: var(--light-text-primary) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
}

[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
    color: #212529 !important;
}

/* Table Responsive Container */
[data-theme="light"] .table-responsive {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}

/* Badge Enhancement in Tables */
[data-theme="light"] .table .badge {
    font-weight: 600 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
}

[data-theme="light"] .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

[data-theme="light"] .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #212529 !important;
}

[data-theme="light"] .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

[data-theme="light"] .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
}

/* Enhanced Alerts with Better Visual Appeal */
[data-theme="light"] .alert {
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.12) !important;
    border-width: 2px !important;
    font-weight: 500 !important;
}

[data-theme="light"] .alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: #0c4a6e !important;
}

[data-theme="light"] .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #92400e !important;
}

[data-theme="light"] .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #991b1b !important;
}

[data-theme="light"] .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #064e3b !important;
}

/* Add subtle animation to alerts */
[data-theme="light"] .alert {
    animation: fadeInUp 0.5s ease-out !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Visual Enhancements for Light Theme */

/* Enhanced List Groups */
[data-theme="light"] .list-group-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--light-border) !important;
    color: var(--light-text-primary) !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
    margin-bottom: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.08) !important;
}

[data-theme="light"] .list-group-item:hover {
    background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%) !important;
    border-color: #a0aec0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.15) !important;
}

[data-theme="light"] .list-group-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Enhanced Progress Bars */
[data-theme="light"] .progress {
    background: linear-gradient(145deg, #edf2f7 0%, #e2e8f0 100%) !important;
    border-radius: 12px !important;
    height: 1.5rem !important;
    box-shadow: inset 0 2px 8px rgba(74, 85, 104, 0.1) !important;
}

[data-theme="light"] .progress-bar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Enhanced Pagination */
[data-theme="light"] .pagination .page-link {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid var(--light-border) !important;
    color: var(--light-text-primary) !important;
    border-radius: 12px !important;
    margin: 0 0.25rem !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.08) !important;
}

[data-theme="light"] .pagination .page-link:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

[data-theme="light"] .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Enhanced Tabs */
[data-theme="light"] .nav-tabs {
    border-bottom: 3px solid var(--light-border) !important;
    margin-bottom: 2rem !important;
}

[data-theme="light"] .nav-tabs .nav-link {
    background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%) !important;
    border: 2px solid var(--light-border) !important;
    color: var(--light-text-secondary) !important;
    border-radius: 12px 12px 0 0 !important;
    margin-right: 0.5rem !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .nav-tabs .nav-link:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%) !important;
    border-color: #a0aec0 !important;
    color: var(--light-text-primary) !important;
}

[data-theme="light"] .nav-tabs .nav-link.active {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: var(--light-border) #dee2e6 #ffffff !important;
    color: var(--light-text-primary) !important;
    font-weight: 700 !important;
}

/* Enhanced Spinners and Loading States */
[data-theme="light"] .spinner-border {
    color: #0d6efd !important;
    animation: spinner-border 0.75s linear infinite !important;
}

[data-theme="light"] .spinner-grow {
    color: #0d6efd !important;
    animation: spinner-grow 0.75s linear infinite !important;
}

/* Enhanced Tooltips */
[data-theme="light"] .tooltip .tooltip-inner {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(26, 32, 44, 0.3) !important;
}

/* Enhanced Popovers */
[data-theme="light"] .popover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid var(--light-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(74, 85, 104, 0.15) !important;
}

[data-theme="light"] .popover-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    border-bottom: 2px solid var(--light-border) !important;
    color: var(--light-text-primary) !important;
    font-weight: 600 !important;
}

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

/* Enhanced Badges with More Visual Interest */
[data-theme="light"] .badge {
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.15) !important;
}

/* Enhanced Accordions */
[data-theme="light"] .accordion-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid var(--light-border) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.08) !important;
}

[data-theme="light"] .accordion-header .accordion-button {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    color: var(--light-text-primary) !important;
    font-weight: 600 !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    border: none !important;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

[data-theme="light"] .accordion-body {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--light-text-primary) !important;
    padding: 1.5rem !important;
}

/* Footer Enhancement */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    color: #ffffff !important;
    padding: 3rem 0 !important;
    margin-top: 4rem !important;
}

/* Global Text Selection */
[data-theme="light"] ::selection {
    background: rgba(13, 110, 253, 0.2) !important;
    color: var(--light-text-primary) !important;
}

/* Custom Scrollbar for Light Theme */
[data-theme="light"] ::-webkit-scrollbar {
    width: 12px !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f7fafc !important;
    border-radius: 6px !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
    border-radius: 6px !important;
    border: 2px solid #f7fafc !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%) !important;
}

/* Enhanced Focus States */
[data-theme="light"] *:focus {
    outline: 3px solid rgba(13, 110, 253, 0.3) !important;
    outline-offset: 2px !important;
}

/* Improved Visual Contrast for All Interactive Elements */
[data-theme="light"] a:not(.btn) {
    color: #0d6efd !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] a:not(.btn):hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

/* Modals for Light Theme */
[data-theme="light"] .modal-content {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .modal-header {
    border-bottom-color: #dee2e6;
}

[data-theme="light"] .modal-footer {
    border-top-color: #dee2e6;
}

/* Dropdown for Light Theme */
[data-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .dropdown-item {
    color: #212529 !important;
    background-color: transparent !important;
}

[data-theme="light"] .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #1e2125 !important;
}

[data-theme="light"] .dropdown-divider {
    border-top-color: #dee2e6;
}

/* Landing Page Specific Light Theme */
[data-theme="light"] .landing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

[data-theme="light"] .hero-background {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

[data-theme="light"] .how-it-works {
    background-color: #f8f9fa;
}

[data-theme="light"] .process-step {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .step-content {
    background-color: #ffffff;
}

[data-theme="light"] .step-content:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

/* Features Section Light Theme */
[data-theme="light"] .features-section {
    background-color: #ffffff;
}

[data-theme="light"] .feature-card {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .feature-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

/* Pricing Section Light Theme */
[data-theme="light"] .pricing-section {
    background-color: #f8f9fa;
}

[data-theme="light"] .pricing-card {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .pricing-card.featured {
    border-color: #0d6efd;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Footer Light Theme */
[data-theme="light"] .footer {
    background-color: #212529;
    color: #ffffff;
}

/* Text Colors for Light Theme */
[data-theme="light"] .text-muted {
    color: #6c757d !important;
}

[data-theme="light"] .text-light {
    color: #212529 !important;
}

/* Email Editor Light Theme */
[data-theme="light"] .email-editor-container {
    background-color: #f8f9fa;
}

[data-theme="light"] .email-editor-header {
    background-color: #ffffff;
    border-bottom-color: #dee2e6;
}

[data-theme="light"] .email-editor-toolbar {
    background-color: #ffffff;
    border-bottom-color: #dee2e6;
}

[data-theme="light"] .email-canvas {
    background-color: #ffffff;
}

/* Billing Dashboard Light Theme */
[data-theme="light"] .billing-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #dee2e6;
}

[data-theme="light"] .billing-card::before {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--bs-border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.theme-toggle:hover {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    text-decoration: none;
}

.theme-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    outline: none;
}

.theme-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

/* Make the button look more like a nav link */
.navbar .theme-toggle.nav-link {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    color: var(--bs-navbar-color);
    border-radius: 0.375rem;
}

.navbar .theme-toggle.nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Quill Editor Light Theme */
[data-theme="light"] .ql-toolbar {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .ql-container {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .ql-editor {
    color: #212529;
}

/* CTA Button Styles for Light Theme */
[data-theme="light"] .btn-cta-green,
[data-theme="light"] .btn-sm-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

[data-theme="light"] .btn-cta-green:hover,
[data-theme="light"] .btn-sm-green:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .btn-cta-orange,
[data-theme="light"] .btn-sm-orange {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

[data-theme="light"] .btn-cta-orange:hover,
[data-theme="light"] .btn-sm-orange:hover {
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

/* Dashboard Statistics for Light Theme */
[data-theme="light"] .dashboard-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .stat-number {
    color: #212529 !important;
    font-weight: 700;
}

[data-theme="light"] .stat-label {
    color: #6c757d !important;
}

/* Enhanced Dashboard Statistics Cards with Superior Visual Definition */
[data-theme="light"] .row .col-md-3 .card,
[data-theme="light"] .row .col-lg-3 .card,
[data-theme="light"] .dashboard-stats .card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid var(--light-border) !important;
    box-shadow: 0 12px 40px rgba(74, 85, 104, 0.15), 0 6px 25px rgba(74, 85, 104, 0.08) !important;
    color: var(--light-text-primary) !important;
    border-radius: 20px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Dashboard Card Hover Effects */
[data-theme="light"] .row .col-md-3 .card:hover,
[data-theme="light"] .row .col-lg-3 .card:hover,
[data-theme="light"] .dashboard-stats .card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 60px rgba(74, 85, 104, 0.25), 0 10px 35px rgba(74, 85, 104, 0.12) !important;
    border-color: #a0aec0 !important;
}

/* Add Subtle Background Pattern to Dashboard Cards */
[data-theme="light"] .dashboard-stats .card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(111, 66, 193, 0.02) 100%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

[data-theme="light"] .dashboard-stats .card-body {
    position: relative !important;
    z-index: 1 !important;
}

[data-theme="light"] .card-body h2,
[data-theme="light"] .card-body .display-4,
[data-theme="light"] .card-body .h2 {
    color: #212529 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .card-body .text-muted,
[data-theme="light"] .card-body small {
    color: #6c757d !important;
}

[data-theme="light"] .card .badge {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Icons in cards - Enhanced visibility */
[data-theme="light"] .card .fa,
[data-theme="light"] .card i {
    color: #495057 !important;
    opacity: 1 !important;
}

/* Card icon backgrounds and containers */
[data-theme="light"] .card .icon-container,
[data-theme="light"] .card .stat-icon,
[data-theme="light"] .card .card-icon {
    background-color: #f8f9fa !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* SVG icons and images within cards */
[data-theme="light"] .card svg,
[data-theme="light"] .card img {
    opacity: 1 !important;
    filter: none !important;
}

/* Specific dashboard stat card icons */
[data-theme="light"] .card .text-primary svg,
[data-theme="light"] .card .text-success svg,
[data-theme="light"] .card .text-warning svg,
[data-theme="light"] .card .text-info svg,
[data-theme="light"] .card .text-danger svg {
    color: inherit !important;
    opacity: 1 !important;
}

/* Dashboard statistics icons with colored backgrounds */
[data-theme="light"] .dashboard-stat-icon,
[data-theme="light"] .stat-badge {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #495057 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure icon colors are visible */
[data-theme="light"] .text-primary {
    color: #0d6efd !important;
}

[data-theme="light"] .text-success {
    color: #198754 !important;
}

[data-theme="light"] .text-warning {
    color: #ffc107 !important;
}

[data-theme="light"] .text-info {
    color: #0dcaf0 !important;
}

[data-theme="light"] .text-danger {
    color: #dc3545 !important;
}

/* Dashboard specific icon styling */
[data-theme="light"] .card .float-end,
[data-theme="light"] .card .ms-auto {
    opacity: 1 !important;
}

[data-theme="light"] .card .float-end svg,
[data-theme="light"] .card .ms-auto svg,
[data-theme="light"] .card .float-end i,
[data-theme="light"] .card .ms-auto i {
    color: #495057 !important;
    background-color: rgba(248, 249, 250, 0.8) !important;
    padding: 8px !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

/* Force visibility for all dashboard icons */
[data-theme="light"] .dashboard .card svg,
[data-theme="light"] .dashboard .card i,
[data-theme="light"] .row .col-md-3 svg,
[data-theme="light"] .row .col-md-3 i,
[data-theme="light"] .row .col-lg-3 svg,
[data-theme="light"] .row .col-lg-3 i {
    opacity: 1 !important;
    visibility: visible !important;
    color: #495057 !important;
    background-color: rgba(248, 249, 250, 0.9) !important;
    padding: 6px !important;
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
}

/* Specific icon containers in stats cards */
[data-theme="light"] .card .p-3 svg,
[data-theme="light"] .card .p-4 svg {
    width: 32px !important;
    height: 32px !important;
    color: #495057 !important;
    background-color: #f8f9fa !important;
    padding: 4px !important;
    border-radius: 8px !important;
    border: 2px solid #dee2e6 !important;
}

/* Global override for all icons in light theme */
[data-theme="light"] .fa-solid,
[data-theme="light"] .fa-regular,
[data-theme="light"] .fa-light,
[data-theme="light"] .fas,
[data-theme="light"] .far,
[data-theme="light"] .fab {
    color: #495057 !important;
    opacity: 1 !important;
}

/* Ensure all SVG elements are visible */
[data-theme="light"] svg {
    opacity: 1 !important;
    fill: currentColor !important;
    color: #495057 !important;
}

/* Dashboard card icon wrappers */
[data-theme="light"] .card-body > div:last-child svg,
[data-theme="light"] .card-body > span:last-child svg,
[data-theme="light"] .d-flex.justify-content-between svg {
    opacity: 1 !important;
    color: #495057 !important;
    background-color: rgba(173, 181, 189, 0.1) !important;
    padding: 8px !important;
    border-radius: 10px !important;
    width: 40px !important;
    height: 40px !important;
}

/* Colorful Icon Backgrounds for Light Theme - Match Dark Mode Vibrancy */
[data-theme="light"] .text-primary,
[data-theme="light"] .badge.bg-primary,
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

[data-theme="light"] .text-success,
[data-theme="light"] .badge.bg-success,
[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, #06d6a0 0%, #118d57 100%) !important;
    color: #ffffff !important;
    border-color: #06d6a0 !important;
}

[data-theme="light"] .text-warning,
[data-theme="light"] .badge.bg-warning,
[data-theme="light"] .btn-warning {
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%) !important;
    color: #ffffff !important;
    border-color: #f9ca24 !important;
}

[data-theme="light"] .text-info,
[data-theme="light"] .badge.bg-info,
[data-theme="light"] .btn-info {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%) !important;
    color: #ffffff !important;
    border-color: #3742fa !important;
}

[data-theme="light"] .text-danger,
[data-theme="light"] .badge.bg-danger,
[data-theme="light"] .btn-danger {
    background: linear-gradient(135deg, #ff3838 0%, #ff9ff3 100%) !important;
    color: #ffffff !important;
    border-color: #ff3838 !important;
}

/* Colorful Dashboard Statistics Icons */
[data-theme="light"] .card .text-primary svg,
[data-theme="light"] .card .bg-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

[data-theme="light"] .card .text-success svg,
[data-theme="light"] .card .bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] .card .text-info svg,
[data-theme="light"] .card .bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
}

[data-theme="light"] .card .text-warning svg,
[data-theme="light"] .card .bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .card .text-danger svg,
[data-theme="light"] .card .bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

/* Action Button Cards with Vibrant Colors */
[data-theme="light"] .card .btn-outline-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .card .btn-outline-secondary {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3) !important;
}

/* Feature Cards with Colorful Icons */
[data-theme="light"] .feature-card .card-body svg,
[data-theme="light"] .action-card .card-body svg {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%) !important;
    color: #ffffff !important;
    padding: 16px !important;
    border-radius: 16px !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 1rem !important;
    display: block !important;
    box-shadow: 0 8px 25px rgba(162, 155, 254, 0.3) !important;
}

/* Large Action Cards - Brand Dashboard Style */
[data-theme="light"] .row .col-md-6 .card svg,
[data-theme="light"] .row .col-lg-6 .card svg,
[data-theme="light"] .action-grid .card svg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 20px !important;
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem !important;
    display: block !important;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4) !important;
}

/* Different colored icons for different action types */
[data-theme="light"] .card:nth-child(1) svg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; /* Email Lists - Purple */
}

[data-theme="light"] .card:nth-child(2) svg {
    background: linear-gradient(135deg, #06d6a0 0%, #118d57 100%) !important; /* Campaigns - Green */
}

[data-theme="light"] .card:nth-child(3) svg {
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%) !important; /* Autoresponders - Orange */
}

[data-theme="light"] .card:nth-child(4) svg {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%) !important; /* AI Generator - Blue */
}

/* Brand Dashboard Specific Large Cards */
[data-theme="light"] .brand-dashboard .row .col-md-6 .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid transparent !important;
    background-clip: padding-box !important;
    position: relative !important;
}

[data-theme="light"] .brand-dashboard .row .col-md-6 .card::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #06d6a0 100%) !important;
    border-radius: 15px !important;
    z-index: -1 !important;
}

/* Ensure all center-aligned content in action cards */
[data-theme="light"] .brand-dashboard .card-body {
    text-align: center !important;
    padding: 2rem !important;
}

[data-theme="light"] .brand-dashboard .card-title {
    color: #212529 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

[data-theme="light"] .brand-dashboard .card-text {
    color: #6c757d !important;
    font-size: 0.95rem !important;
}

/* Enhanced Brand Card Styling for Light Mode */
[data-theme="light"] .brand-card,
[data-theme="light"] .card.clickable,
[data-theme="light"] .brand-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #ced4da !important;
    color: #212529 !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

[data-theme="light"] .brand-card:hover,
[data-theme="light"] .card.clickable:hover,
[data-theme="light"] .brand-item:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.25) !important;
    transform: translateY(-3px) !important;
}

/* Brand Grid Cards - Specific to Brands Page */
[data-theme="light"] .brands-grid .card,
[data-theme="light"] .row .col-md-4 .card,
[data-theme="light"] .row .col-lg-4 .card,
[data-theme="light"] .row .col-md-6 .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #dee2e6 !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 300px !important;
}

[data-theme="light"] .brands-grid .card:hover,
[data-theme="light"] .row .col-md-4 .card:hover,
[data-theme="light"] .row .col-lg-4 .card:hover,
[data-theme="light"] .row .col-md-6 .card:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-4px) !important;
}

/* Brand Card Headers */
[data-theme="light"] .brand-card .card-header,
[data-theme="light"] .brands-grid .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #dee2e6 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem !important;
}

/* Brand Card Bodies */
[data-theme="light"] .brand-card .card-body,
[data-theme="light"] .brands-grid .card-body {
    padding: 1.5rem !important;
    background-color: #ffffff !important;
}

/* Brand Statistics in Cards */
[data-theme="light"] .brand-card .text-center h2,
[data-theme="light"] .brand-card .text-center .h2,
[data-theme="light"] .brands-grid .text-center h2,
[data-theme="light"] .brands-grid .text-center .h2 {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
}

[data-theme="light"] .brand-card .text-muted,
[data-theme="light"] .brands-grid .text-muted {
    color: #6c757d !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* Brand Action Buttons */
[data-theme="light"] .brand-card .btn,
[data-theme="light"] .brands-grid .btn {
    font-weight: 600 !important;
    border-width: 2px !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .brand-card .btn:hover,
[data-theme="light"] .brands-grid .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Three-dot Menu Enhancement */
[data-theme="light"] .dropdown-toggle::after {
    border-top-color: #495057 !important;
    border-bottom-color: #495057 !important;
}

[data-theme="light"] .btn-outline-secondary.dropdown-toggle {
    color: #495057 !important;
    border-color: #ced4da !important;
    background-color: #ffffff !important;
    border-width: 2px !important;
}

[data-theme="light"] .btn-outline-secondary.dropdown-toggle:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

/* Brand Email Display */
[data-theme="light"] .brand-card .text-muted a,
[data-theme="light"] .brands-grid .text-muted a {
    color: #0d6efd !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

[data-theme="light"] .brand-card .text-muted a:hover,
[data-theme="light"] .brands-grid .text-muted a:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

/* Brand Descriptions */
[data-theme="light"] .brand-card p:not(.text-muted),
[data-theme="light"] .brands-grid p:not(.text-muted) {
    color: #495057 !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Brand Card Titles */
[data-theme="light"] .brand-card .card-title,
[data-theme="light"] .brands-grid .card-title {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}

/* Statistics Row in Brand Cards */
[data-theme="light"] .brand-card .row.text-center,
[data-theme="light"] .brands-grid .row.text-center {
    margin: 1rem 0 !important;
    padding: 1rem 0 !important;
    border-top: 2px solid #f1f3f4 !important;
    border-bottom: 2px solid #f1f3f4 !important;
    background-color: rgba(248, 249, 250, 0.5) !important;
    border-radius: 8px !important;
}

/* Brand Card Footers */
[data-theme="light"] .brand-card .card-footer,
[data-theme="light"] .brands-grid .card-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-top: 2px solid #dee2e6 !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0 0 12px 12px !important;
}

/* Enhanced Column Layout for Brands Grid */
[data-theme="light"] .brands-grid,
[data-theme="light"] .row.g-4 {
    margin: 0 -0.75rem !important;
}

[data-theme="light"] .brands-grid .col-lg-4,
[data-theme="light"] .brands-grid .col-md-6,
[data-theme="light"] .row.g-4 .col-lg-4,
[data-theme="light"] .row.g-4 .col-md-6 {
    padding: 0 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* Brand Statistics Numbers Enhancement */
[data-theme="light"] .brand-card .fw-bold,
[data-theme="light"] .brands-grid .fw-bold {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
}

/* Brand Statistics Labels */
[data-theme="light"] .brand-card .text-center small,
[data-theme="light"] .brands-grid .text-center small {
    color: #6c757d !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Email Display in Brand Cards */
[data-theme="light"] .brand-card .mb-3 small,
[data-theme="light"] .brands-grid .mb-3 small {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    display: inline-block !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

/* No Brands State Enhancement */
[data-theme="light"] .text-center.py-5 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px dashed #ced4da !important;
    border-radius: 15px !important;
    padding: 3rem 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .text-center.py-5 .fa-4x {
    color: #adb5bd !important;
    margin-bottom: 2rem !important;
}

[data-theme="light"] .text-center.py-5 h3 {
    color: #495057 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .text-center.py-5 p {
    color: #6c757d !important;
    font-weight: 500 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* Dropdown Menu Enhancement */
[data-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
}

[data-theme="light"] .dropdown-item {
    color: #495057 !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    transform: translateX(2px) !important;
}

[data-theme="light"] .dropdown-item.text-danger {
    color: #dc3545 !important;
}

[data-theme="light"] .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

[data-theme="light"] .dropdown-divider {
    border-color: #e9ecef !important;
    margin: 0.5rem 1rem !important;
}

/* Page Header Enhancement */
[data-theme="light"] .display-6 {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .display-6 .text-primary {
    color: #0d6efd !important;
    filter: drop-shadow(0 2px 4px rgba(13, 110, 253, 0.3)) !important;
}

/* Enhanced Admin and Authentication Pages */
[data-theme="light"] .admin-login-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .super-admin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e9ecef !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    max-width: 500px !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Admin Card Headers */
[data-theme="light"] .admin-login-card .card-header,
[data-theme="light"] .auth-card .card-header,
[data-theme="light"] .super-admin-card .card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1.5rem 2rem !important;
    border-radius: 17px 17px 0 0 !important;
    text-align: center !important;
}

[data-theme="light"] .admin-login-card .card-header h4,
[data-theme="light"] .auth-card .card-header h4,
[data-theme="light"] .super-admin-card .card-header h4,
[data-theme="light"] .admin-login-card .card-header h5,
[data-theme="light"] .auth-card .card-header h5,
[data-theme="light"] .super-admin-card .card-header h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Admin Card Bodies */
[data-theme="light"] .admin-login-card .card-body,
[data-theme="light"] .auth-card .card-body,
[data-theme="light"] .super-admin-card .card-body {
    padding: 2rem !important;
    background-color: #ffffff !important;
}

/* Warning/Alert Boxes in Admin Pages */
[data-theme="light"] .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 12px !important;
    color: #856404 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
    padding: 1rem 1.5rem !important;
}

[data-theme="light"] .alert-warning .fas,
[data-theme="light"] .alert-warning .fa {
    color: #f0ad4e !important;
    margin-right: 0.5rem !important;
}

[data-theme="light"] .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    border: 2px solid #dc3545 !important;
    border-radius: 12px !important;
    color: #721c24 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2) !important;
    padding: 1rem 1.5rem !important;
}

[data-theme="light"] .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 2px solid #28a745 !important;
    border-radius: 12px !important;
    color: #155724 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2) !important;
    padding: 1rem 1.5rem !important;
}

[data-theme="light"] .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    border: 2px solid #17a2b8 !important;
    border-radius: 12px !important;
    color: #0c5460 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2) !important;
    padding: 1rem 1.5rem !important;
}

/* Admin Form Enhancements */
[data-theme="light"] .admin-form .form-group,
[data-theme="light"] .auth-form .form-group {
    margin-bottom: 1.5rem !important;
}

[data-theme="light"] .admin-form .form-control,
[data-theme="light"] .auth-form .form-control {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .admin-form .form-control:focus,
[data-theme="light"] .auth-form .form-control:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 4px 15px rgba(13, 110, 253, 0.15) !important;
}

/* Admin Labels */
[data-theme="light"] .admin-form .form-label,
[data-theme="light"] .auth-form .form-label,
[data-theme="light"] .admin-form label,
[data-theme="light"] .auth-form label {
    color: #495057 !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem !important;
}

/* Admin Action Buttons */
[data-theme="light"] .admin-form .btn,
[data-theme="light"] .auth-form .btn {
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-width: 2px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

/* Super Admin Panel Specific Styling */
[data-theme="light"] .super-admin-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e9ecef !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
}

[data-theme="light"] .super-admin-stats .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .super-admin-stats .card:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Login/Auth Page Centered Layout */
[data-theme="light"] .auth-container,
[data-theme="light"] .admin-container {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 2rem !important;
}

/* Input Group Enhancements for Admin Forms */
[data-theme="light"] .admin-form .input-group-text,
[data-theme="light"] .auth-form .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #e9ecef !important;
    color: #495057 !important;
    font-weight: 600 !important;
    border-radius: 12px 0 0 12px !important;
    padding: 1rem 1.25rem !important;
}

/* Back to Platform Button */
[data-theme="light"] .btn-info,
[data-theme="light"] .btn-outline-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    border-color: #17a2b8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-info:hover,
[data-theme="light"] .btn-outline-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    border-color: #138496 !important;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Enhanced Footer for Light Mode */
[data-theme="light"] footer,
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%) !important;
    color: #ffffff !important;
    border-top: 3px solid #6c757d !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] footer p,
[data-theme="light"] .footer p {
    color: #ffffff !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Enhanced Centered Login/Admin Layouts */
[data-theme="light"] .login-container,
[data-theme="light"] .admin-access-container {
    min-height: 100vh !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem !important;
}

[data-theme="light"] .login-card,
[data-theme="light"] .admin-access-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e9ecef !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    max-width: 450px !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Center Page Content */
[data-theme="light"] .container-center,
[data-theme="light"] .page-center {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

/* Enhanced Typography for Light Mode */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
    color: #212529 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .lead {
    color: #495057 !important;
    font-weight: 500 !important;
}

[data-theme="light"] .text-muted {
    color: #6c757d !important;
}

[data-theme="light"] .small,
[data-theme="light"] small {
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Enhanced List Groups */
[data-theme="light"] .list-group {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .list-group-item {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef !important;
    color: #212529 !important;
    padding: 1rem 1.25rem !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .list-group-item:hover {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

[data-theme="light"] .list-group-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Enhanced Pagination */
[data-theme="light"] .pagination {
    gap: 0.25rem !important;
}

[data-theme="light"] .page-link {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #495057 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .page-link:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

[data-theme="light"] .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Enhanced Tooltips */
[data-theme="light"] .tooltip .tooltip-inner {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.75rem !important;
}

/* Enhanced Popovers */
[data-theme="light"] .popover {
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .popover-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .popover-body {
    color: #495057 !important;
    padding: 1rem !important;
}

/* Enhanced Code Blocks */
[data-theme="light"] code {
    background-color: #f8f9fa !important;
    color: #e83e8c !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 500 !important;
}

[data-theme="light"] pre {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    color: #495057 !important;
    padding: 1rem !important;
}

/* Enhanced Blockquotes */
[data-theme="light"] blockquote {
    border-left: 4px solid #0d6efd !important;
    background-color: #f8f9fa !important;
    padding: 1rem 1.5rem !important;
    margin: 1rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: #495057 !important;
    font-style: italic !important;
}

/* Enhanced Button Visibility for Light Mode */
[data-theme="light"] .btn {
    font-weight: 600 !important;
    border-width: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Primary Buttons - Enhanced Visibility */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    border-color: #0a58ca !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
}

/* Outline Buttons - Better Contrast */
[data-theme="light"] .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
    border-width: 2px !important;
    background-color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

[data-theme="light"] .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    border-width: 2px !important;
    background-color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

/* Custom CTA Buttons - Enhanced */
[data-theme="light"] .btn-cta-orange,
[data-theme="light"] .btn-orange {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    border: 2px solid #ff6b35 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

[data-theme="light"] .btn-cta-orange:hover,
[data-theme="light"] .btn-orange:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #cc4d21 100%) !important;
    border-color: #e55a2b !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    transform: translateY(-2px) !important;
}

[data-theme="light"] .btn-cta-green,
[data-theme="light"] .btn-green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: 2px solid #28a745 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

[data-theme="light"] .btn-cta-green:hover,
[data-theme="light"] .btn-green:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important;
    border-color: #20c997 !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Purple/Magic Buttons */
[data-theme="light"] .btn-outline-purple,
[data-theme="light"] .btn-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
    border: 2px solid #6f42c1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3) !important;
}

[data-theme="light"] .btn-outline-purple:hover,
[data-theme="light"] .btn-purple:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4c2a85 100%) !important;
    border-color: #5a32a3 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Small Buttons */
[data-theme="light"] .btn-sm {
    font-weight: 600 !important;
    border-width: 2px !important;
    padding: 0.375rem 0.75rem !important;
}

/* Button Groups */
[data-theme="light"] .btn-group .btn {
    border-width: 2px !important;
    margin-right: 2px !important;
}

[data-theme="light"] .btn-group .btn:not(:last-child) {
    border-right-width: 1px !important;
}

/* Enhanced Email List Cards */
[data-theme="light"] .email-list-card,
[data-theme="light"] .list-card {
    background: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

[data-theme="light"] .email-list-card:hover,
[data-theme="light"] .list-card:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Progress Bars Enhanced */
[data-theme="light"] .progress {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    height: 12px !important;
}

[data-theme="light"] .progress-bar {
    border-radius: 7px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .progress-bar.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

[data-theme="light"] .progress-bar.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

[data-theme="light"] .progress-bar.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

/* Enhanced Search and Filter Components */
[data-theme="light"] .search-container,
[data-theme="light"] .filter-container {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Quick Prompt Buttons Enhancement */
[data-theme="light"] .quick-prompt,
[data-theme="light"] .btn.quick-prompt {
    background-color: #ffffff !important;
    border: 2px solid #ced4da !important;
    color: #495057 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .quick-prompt:hover,
[data-theme="light"] .btn.quick-prompt:hover {
    background-color: #f8f9fa !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* AI Generator Components */
[data-theme="light"] .ai-generator-panel,
[data-theme="light"] .generator-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e9ecef !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
}

[data-theme="light"] .generated-content,
[data-theme="light"] .ai-preview {
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Storage Usage Components */
[data-theme="light"] .storage-usage {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #ced4da !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

/* Enhanced Modal Components */
[data-theme="light"] .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #dee2e6 !important;
    border-radius: 12px 12px 0 0 !important;
}

[data-theme="light"] .modal-title {
    color: #212529 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .modal-body {
    padding: 2rem !important;
}

[data-theme="light"] .modal-footer {
    background-color: #f8f9fa !important;
    border-top: 2px solid #dee2e6 !important;
    border-radius: 0 0 12px 12px !important;
    padding: 1.5rem 2rem !important;
}-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Remove pulsing effect from email list cards */
[data-theme="light"] .email-list-card::before,
[data-theme="light"] .list-card::before {
    display: none !important;
}

/* Prominent "Manage Subscribers" Button - More Specific Targeting */
[data-theme="light"] .card .btn-primary[href*="subscribers"],
[data-theme="light"] .card a.btn-primary[href*="subscribers"],
[data-theme="light"] .d-grid .btn-primary[href*="subscribers"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

[data-theme="light"] .card .btn-primary[href*="subscribers"]:hover,
[data-theme="light"] .card a.btn-primary[href*="subscribers"]:hover,
[data-theme="light"] .d-grid .btn-primary[href*="subscribers"]:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.45) !important;
}

/* Subtle styling for other buttons in email list cards */
[data-theme="light"] .email-list-card .btn:not([href*="subscribers"]),
[data-theme="light"] .list-card .btn:not([href*="subscribers"]) {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .email-list-card .btn:not([href*="subscribers"]):hover,
[data-theme="light"] .list-card .btn:not([href*="subscribers"]):hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Email list card statistics bars - tone down colors */
[data-theme="light"] .email-list-card .progress-bar,
[data-theme="light"] .list-card .progress-bar {
    background: #6c757d !important;
    opacity: 0.8 !important;
}

[data-theme="light"] .email-list-card .bg-success,
[data-theme="light"] .list-card .bg-success {
    background: #28a745 !important;
    opacity: 0.9 !important;
}

/* Fix Dropdown Menu Positioning and Visibility */
[data-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    z-index: 1050 !important;
    position: absolute !important;
    transform: none !important;
    inset: auto !important;
}

[data-theme="light"] .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    transform: none !important;
}

[data-theme="light"] .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

[data-theme="light"] .dropdown-item {
    color: #495057 !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    margin: 2px 8px !important;
    transition: all 0.2s ease !important;
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    transform: none !important;
}

[data-theme="light"] .dropdown-item.text-danger {
    color: #dc3545 !important;
}

[data-theme="light"] .dropdown-item.text-danger:hover {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

[data-theme="light"] .dropdown-divider {
    border-top: 1px solid #dee2e6 !important;
    margin: 8px 0 !important;
}

/* Ensure dropdown button is visible */
[data-theme="light"] .dropdown .btn-outline-secondary {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
}

[data-theme="light"] .dropdown .btn-outline-secondary:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

/* Dark theme dropdown fixes */
[data-theme="dark"] .dropdown-menu {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    z-index: 1050 !important;
    position: absolute !important;
    transform: none !important;
    inset: auto !important;
}

[data-theme="dark"] .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    transform: none !important;
}

[data-theme="dark"] .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

[data-theme="dark"] .dropdown-item {
    color: #e9ecef !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    margin: 2px 8px !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: none !important;
}

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

[data-theme="dark"] .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #f5c2c7 !important;
}

[data-theme="light"] .brand-card:hover,
[data-theme="light"] .card.clickable:hover,
[data-theme="light"] .brand-item:hover {
    transform: translateY(-8px) !important;
    border-color: #0a58ca !important;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.35) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Prominent Arrow/CTA Button for Brand Cards */
[data-theme="light"] .brand-card .btn,
[data-theme="light"] .brand-card .arrow-btn,
[data-theme="light"] .card.clickable .btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

[data-theme="light"] .brand-card .btn:hover,
[data-theme="light"] .brand-card .arrow-btn:hover,
[data-theme="light"] .card.clickable .btn:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4) !important;
}

/* Pulsing effect for brand cards to draw attention */
[data-theme="light"] .brand-card::before,
[data-theme="light"] .card.clickable::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #0d6efd, #6610f2, #0d6efd) !important;
    border-radius: 14px !important;
    z-index: -1 !important;
    animation: glow 2s ease-in-out infinite alternate !important;
}

@keyframes glow {
    from { opacity: 0.6; transform: scale(1); }
    to { opacity: 1; transform: scale(1.02); }
}

/* Brand card content emphasis */
[data-theme="light"] .brand-card h5,
[data-theme="light"] .card.clickable h5 {
    color: #0d6efd !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

[data-theme="light"] .brand-card small,
[data-theme="light"] .card.clickable small {
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Dark Theme Brand Card Enhancement for Consistency */
[data-theme="dark"] .brand-card,
[data-theme="dark"] .card.clickable,
[data-theme="dark"] .brand-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 3px solid #0d6efd !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

[data-theme="dark"] .brand-card:hover,
[data-theme="dark"] .card.clickable:hover,
[data-theme="dark"] .brand-item:hover {
    transform: translateY(-8px) !important;
    border-color: #4dabf7 !important;
    box-shadow: 0 15px 40px rgba(77, 171, 247, 0.4) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .brand-card::before,
[data-theme="dark"] .card.clickable::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #0d6efd, #6610f2, #0d6efd) !important;
    border-radius: 14px !important;
    z-index: -1 !important;
    animation: glow 2s ease-in-out infinite alternate !important;
}

[data-theme="dark"] .brand-card h5,
[data-theme="dark"] .card.clickable h5 {
    color: #4dabf7 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

/* Brand cards */
[data-theme="light"] .brand-card {
    background: #ffffff !important;
    border: 3px solid #adb5bd !important;
    color: #212529 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .brand-card h5,
[data-theme="light"] .brand-card .card-title {
    color: #212529 !important;
}

[data-theme="light"] .brand-card .text-muted {
    color: #6c757d !important;
}

/* Recent campaigns section */
[data-theme="light"] .recent-campaigns .card {
    background: #ffffff !important;
    border: 3px solid #adb5bd !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .recent-campaigns h5 {
    color: #212529 !important;
}

/* Comprehensive Card Styling for All App Pages */
[data-theme="light"] .billing-card,
[data-theme="light"] .plan-card,
[data-theme="light"] .usage-card,
[data-theme="light"] .invoice-card,
[data-theme="light"] .payment-method-card,
[data-theme="light"] .subscription-card,
[data-theme="light"] .email-list-card,
[data-theme="light"] .campaign-card,
[data-theme="light"] .autoresponder-card,
[data-theme="light"] .subscriber-card,
[data-theme="light"] .analytics-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .admin-card {
    background: #ffffff !important;
    border: 3px solid #adb5bd !important;
    color: #212529 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* All card headers */
[data-theme="light"] .card-header,
[data-theme="light"] .billing-card .card-header,
[data-theme="light"] .plan-card .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-weight: 600 !important;
}

/* All card titles and text elements */
[data-theme="light"] .card-title,
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6 {
    color: #212529 !important;
    font-weight: 600 !important;
}

/* All card text and labels */
[data-theme="light"] .card-text,
[data-theme="light"] .card p,
[data-theme="light"] .card span,
[data-theme="light"] .card label {
    color: #495057 !important;
}

/* Progress bars in cards */
[data-theme="light"] .card .progress {
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .card .progress-bar {
    background-color: #0d6efd !important;
}

/* All table styling within cards */
[data-theme="light"] .card .table {
    color: #212529 !important;
    background-color: #ffffff !important;
}

[data-theme="light"] .card .table th {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-bottom: 2px solid #dee2e6 !important;
}

[data-theme="light"] .card .table td {
    border-top: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .card .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa !important;
}

/* Lists within cards */
[data-theme="light"] .card .list-group-item {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .card .list-group-item:hover {
    background-color: #f8f9fa !important;
}

/* Form elements within cards */
[data-theme="light"] .card .form-control,
[data-theme="light"] .card .form-select {
    background-color: #ffffff !important;
    border: 2px solid #ced4da !important;
    color: #212529 !important;
}

[data-theme="light"] .card .form-control:focus,
[data-theme="light"] .card .form-select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Badges within cards */
[data-theme="light"] .card .badge {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="light"] .card .badge.bg-success {
    background-color: #198754 !important;
}

[data-theme="light"] .card .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

[data-theme="light"] .card .badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Alerts within cards */
[data-theme="light"] .card .alert {
    border: 2px solid !important;
}

[data-theme="light"] .card .alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

[data-theme="light"] .card .alert-success {
    background-color: #d1eddf !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

[data-theme="light"] .card .alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}

[data-theme="light"] .card .alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

/* Navigation pills/tabs within cards */
[data-theme="light"] .card .nav-pills .nav-link {
    color: #495057 !important;
}

[data-theme="light"] .card .nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Accordions within cards */
[data-theme="light"] .card .accordion-item {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}

[data-theme="light"] .card .accordion-header button {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

[data-theme="light"] .card .accordion-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Improve text readability for light theme */
[data-theme="light"] .text-muted {
    color: #495057 !important;
}

[data-theme="light"] .card-text {
    color: #495057;
}

/* Comprehensive Light Theme Coverage */
[data-theme="light"] .bg-dark {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .text-white {
    color: #212529 !important;
}

[data-theme="light"] .text-light {
    color: #495057 !important;
}

/* Main container and page backgrounds */
[data-theme="light"] main,
[data-theme="light"] .container,
[data-theme="light"] .container-fluid {
    background-color: transparent;
}

/* Remove duplicate - using the main card styling above with proper shadows */

/* Dashboard specific components */
[data-theme="light"] .dashboard-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .dashboard-stat-card .card-body {
    background: transparent !important;
    color: #212529 !important;
}

/* Dashboard stat icons for light theme */
[data-theme="light"] .stat-icon {
    color: #ffffff !important;
}

[data-theme="light"] .stat-icon.primary {
    background-color: #0d6efd !important;
}

[data-theme="light"] .stat-icon.success {
    background-color: #198754 !important;
}

[data-theme="light"] .stat-icon.info {
    background-color: #0dcaf0 !important;
}

[data-theme="light"] .stat-icon.warning {
    background-color: #ffc107 !important;
}

[data-theme="light"] .stat-icon.danger {
    background-color: #dc3545 !important;
}

/* Comprehensive table styling for light theme */
[data-theme="light"] .table {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .table th {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-bottom: 2px solid #dee2e6 !important;
}

[data-theme="light"] .table td {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-top: 1px solid #dee2e6 !important;
}

[data-theme="light"] .table-dark {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .table-dark th,
[data-theme="light"] .table-dark td {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .table-hover tbody tr:hover {
    background-color: #e9ecef !important;
}

/* Form controls for light theme */
[data-theme="light"] .form-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

[data-theme="light"] .form-control:focus {
    background-color: #ffffff !important;
    border-color: #86b7fe !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

[data-theme="light"] .form-select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

[data-theme="light"] .form-check-input {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

[data-theme="light"] .form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Input groups */
[data-theme="light"] .input-group-text {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

/* Badge overrides for light theme */
[data-theme="light"] .badge {
    color: #ffffff !important;
}

[data-theme="light"] .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

[data-theme="light"] .badge.text-bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Breadcrumb styling */
[data-theme="light"] .breadcrumb {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .breadcrumb-item a {
    color: #0d6efd !important;
}

[data-theme="light"] .breadcrumb-item.active {
    color: #6c757d !important;
}

/* Pagination */
[data-theme="light"] .page-link {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #0d6efd !important;
}

[data-theme="light"] .page-link:hover {
    background-color: #e9ecef !important;
    color: #0a58ca !important;
}

[data-theme="light"] .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="light"] .page-item.disabled .page-link {
    background-color: #ffffff !important;
    color: #6c757d !important;
}

/* List groups */
[data-theme="light"] .list-group-item {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .list-group-item:hover {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .list-group-item.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Progress bars */
[data-theme="light"] .progress {
    background-color: #e9ecef !important;
}

/* Tooltips and popovers */
[data-theme="light"] .tooltip-inner {
    background-color: #212529 !important;
    color: #ffffff !important;
}

[data-theme="light"] .popover {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .popover-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

[data-theme="light"] .popover-body {
    color: #212529 !important;
}

/* Accordion */
[data-theme="light"] .accordion-item {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .accordion-header button {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

[data-theme="light"] .accordion-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Alert overrides */
[data-theme="light"] .alert-dark {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

/* Offcanvas */
[data-theme="light"] .offcanvas {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .offcanvas-header {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Modal styling */
[data-theme="light"] .modal-content {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
}

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

[data-theme="light"] .modal-backdrop {
    background-color: #000000;
}

/* Dropdown styling */
[data-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

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

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

[data-theme="light"] .dropdown-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="light"] .dropdown-divider {
    border-top-color: #dee2e6 !important;
}

[data-theme="light"] .dropdown-header {
    color: #6c757d !important;
}

/* Navbar styling */
[data-theme="light"] .navbar-dark {
    background-color: #ffffff !important;
}

[data-theme="light"] .navbar-dark .navbar-brand {
    color: #212529 !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: #6c757d !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link:hover {
    color: #212529 !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link.active {
    color: #0d6efd !important;
}

[data-theme="light"] .navbar-dark .navbar-toggler {
    border-color: #dee2e6 !important;
}

/* Custom dark components that need light theme overrides */
[data-theme="light"] .bg-dark {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .text-light {
    color: #212529 !important;
}

[data-theme="light"] .border-dark {
    border-color: #dee2e6 !important;
}

/* Tabs styling */
[data-theme="light"] .nav-tabs {
    border-bottom: 1px solid #dee2e6 !important;
}

[data-theme="light"] .nav-tabs .nav-link {
    color: #6c757d !important;
    border: 1px solid transparent !important;
}

[data-theme="light"] .nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6 !important;
    isolation: isolate;
}

[data-theme="light"] .nav-tabs .nav-link.active {
    color: #0d6efd !important;
    background-color: #ffffff !important;
    border-color: #dee2e6 #dee2e6 #ffffff !important;
}

[data-theme="light"] .tab-content {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Code and pre elements */
[data-theme="light"] pre {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] code {
    background-color: #f8f9fa !important;
    color: #e83e8c !important;
}

/* Close button */
[data-theme="light"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(1.2);
}

/* Any remaining text utilities */
[data-theme="light"] .text-white {
    color: #212529 !important;
}

[data-theme="light"] .text-muted {
    color: #6c757d !important;
}

/* Ensure all text elements are visible */
[data-theme="light"] * {
    color: inherit;
}

/* Force all table content to be dark text on light background */
[data-theme="light"] .table * {
    color: #212529 !important;
}

[data-theme="light"] .table .text-muted {
    color: #6c757d !important;
}

[data-theme="light"] .table .text-white {
    color: #212529 !important;
}

/* Specific override for email sequence table */
[data-theme="light"] .card .table {
    background-color: #ffffff !important;
}

[data-theme="light"] .card .table th,
[data-theme="light"] .card .table td {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

[data-theme="light"] .card .table .text-muted {
    color: #6c757d !important;
}

[data-theme="light"] .card .table .fw-semibold {
    color: #212529 !important;
}

/* Lists and list groups */
[data-theme="light"] .list-group {
    background-color: #ffffff;
}

[data-theme="light"] .list-group-item {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

/* Offcanvas and sidebars */
[data-theme="light"] .offcanvas {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-theme="light"] .offcanvas-header {
    border-bottom-color: #dee2e6 !important;
}

/* Toast notifications */
[data-theme="light"] .toast {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

/* Tabs */
[data-theme="light"] .nav-tabs {
    border-bottom-color: #dee2e6;
}

[data-theme="light"] .nav-tabs .nav-link {
    color: #495057;
    background-color: transparent;
    border-color: transparent;
}

[data-theme="light"] .nav-tabs .nav-link.active {
    color: #212529;
    background-color: #ffffff;
    border-color: #dee2e6 #dee2e6 #ffffff;
}

/* Progress bars */
[data-theme="light"] .progress {
    background-color: #e9ecef;
}

/* Badges */
[data-theme="light"] .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Accordion */
[data-theme="light"] .accordion-item {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-theme="light"] .accordion-button {
    background-color: #ffffff;
    color: #212529;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

/* Page backgrounds - ensure complete coverage */
[data-theme="light"] html,
[data-theme="light"] body,
[data-theme="light"] #app,
[data-theme="light"] .main-content {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Override any remaining dark gradients or backgrounds */
[data-theme="light"] .bg-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

[data-theme="light"] .bg-primary {
    background-color: #0d6efd !important;
}

[data-theme="light"] .bg-secondary {
    background-color: #6c757d !important;
}

[data-theme="light"] .bg-success {
    background-color: #198754 !important;
}

[data-theme="light"] .bg-warning {
    background-color: #ffc107 !important;
}

[data-theme="light"] .bg-danger {
    background-color: #dc3545 !important;
}

[data-theme="light"] .bg-info {
    background-color: #0dcaf0 !important;
}

/* Ensure borders are visible in light mode */
[data-theme="light"] .border {
    border-color: #dee2e6 !important;
}

[data-theme="light"] .border-top {
    border-top-color: #dee2e6 !important;
}

[data-theme="light"] .border-bottom {
    border-bottom-color: #dee2e6 !important;
}

[data-theme="light"] .border-start {
    border-left-color: #dee2e6 !important;
}

[data-theme="light"] .border-end {
    border-right-color: #dee2e6 !important;
}

/* Fix any remaining dark text on light backgrounds */
[data-theme="light"] h1,
[data-theme="light"] h2, 
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] div {
    color: inherit;
}

/* Override any custom dark classes */
[data-theme="light"] .text-dark {
    color: #212529 !important;
}

/* Ensure proper shadow colors for light theme */
[data-theme="light"] .shadow,
[data-theme="light"] .shadow-sm,
[data-theme="light"] .shadow-lg {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ===== ENHANCED DEFINITION COMPONENTS FOR LIGHT MODE ===== */

/* Enhanced Alert Components for Better Definition */
[data-theme="light"] .alert {
    border: 3px solid !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    padding: 1.25rem 1.5rem !important;
}

[data-theme="light"] .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

[data-theme="light"] .alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

[data-theme="light"] .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

[data-theme="light"] .alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

/* Enhanced Modal Components */
[data-theme="light"] .modal-content {
    border: 3px solid var(--light-border-strong) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(74, 85, 104, 0.25), 0 15px 40px rgba(74, 85, 104, 0.15) !important;
    backdrop-filter: blur(20px) !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 3px solid var(--light-border) !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 17px 17px 0 0 !important;
    padding: 1.5rem 2rem !important;
}

[data-theme="light"] .modal-body {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 2rem !important;
}

[data-theme="light"] .modal-footer {
    border-top: 3px solid var(--light-border) !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 0 0 17px 17px !important;
    padding: 1.5rem 2rem !important;
}

/* Enhanced Utility Classes for Better Definition */
[data-theme="light"] .border-strong {
    border: 3px solid var(--light-border-strong) !important;
}

[data-theme="light"] .border-subtle {
    border: 2px solid var(--light-border) !important;
}

[data-theme="light"] .shadow-definition {
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.15), 0 4px 12px rgba(74, 85, 104, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .bg-subtle {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
}

[data-theme="light"] .bg-strong {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

/* Enhanced Dividers and Separators */
[data-theme="light"] hr {
    border-top: 2px solid var(--light-border) !important;
    opacity: 1 !important;
    margin: 1rem 0 !important;
}

[data-theme="light"] .separator {
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, var(--light-border-strong) 50%, transparent 100%) !important;
    border: none !important;
    margin: 1rem 0 !important;
}

/* Enhanced List Groups */
[data-theme="light"] .list-group-item {
    border: 2px solid var(--light-border) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--light-text-primary) !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.08) !important;
}

[data-theme="light"] .list-group-item:hover {
    border-color: var(--light-border-strong) !important;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.12) !important;
    transform: none !important;
}

[data-theme="light"] .list-group-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}