/* Light Mode Theme - Override Dark Variables */

[data-theme="light"] {
    /* Background Colors */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fc;

    /* Text Colors */
    --text-primary: #1a2332;
    --text-secondary: #5a6478;
    --text-muted: #8b95a5;

    /* Gradients (subtle for light mode) */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #7b61ff 100%);
    --gradient-success: linear-gradient(135deg, #00b366 0%, #00d4ff 100%);
    --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);

    /* Effects - Lighter shadows */
    --glow-primary: 0 0 15px rgba(0, 102, 204, 0.2);
    --glow-secondary: 0 0 15px rgba(123, 97, 255, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.12);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --border-accent: 1px solid rgba(0, 102, 204, 0.3);
}

[data-theme="light"] body {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(123, 97, 255, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

[data-theme="light"] .navbar-container {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar-brand-custom .brand-title {
    color: #1a2332;
}

[data-theme="light"] .navbar-brand-custom .brand-subtitle {
    color: #5a6478;
}

[data-theme="light"] .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar .nav-link {
    color: #5a6478;
}

[data-theme="light"] .sidebar .nav-link:hover {
    color: #1a2332;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar .nav-link.active {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
}

[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: #1a2332;
}

[data-theme="light"] .page-title h1 {
    color: #1a2332;
}

[data-theme="light"] .form-control, [data-theme="light"] .form-select {
    background: #f8f9fc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a2332;
}

[data-theme="light"] .form-control:focus, [data-theme="light"] .form-select:focus {
    background: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    color: #1a2332;
}

[data-theme="light"] .form-control::placeholder {
    color: #8b95a5;
}

[data-theme="light"] .form-label {
    color: #5a6478;
}

[data-theme="light"] .card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card:hover {
    background: #f8f9fc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-header {
    background: #f8f9fc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #1a2332;
}

[data-theme="light"] .table {
    color: #1a2332;
}

[data-theme="light"] .table thead th {
    background: #f1f3f8;
    color: #5a6478;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .table tbody td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .table tbody tr:hover {
    background: rgba(0, 102, 204, 0.04);
}

[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item {
    color: #1a2332;
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 102, 204, 0.08);
    color: #0066cc;
}

[data-theme="light"] .nav-tabs .nav-link {
    color: #5a6478;
}

[data-theme="light"] .nav-tabs .nav-link:hover {
    color: #1a2332;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-tabs .nav-link.active {
    color: #0066cc;
}

[data-theme="light"] .image-upload-container {
    background: #f8f9fc;
    border-color: rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .image-upload-container:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: #0066cc;
}

[data-theme="light"] .accordion-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .accordion-button {
    background: #ffffff;
    color: #1a2332;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background: #f8f9fc;
    color: #0066cc;
}

[data-theme="light"] .accordion-body {
    background: #f8f9fc;
}

[data-theme="light"] .progress {
    background: #e9ecef;
}

[data-theme="light"] .user-info {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .user-info:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .user-name {
    color: #1a2332;
}

[data-theme="light"] .user-role {
    color: #8b95a5;
}

[data-theme="light"] .logout-btn {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .logout-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

[data-theme="light"] .quick-link-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quick-link-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

[data-theme="light"] .quick-link-card .title {
    color: #1a2332;
}

[data-theme="light"] .quick-link-card .desc {
    color: #5a6478;
}

[data-theme="light"] .text-secondary-custom {
    color: #5a6478 !important;
}

[data-theme="light"] .text-muted-custom {
    color: #8b95a5 !important;
}

/* Light mode alert overrides */
[data-theme="light"] .alert-overlay {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .alert-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .alert-title {
    color: #1a2332;
}

[data-theme="light"] .alert-body {
    color: #5a6478;
}

[data-theme="light"] .alert-footer {
    background: #f8f9fc;
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .alert-btn-cancel {
    background: #f8f9fc;
    color: #5a6478;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast-container .toast {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .toast-title {
    color: #1a2332;
}

[data-theme="light"] .toast-message {
    color: #5a6478;
}

/* Scrollbar for light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f3f8;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #0066cc;
}

/* Footer */
[data-theme="light"] footer {
    color: #8b95a5;
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Stat cards in light mode */
[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card:hover {
    border-color: rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .stat-card h2 {
    background: linear-gradient(135deg, #0066cc 0%, #7b61ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Badge adjustments for light mode */
[data-theme="light"] .badge.bg-primary {
    background: #0066cc !important;
}

[data-theme="light"] .badge.bg-success {
    background: #00b366 !important;
    color: #fff;
}