/* Light Theme Overrides */
: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;
    
    /* Background Colors */
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-border-color: #dee2e6;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    
    /* Card and Component Colors */
    --bs-tertiary-bg: #f8f9fa;
    --bs-secondary-bg: #e9ecef;
    --bs-emphasis-color: #000000;
    --bs-secondary-color: #6c757d;
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    
    /* Orange Button Colors for Light Theme */
    --orange-primary: #ff6b35;
    --orange-hover: #e55a2b;
    --orange-active: #cc4d21;
}

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

/* Navigation for Light Theme */
[data-theme="light"] .navbar-dark {
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
}

[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: #0d6efd !important;
}

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

[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.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards for Light Theme with Strong Visual Definition */
[data-theme="light"] .card {
    background-color: #ffffff !important;
    border: 3px solid #adb5bd !important;
    color: #212529 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    outline: none !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;
}

/* Enhanced shadows for light theme with more prominence */
[data-theme="light"] .shadow-sm {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .shadow {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18) !important;
}

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

/* Card hover effect for better interactivity */
[data-theme="light"] .card:hover {
    border-color: #c0c7d0 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

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

[data-theme="light"] .card-footer {
    background-color: #f8f9fa !important;
    border-top: 2px solid #e0e6ed !important;
    color: #6c757d !important;
    font-size: 0.875rem;
}

[data-theme="light"] .card-body {
    background-color: #ffffff !important;
    color: #212529 !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;
}

/* Forms for Light Theme */
[data-theme="light"] .form-control {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #212529;
}

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

[data-theme="light"] .form-select {
    background-color: #ffffff;
    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");
    border-color: #ced4da;
    color: #212529;
}

/* Tables for Light Theme */
[data-theme="light"] .table {
    color: #212529;
}

[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;
}

/* Alerts for Light Theme */
[data-theme="light"] .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

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

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

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

/* 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;
    border-color: #dee2e6;
}

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

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

[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;
}

/* Dashboard Statistics Cards - Fix visibility */
[data-theme="light"] .row .col-md-3 .card,
[data-theme="light"] .row .col-lg-3 .card,
[data-theme="light"] .dashboard-stats .card {
    background: #ffffff !important;
    border: 3px solid #adb5bd !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    color: #212529 !important;
    border-radius: 12px !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 Call-to-Action Styling */
[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 #0d6efd !important;
    color: #212529 !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;
}

/* Toned Down 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 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;
}