/**
 * Dark Theme CSS
 * Overrides light theme colors when dark theme is active
 */

:root {
    /* Light theme colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --card-border: #e3e6e8;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --link-color: #0d6efd;
    --header-bg: #ffffff;
    --sidebar-bg: #1e2024;
    --sidebar-text: #8a8a8a;
    --sidebar-active: #ffffff;
}

html[data-theme='dark'] {
    /* Dark theme colors */
    --bg-primary: #1a1d21;
    --bg-secondary: #25282c;
    --bg-tertiary: #2d3035;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-muted: #868e96;
    --border-color: #495057;
    --card-bg: #25282c;
    --card-border: #495057;
    --input-bg: #2d3035;
    --input-border: #495057;
    --link-color: #6ea8fe;
    --header-bg: #25282c;
    --sidebar-bg: #1a1d21;
    --sidebar-text: #8a8a8a;
    --sidebar-active: #ffffff;

    /* Bootstrap color overrides for better dark theme readability */
    --bs-primary: #6ea8fe;
    --bs-primary-rgb: 110, 168, 254;
    --bs-link-color: #6ea8fe;
    --bs-link-hover-color: #8bb9fe;
}

    /* Apply theme colors to body and main elements */
    html[data-theme='dark'] body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }

    html[data-theme='dark'] .app-wrapper {
        background-color: var(--bg-primary);
    }

    html[data-theme='dark'] .app-content {
        background-color: var(--bg-primary);
    }

    /* Headings */
    html[data-theme='dark'] h1,
    html[data-theme='dark'] h2,
    html[data-theme='dark'] h3,
    html[data-theme='dark'] h4,
    html[data-theme='dark'] h5,
    html[data-theme='dark'] h6 {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .app-page-title {
        color: var(--text-primary);
    }

    /* Header */
    html[data-theme='dark'] .app-header {
        background-color: var(--header-bg);
        border-bottom: 1px solid var(--border-color);
    }

    html[data-theme='dark'] .app-header-inner {
        background-color: var(--header-bg);
    }

    html[data-theme='dark'] .app-header svg path {
        stroke: var(--text-primary);
    }

    /* Sidebar */
    html[data-theme='dark'] .app-sidepanel {
        background-color: var(--sidebar-bg);
        border-right: 1px solid var(--border-color);
    }

    html[data-theme='dark'] .app-sidepanel-inner {
        background-color: var(--sidebar-bg);
    }

    /* More specific selector to override portal.css */
    html[data-theme='dark'] .app-sidepanel .sidepanel-inner {
        background-color: var(--sidebar-bg);
        box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 15px;
    }

    html[data-theme='dark'] .sidepanel-drop {
        background-color: rgba(0, 0, 0, 0.5);
    }

    html[data-theme='dark'] .app-branding {
        border-bottom: 1px solid var(--border-color);
    }

        html[data-theme='dark'] .app-branding .logo-text {
            color: var(--text-primary);
        }

    /* Navigation containers */
    html[data-theme='dark'] .app-nav {
        background-color: var(--sidebar-bg);
    }

    html[data-theme='dark'] .app-nav-main {
        background-color: var(--sidebar-bg);
        scrollbar-color: rgba(255, 255, 255, 0.2) var(--border-color);
    }

        html[data-theme='dark'] .app-nav-main::-webkit-scrollbar {
            background-color: var(--border-color);
        }

        html[data-theme='dark'] .app-nav-main::-webkit-scrollbar-thumb {
            background-color: rgba(255, 255, 255, 0.2);
        }

    /* Navigation items */
    html[data-theme='dark'] .app-nav .nav-item {
        background-color: var(--sidebar-bg);
    }

    html[data-theme='dark'] .app-nav-main .nav-link {
        color: var(--sidebar-text);
    }

        html[data-theme='dark'] .app-nav-main .nav-link:hover {
            color: var(--sidebar-active);
            background-color: rgba(255, 255, 255, 0.05);
        }

        html[data-theme='dark'] .app-nav-main .nav-link.active {
            color: var(--sidebar-active);
            background-color: rgba(255, 255, 255, 0.1);
            border-left-color: var(--sidebar-active);
        }

    /* Submenu */
    html[data-theme='dark'] .app-nav .submenu-link {
        color: var(--sidebar-text);
    }

        html[data-theme='dark'] .app-nav .submenu-link:before {
            background-color: var(--border-color);
        }

        html[data-theme='dark'] .app-nav .submenu-link:hover {
            color: var(--text-primary);
        }

        html[data-theme='dark'] .app-nav .submenu-link.active {
            color: var(--sidebar-active);
        }

            html[data-theme='dark'] .app-nav .submenu-link.active:before {
                background-color: var(--sidebar-active);
            }

    html[data-theme='dark'] .app-nav .submenu-arrow {
        color: var(--text-secondary);
    }

    /* Sidebar footer */
    html[data-theme='dark'] .app-sidepanel-footer {
        border-top: 1px solid var(--border-color);
        background-color: rgba(255, 255, 255, 0.05);
    }

    html[data-theme='dark'] .sidepanel-close {
        color: var(--text-primary);
    }

    /* Cards */
    html[data-theme='dark'] .app-card,
    html[data-theme='dark'] .card {
        background-color: var(--card-bg);
        border-color: var(--card-border);
        color: var(--text-primary);
    }

    html[data-theme='dark'] .app-card-header,
    html[data-theme='dark'] .card-header {
        background-color: var(--bg-secondary);
        border-bottom-color: var(--border-color);
        color: var(--text-primary);
    }

    html[data-theme='dark'] .app-card-body,
    html[data-theme='dark'] .card-body {
        background-color: var(--card-bg);
        color: var(--text-primary);
    }

    /* Forms */
    html[data-theme='dark'] .form-control,
    html[data-theme='dark'] .form-select {
        background-color: var(--input-bg);
        border-color: var(--input-border);
        color: var(--text-primary);
    }

        html[data-theme='dark'] .form-control:focus,
        html[data-theme='dark'] .form-select:focus {
            background-color: var(--input-bg);
            border-color: #86b7fe;
            color: var(--text-primary);
        }

        html[data-theme='dark'] .form-control::placeholder {
            color: var(--text-muted);
        }

        html[data-theme='dark'] .form-control:disabled,
        html[data-theme='dark'] .form-select:disabled {
            background-color: var(--bg-tertiary);
            color: var(--text-muted);
        }

    html[data-theme='dark'] .form-label {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .form-text {
        color: var(--text-secondary);
    }

    html[data-theme='dark'] .form-group-inline .form-control-wrapper p {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .form-group-inline .form-control-wrapper pre {
        color: var(--text-primary);
    }

    /* Tables */
    html[data-theme='dark'] .table {
        color: var(--text-primary);
        border-color: var(--border-color);
        --bs-table-bg: var(--card-bg);
    }

        html[data-theme='dark'] .table thead th {
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        html[data-theme='dark'] .table tbody td {
            border-color: var(--border-color);
            background-color: var(--card-bg);
        }

        html[data-theme='dark'] .table tbody tr {
            background-color: var(--card-bg);
        }

    html[data-theme='dark'] .table-striped > tbody > tr:nth-of-type(odd) > * {
        --bs-table-bg-type: var(--bg-secondary);
        background-color: var(--bg-secondary);
    }

    html[data-theme='dark'] .table-hover > tbody > tr:hover > * {
        --bs-table-bg-state: var(--bg-tertiary);
        background-color: var(--bg-tertiary);
    }

    /* Buttons - preserve button colors but adjust for readability */
    html[data-theme='dark'] .btn-light {
        background-color: var(--bg-tertiary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }

        html[data-theme='dark'] .btn-light:hover {
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

    html[data-theme='dark'] .btn-outline-secondary {
        color: var(--text-primary);
        border-color: var(--border-color);
    }

        html[data-theme='dark'] .btn-outline-secondary:hover {
            background-color: var(--bg-tertiary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

    /* Custom app buttons */
    html[data-theme='dark'] .app-btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

        html[data-theme='dark'] .app-btn-primary:hover,
        html[data-theme='dark'] .app-btn-primary:active {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
            color: #fff;
        }

    html[data-theme='dark'] .app-btn-secondary {
        background-color: var(--card-bg);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

        html[data-theme='dark'] .app-btn-secondary:hover,
        html[data-theme='dark'] .app-btn-secondary:active {
            color: var(--primary-color);
            border-color: var(--primary-color);
            background-color: rgba(255, 255, 255, 0.05);
        }

    /* Alerts - slightly adjust for dark theme */
    html[data-theme='dark'] .alert {
        border-color: var(--border-color);
    }

    html[data-theme='dark'] .alert-danger {
        background-color: rgba(220, 53, 69, 0.2);
        color: #f8d7da;
        border-color: rgba(220, 53, 69, 0.5);
    }

    html[data-theme='dark'] .alert-success {
        background-color: rgba(25, 135, 84, 0.2);
        color: #d1e7dd;
        border-color: rgba(25, 135, 84, 0.5);
    }

    html[data-theme='dark'] .alert-warning {
        background-color: rgba(255, 193, 7, 0.2);
        color: #fff3cd;
        border-color: rgba(255, 193, 7, 0.5);
    }

    html[data-theme='dark'] .alert-info {
        background-color: rgba(13, 202, 240, 0.2);
        color: #cff4fc;
        border-color: rgba(13, 202, 240, 0.5);
    }

    /* Modals */
    html[data-theme='dark'] .modal-content {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

    html[data-theme='dark'] .modal-header {
        background-color: var(--bg-secondary);
        border-bottom-color: var(--border-color);
    }

    html[data-theme='dark'] .modal-footer {
        border-top-color: var(--border-color);
    }

    html[data-theme='dark'] .modal-title {
        color: var(--text-primary);
    }

    /* Dropdowns */
    html[data-theme='dark'] .dropdown-menu {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

    html[data-theme='dark'] .dropdown-item {
        color: var(--text-primary);
    }

        html[data-theme='dark'] .dropdown-item:hover,
        html[data-theme='dark'] .dropdown-item:focus {
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
        }

    html[data-theme='dark'] .dropdown-divider {
        border-top-color: var(--border-color);
    }

    /* Pagination */
    html[data-theme='dark'] .pagination .page-link {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-primary);
    }

        html[data-theme='dark'] .pagination .page-link:hover {
            background-color: var(--bg-tertiary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

    html[data-theme='dark'] .pagination .page-item.active .page-link {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

    html[data-theme='dark'] .pagination .page-item.disabled .page-link {
        background-color: var(--bg-tertiary);
        border-color: var(--border-color);
        color: var(--text-muted);
    }

    /* Badges */
    html[data-theme='dark'] .badge.bg-light {
        background-color: var(--bg-tertiary) !important;
        color: var(--text-primary);
    }

    html[data-theme='dark'] .badge.bg-secondary {
        background-color: var(--bg-tertiary) !important;
    }

    /* Lists */
    html[data-theme='dark'] .list-group-item {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-primary);
    }

        html[data-theme='dark'] .list-group-item:hover {
            background-color: var(--bg-tertiary);
        }

        html[data-theme='dark'] .list-group-item.active {
            background-color: #0d6efd;
            border-color: #0d6efd;
        }

    /* Borders */
    html[data-theme='dark'] .border,
    html[data-theme='dark'] .border-top,
    html[data-theme='dark'] .border-bottom,
    html[data-theme='dark'] .border-start,
    html[data-theme='dark'] .border-end {
        border-color: var(--border-color) !important;
    }

    /* Text colors */
    html[data-theme='dark'] .text-muted {
        color: var(--text-muted) !important;
    }

    html[data-theme='dark'] .text-secondary {
        color: var(--text-secondary) !important;
    }

    /* Links */
    html[data-theme='dark'] a {
        color: var(--link-color);
    }

        html[data-theme='dark'] a:hover {
            color: #8bb8ff;
        }

        /* Links inside a button should keep the textcolor of the button */
        html[data-theme='dark'] a.btn {
            color: inherit;
        }

    /* Footer */
    html[data-theme='dark'] .app-footer {
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        color: var(--text-secondary);
    }

    /* SweetAlert2 dark theme */
    html[data-theme='dark'] .swal2-popup {
        background-color: var(--card-bg);
        color: var(--text-primary);
    }

    html[data-theme='dark'] .swal2-title {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .swal2-html-container {
        color: var(--text-primary);
    }

    /* Progress bars */
    html[data-theme='dark'] .progress {
        background-color: var(--bg-tertiary);
    }

    /* Nav tabs */
    html[data-theme='dark'] .nav-tabs {
        border-bottom-color: var(--border-color);
    }

        html[data-theme='dark'] .nav-tabs .nav-link {
            color: var(--text-primary);
            background-color: transparent;
            border-color: transparent;
        }

            html[data-theme='dark'] .nav-tabs .nav-link:hover {
                border-color: var(--border-color) var(--border-color) transparent;
            }

            html[data-theme='dark'] .nav-tabs .nav-link.active {
                background-color: var(--card-bg);
                border-color: var(--border-color) var(--border-color) var(--card-bg);
                color: var(--text-primary);
            }

/* Theme switcher button */
.theme-switcher-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

    .theme-switcher-btn:hover {
        transform: scale(1.1);
    }

    .theme-switcher-btn:active {
        transform: scale(0.95);
    }

/* DataTable Action Buttons - Dark theme enhancements */
html[data-theme='dark'] .dt-action-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhance button colors in dark mode */
html[data-theme='dark'] .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    html[data-theme='dark'] .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

html[data-theme='dark'] .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

    html[data-theme='dark'] .btn-danger:hover {
        background-color: #bb2d3b;
        border-color: #b02a37;
    }

html[data-theme='dark'] .btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

    html[data-theme='dark'] .btn-info:hover {
        background-color: #31d2f2;
        border-color: #25cff2;
        color: #000;
    }

    /* Flatpickr Dark Theme */
    html[data-theme='dark'] .flatpickr-calendar {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    }

    html[data-theme='dark'] .flatpickr-months {
        background-color: var(--bg-secondary);
    }

    html[data-theme='dark'] .flatpickr-current-month .flatpickr-monthDropdown-months,
    html[data-theme='dark'] .flatpickr-current-month input.cur-year {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }

    html[data-theme='dark'] .flatpickr-weekdays {
        background-color: var(--bg-secondary);
    }

    html[data-theme='dark'] span.flatpickr-weekday {
        background-color: var(--bg-secondary);
        color: var(--text-secondary);
    }

    html[data-theme='dark'] .flatpickr-day {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .flatpickr-day:hover {
        background-color: var(--bg-tertiary);
        border-color: var(--border-color);
    }

    html[data-theme='dark'] .flatpickr-day.selected {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

    html[data-theme='dark'] .flatpickr-day.today {
        border-color: #0d6efd;
    }

    html[data-theme='dark'] .flatpickr-day.today:hover {
        background-color: rgba(13, 110, 253, 0.2);
        border-color: #0d6efd;
    }

    html[data-theme='dark'] .flatpickr-months .flatpickr-prev-month,
    html[data-theme='dark'] .flatpickr-months .flatpickr-next-month {
        color: var(--text-primary);
        fill: var(--text-primary);
    }

    html[data-theme='dark'] .flatpickr-months .flatpickr-prev-month:hover,
    html[data-theme='dark'] .flatpickr-months .flatpickr-next-month:hover {
        color: var(--text-primary);
    }

    html[data-theme='dark'] .flatpickr-months .flatpickr-prev-month:hover svg,
    html[data-theme='dark'] .flatpickr-months .flatpickr-next-month:hover svg {
        fill: var(--text-primary);
    }

    html[data-theme='dark'] .flatpickr-time input {
        background-color: var(--input-bg);
        color: var(--text-primary);
        border-color: var(--border-color);
    }

    html[data-theme='dark'] .flatpickr-time .flatpickr-time-separator,
    html[data-theme='dark'] .flatpickr-time .flatpickr-am-pm {
        color: var(--text-primary);
    }

/* iCheck Bootstrap Dark Theme Enhancements */
html[data-theme='dark'] .icheck-primary > input:first-child:not(:checked):not(:disabled):hover + label::before,
html[data-theme='dark'] .icheck-primary > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #6ea8fe;
}

html[data-theme='dark'] .icheck-success > input:first-child:not(:checked):not(:disabled):hover + label::before,
html[data-theme='dark'] .icheck-success > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #75b798;
}

html[data-theme='dark'] .icheck-warning > input:first-child:not(:checked):not(:disabled):hover + label::before,
html[data-theme='dark'] .icheck-warning > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #ffda6a;
}

html[data-theme='dark'] .icheck-danger > input:first-child:not(:checked):not(:disabled):hover + label::before,
html[data-theme='dark'] .icheck-danger > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #ea868f;
}

html[data-theme='dark'] .icheck-info > input:first-child:not(:checked):not(:disabled):hover + label::before,
html[data-theme='dark'] .icheck-info > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #6edff6;
}

/* Checkbox/radio label text color in dark theme */
html[data-theme='dark'] .icheck-primary label,
html[data-theme='dark'] .icheck-success label,
html[data-theme='dark'] .icheck-warning label,
html[data-theme='dark'] .icheck-danger label,
html[data-theme='dark'] .icheck-info label {
    color: var(--text-primary);
}

/* Disabled checkbox/radio styling in dark theme */
html[data-theme='dark'] .icheck-primary > input:first-child:disabled + label::before,
html[data-theme='dark'] .icheck-primary > input:first-child:disabled + input[type="hidden"] + label::before,
html[data-theme='dark'] .icheck-success > input:first-child:disabled + label::before,
html[data-theme='dark'] .icheck-success > input:first-child:disabled + input[type="hidden"] + label::before,
html[data-theme='dark'] .icheck-warning > input:first-child:disabled + label::before,
html[data-theme='dark'] .icheck-warning > input:first-child:disabled + input[type="hidden"] + label::before,
html[data-theme='dark'] .icheck-danger > input:first-child:disabled + label::before,
html[data-theme='dark'] .icheck-danger > input:first-child:disabled + input[type="hidden"] + label::before,
html[data-theme='dark'] .icheck-info > input:first-child:disabled + label::before,
html[data-theme='dark'] .icheck-info > input:first-child:disabled + input[type="hidden"] + label::before {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

html[data-theme='dark'] .icheck-primary > input:first-child:disabled + label,
html[data-theme='dark'] .icheck-success > input:first-child:disabled + label,
html[data-theme='dark'] .icheck-warning > input:first-child:disabled + label,
html[data-theme='dark'] .icheck-danger > input:first-child:disabled + label,
html[data-theme='dark'] .icheck-info > input:first-child:disabled + label {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========================================
   LOGIN PAGE DARK THEME
   ======================================== */

/* Login page body */
html[data-theme='dark'] .app-login {
    background-color: var(--bg-primary);
}

/* Login wrapper */
html[data-theme='dark'] .app-auth-wrapper {
    background-color: var(--bg-primary);
}

/* Auth main column */
html[data-theme='dark'] .auth-main-col {
    background-color: var(--bg-primary);
}

/* Auth heading */
html[data-theme='dark'] .auth-heading {
    color: var(--text-primary);
}

/* Auth branding */
html[data-theme='dark'] .app-auth-branding .app-logo img {
    /* Logo already handles dark theme through its design */
}

/* Auth form container */
html[data-theme='dark'] .auth-form-container {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* Auth form inputs */
html[data-theme='dark'] .auth-form .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

html[data-theme='dark'] .auth-form .form-control:focus {
    background-color: var(--input-bg);
    border-color: #86b7fe;
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

html[data-theme='dark'] .auth-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

html[data-theme='dark'] .auth-form .form-control:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Auth form labels */
html[data-theme='dark'] .auth-form label,
html[data-theme='dark'] .auth-form .form-label {
    color: var(--text-primary);
}

/* Auth form extra (remember me, forgot password) */
html[data-theme='dark'] .auth-form .extra {
    color: var(--text-primary);
}

html[data-theme='dark'] .auth-form .forgot-password a {
    color: var(--link-color);
}

html[data-theme='dark'] .auth-form .forgot-password a:hover {
    color: #8bb8ff;
}

/* Auth form checkbox labels */
html[data-theme='dark'] .auth-form .form-check-label {
    color: var(--text-primary);
}

/* Auth footer */
html[data-theme='dark'] .app-auth-footer {
    background-color: transparent;
    color: var(--text-secondary);
}

html[data-theme='dark'] .app-auth-footer .copyright {
    color: var(--text-secondary);
}

/* 2FA specific styling */
html[data-theme='dark'] .two-factor-code .form-text {
    color: var(--text-secondary);
}

html[data-theme='dark'] .two-factor-code .btn-link {
    color: var(--link-color);
}

html[data-theme='dark'] .two-factor-code .btn-link:hover {
    color: #8bb8ff;
}

/* Alert messages on login page */
html[data-theme='dark'] .auth-form-container .alert {
    background-color: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
    color: var(--text-primary);
}

html[data-theme='dark'] .auth-form-container .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    border-color: rgba(220, 53, 69, 0.5);
}

html[data-theme='dark'] .auth-form-container .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    color: #d1e7dd;
    border-color: rgba(25, 135, 84, 0.5);
}

/* Theme button on login page (if we add one) */
html[data-theme='dark'] .auth-theme-switcher {
    color: var(--text-primary);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

html[data-theme='dark'] .auth-theme-switcher:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}
