/* InboxIN Light Theme Options */

/* Global Dropdown Z-Index Fix for All Light Themes */
.navbar .dropdown-menu {
    z-index: 1030 !important;
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    min-width: 200px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.theme-selector .dropdown-menu {
    z-index: 1035 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
}

/* Theme 1: Clean White - Professional and Clean */
.theme-clean-white {
    /* Brand Colors */
    --primary-color: #2563eb;          /* Modern Blue */
    --primary-dark: #1d4ed8;           /* Darker Blue for hover */
    --primary-light: #3b82f6;          /* Lighter Blue for accents */
    --secondary-color: #6b7280;        /* Professional Gray */
    --accent-color: #10b981;           /* Success Green */
    --navy-blue: #003366;           /* Nordic Green for icons */
    --nordic-green-dark: #16a34a;      /* Darker Nordic Green */
    --warning-color: #f59e0b;          /* Warning Orange */
    --danger-color: #ef4444;           /* Error Red */
    
    /* Background Colors */
    --bg-primary: #ffffff;             /* Pure White Background */
    --bg-secondary: #f8fafc;           /* Very Light Gray */
    --bg-tertiary: #f1f5f9;            /* Card Background */
    --bg-hover: #e2e8f0;               /* Hover States */
    
    /* Text Colors */
    --text-primary: #1f2937;           /* Dark Gray Text */
    --text-secondary: #374151;         /* Medium Gray Text */
    --text-muted: #6b7280;             /* Muted Gray Text */
    
    /* Border Colors */
    --border-color: #e5e7eb;           /* Light Gray Border */
    --border-light: #f3f4f6;           /* Very Light Border */
}

/* Theme 2: Soft Blue - Calming and Professional */
.theme-soft-blue {
    /* Brand Colors */
    --primary-color: #1e40af;          /* Deep Blue */
    --primary-dark: #1e3a8a;           /* Darker Blue */
    --primary-light: #3b82f6;          /* Bright Blue */
    --secondary-color: #64748b;        /* Slate Gray */
    --accent-color: #059669;           /* Emerald Green */
    --nordic-green: #22c55e;           /* Nordic Green for icons */
    --nordic-green-dark: #16a34a;      /* Darker Nordic Green */
    --warning-color: #d97706;          /* Amber Orange */
    --danger-color: #dc2626;           /* Red */
    
    /* Background Colors */
    --bg-primary: #f8fafc;             /* Very Light Blue-Gray */
    --bg-secondary: #f1f5f9;           /* Light Blue-Gray */
    --bg-tertiary: #ffffff;            /* Pure White Cards */
    --bg-hover: #e2e8f0;               /* Light Hover */
    
    /* Text Colors */
    --text-primary: #0f172a;           /* Navy Text */
    --text-secondary: #334155;         /* Dark Slate */
    --text-muted: #64748b;             /* Muted Slate */
    
    /* Border Colors */
    --border-color: #cbd5e1;           /* Slate Border */
    --border-light: #e2e8f0;           /* Light Slate Border */
}

/* Theme 3: Warm Gray - Modern and Sophisticated */
.theme-warm-gray {
    /* Brand Colors */
    --primary-color: #7c2d12;          /* Warm Brown */
    --primary-dark: #6b2107;           /* Darker Brown */
    --primary-light: #9a3412;          /* Lighter Brown */
    --secondary-color: #78716c;        /* Warm Stone */
    --accent-color: #16a34a;           /* Green */
    --nordic-green: #22c55e;           /* Nordic Green for icons */
    --nordic-green-dark: #16a34a;      /* Darker Nordic Green */
    --warning-color: #ea580c;          /* Orange */
    --danger-color: #dc2626;           /* Red */
    
    /* Background Colors */
    --bg-primary: #fafaf9;             /* Warm White */
    --bg-secondary: #f5f5f4;           /* Light Stone */
    --bg-tertiary: #ffffff;            /* Pure White */
    --bg-hover: #e7e5e4;               /* Stone Hover */
    
    /* Text Colors */
    --text-primary: #1c1917;           /* Dark Stone */
    --text-secondary: #44403c;         /* Medium Stone */
    --text-muted: #78716c;             /* Muted Stone */
    
    /* Border Colors */
    --border-color: #d6d3d1;           /* Stone Border */
    --border-light: #e7e5e4;           /* Light Stone Border */
}

/* Theme 4: Fresh Green - Energetic and Modern */
.theme-fresh-green {
    /* Brand Colors */
    --primary-color: #166534;          /* Forest Green */
    --primary-dark: #14532d;           /* Dark Green */
    --primary-light: #16a34a;          /* Bright Green */
    --secondary-color: #6b7280;        /* Gray */
    --accent-color: #2563eb;           /* Blue Accent */
    --nordic-green: #22c55e;           /* Nordic Green for icons */
    --nordic-green-dark: #16a34a;      /* Darker Nordic Green */
    --warning-color: #d97706;          /* Amber */
    --danger-color: #dc2626;           /* Red */
    
    /* Background Colors */
    --bg-primary: #f7fdf7;             /* Very Light Green Tint */
    --bg-secondary: #f0fdf4;           /* Light Green Tint */
    --bg-tertiary: #ffffff;            /* Pure White */
    --bg-hover: #dcfce7;               /* Light Green Hover */
    
    /* Text Colors */
    --text-primary: #14532d;           /* Dark Green Text */
    --text-secondary: #374151;         /* Dark Gray */
    --text-muted: #6b7280;             /* Gray */
    
    /* Border Colors */
    --border-color: #d1fae5;           /* Light Green Border */
    --border-light: #ecfdf5;           /* Very Light Green Border */
}

/* Theme 5: Minimal Gray - Ultra Clean */
.theme-minimal-gray {
    /* Brand Colors */
    --primary-color: #374151;          /* Charcoal */
    --primary-dark: #1f2937;           /* Dark Charcoal */
    --primary-light: #4b5563;          /* Light Charcoal */
    --secondary-color: #9ca3af;        /* Light Gray */
    --accent-color: #06b6d4;           /* Cyan */
    --nordic-green: #22c55e;           /* Nordic Green for icons */
    --nordic-green-dark: #16a34a;      /* Darker Nordic Green */
    --warning-color: #f59e0b;          /* Amber */
    --danger-color: #ef4444;           /* Red */
    
    /* Background Colors */
    --bg-primary: #ffffff;             /* Pure White */
    --bg-secondary: #fafafa;           /* Off White */
    --bg-tertiary: #f5f5f5;            /* Light Gray */
    --bg-hover: #f0f0f0;               /* Hover Gray */
    
    /* Text Colors */
    --text-primary: #111827;           /* Near Black */
    --text-secondary: #374151;         /* Charcoal */
    --text-muted: #6b7280;             /* Gray */
    
    /* Border Colors */
    --border-color: #e5e5e5;           /* Light Border */
    --border-light: #f0f0f0;           /* Very Light Border */
}

/* Theme 6: Sky Blue - Bright and Airy */
.theme-sky-blue {
    /* Brand Colors */
    --primary-color: #0369a1;          /* Sky Blue */
    --primary-dark: #075985;           /* Dark Sky */
    --primary-light: #0ea5e9;          /* Bright Sky */
    --secondary-color: #64748b;        /* Slate */
    --accent-color: #003366;           /* Navy Blue */
    --nordic-green: #003366;           /* Navy Blue for icons */
    --nordic-green-dark: #002244;      /* Darker Navy Blue */
    --warning-color: #f59e0b;          /* Amber */
    --danger-color: #ef4444;           /* Red */
    
    /* Background Colors */
    --bg-primary: #f0f9ff;             /* Very Light Sky */
    --bg-secondary: #e0f2fe;           /* Light Sky */
    --bg-tertiary: #ffffff;            /* White */
    --bg-hover: #bae6fd;               /* Sky Hover */
    
    /* Text Colors */
    --text-primary: #0c4a6e;           /* Dark Sky Text */
    --text-secondary: #334155;         /* Slate */
    --text-muted: #64748b;             /* Muted Slate */
    
    /* Border Colors */
    --border-color: #bae6fd;           /* Sky Border */
    --border-light: #e0f2fe;           /* Light Sky Border */
}

/* Base theme application styles */
body.light-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: none;
}

/* Navigation styles for light themes */
.light-theme .navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

.light-theme .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-shadow: none;
}

.light-theme .nav-link {
    color: var(--text-secondary) !important;
}

.light-theme .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-hover);
    border-radius: var(--radius-sm);
}

/* Card styles for light themes */
.light-theme .card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.light-theme .card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-shadow: none !important;
}

.light-theme .card-header h5 {
    text-shadow: none !important;
}

/* Button styles for light themes */
.light-theme .btn-primary {
    background-color: var(--primary-color);
    border: 5px;
    border-color: var(--primary-color);
    color: white;
}

.light-theme .btn {
    border-color: #000;
    color: white;
}

.light-theme .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Light theme button link styling - white background with grey border */
.light-theme .btn-link {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.light-theme .btn-link:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

/* Simple "Add New Step" button styling for light theme - white with grey border */
.light-theme .btn-success {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    color: #ededed !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
}

.light-theme .btn-success:hover {
    background-color: #dce6ef !important;
    border-color: #9ca3af !important;
    color: #8eb1e1 !important;
}

/* Badge styling for light theme - force white text */
.light-theme .badge.bg-secondary {
    color: white !important;
    background-color: #6c757d !important;
}

.light-theme .badge.bg-secondary * {
    color: white !important;
}

/* Navigation tab badges specifically */
.light-theme .nav-tabs .badge.bg-secondary {
    color: white !important;
}

/* Fix White Text on White Background Issues */
.light-theme .text-white {
    color: var(--text-primary) !important;
}

.light-theme .bg-white {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.light-theme .bg-white .text-muted {
    color: var(--text-muted) !important;
}

.light-theme .bg-white .card-text {
    color: var(--text-secondary) !important;
}

.light-theme .bg-white .card-title {
    color: var(--text-primary) !important;
}

/* Comprehensive white text fixes */
.light-theme .text-white,
.light-theme .text-light,
.light-theme .bg-white *,
.light-theme .bg-light *,
.light-theme .card.bg-white *,
.light-theme .bg-white .btn,
.light-theme .bg-white .form-control,
.light-theme .bg-white .form-select,
.light-theme .bg-white input,
.light-theme .bg-white textarea,
.light-theme .bg-white select {
    color: var(--text-primary) !important;
}

/* Ensure contrast for specific text types */
.light-theme .bg-white .text-muted,
.light-theme .bg-light .text-muted {
    color: var(--text-muted) !important;
}

.light-theme .bg-white .text-secondary,
.light-theme .bg-light .text-secondary {
    color: var(--text-secondary) !important;
}

.light-theme .bg-white .small,
.light-theme .bg-white small,
.light-theme .bg-light .small,
.light-theme .bg-light small {
    color: var(--text-muted) !important;
}

/* Fix specific dashboard elements */
.light-theme .metric-label {
    color: var(--text-secondary) !important;
}

.light-theme .metric-number {
    color: var(--text-primary) !important;
}

.light-theme .card-icon {
    color: var(--nordic-green) !important;
}

/* Button text fixes */
.light-theme .btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.light-theme .btn-outline-secondary:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-hover) !important;
}

/* List and table fixes */
.light-theme .list-group-item {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary) !important;
}

.light-theme .table-light {
    color: var(--text-primary) !important;
    background-color: var(--bg-hover) !important;
}

/* Text contrast fixes */
.light-theme .text-light {
    color: var(--text-secondary) !important;
}

.light-theme .text-dark {
    color: var(--text-primary) !important;
}

/* Table text fixes */
.light-theme .table {
    color: var(--text-primary);
}

.light-theme .table th {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.light-theme .table td {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.light-theme .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-hover);
}

/* Form control text fixes */
.light-theme .form-control {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

.light-theme .form-control::placeholder {
    color: var(--text-muted) !important;
}

.light-theme .form-select {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

/* Alert text fixes */
.light-theme .alert {
    color: var(--text-primary) !important;
}

.light-theme .alert-success {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: var(--nordic-green) !important;
    color: var(--text-primary) !important;
}

.light-theme .alert-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: var(--warning-color) !important;
    color: var(--text-primary) !important;
}

.light-theme .alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--danger-color) !important;
    color: var(--text-primary) !important;
}

.light-theme .alert-info {
    background-color: rgba(37, 99, 235, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

/* Dropdown menu text fixes */
.light-theme .dropdown-menu {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

.light-theme .dropdown-item {
    color: var(--text-secondary) !important;
}

.light-theme .dropdown-item:hover,
.light-theme .dropdown-item:focus {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.light-theme .dropdown-header {
    color: var(--text-muted) !important;
}

/* Badge text fixes */
.light-theme .badge {
    color: white !important;
}

.light-theme .badge.bg-light {
    color: var(--text-primary) !important;
    background-color: var(--bg-hover) !important;
}

/* Modal text fixes */
.light-theme .modal-content {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.light-theme .modal-header {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.light-theme .modal-footer {
    border-color: var(--border-color) !important;
}

/* Tooltip text fixes */
.light-theme .tooltip-inner {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.light-theme .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Form styles for light themes */
.light-theme .form-control {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.light-theme .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Table styles for light themes */
.light-theme .table {
    color: var(--text-primary);
}

.light-theme .table th {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.light-theme .table td {
    border-color: var(--border-light);
}

.light-theme .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-hover);
}

/* Alert styles for light themes */
.light-theme .alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.light-theme .alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.light-theme .alert-danger {
    background-color: #fecaca;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Badge styles for light themes */
.light-theme .badge-primary {
    background-color: var(--primary-color);
}

.light-theme .badge-success {
    background-color: var(--accent-color);
}

.light-theme .badge-warning {
    background-color: var(--warning-color);
}

.light-theme .badge-danger {
    background-color: var(--danger-color);
}

/* Sidebar styles for light themes */
.light-theme .sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

.light-theme .sidebar .nav-link {
    color: var(--text-secondary);
}

.light-theme .sidebar .nav-link:hover,
.light-theme .sidebar .nav-link.active {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

/* Analytics chart styles for light themes */
.light-theme .chart-container {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Modal styles for light themes */
.light-theme .modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.light-theme .modal-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Dropdown styles for light themes */
.light-theme .dropdown-menu {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.light-theme .dropdown-item {
    color: var(--text-primary);
}

.light-theme .dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

/* Progress bar styles for light themes */
.light-theme .progress {
    background-color: var(--bg-hover);
}

.light-theme .progress-bar {
    background-color: var(--primary-color);
}

/* Custom scrollbar for light themes */
.light-theme ::-webkit-scrollbar {
    width: 8px;
}

.light-theme ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}