/* ===== A0n.Queues Styles ===== */

:root {
    /* Semantic tokens — light theme */
    --bg-body: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f8f9fa;
    --bg-input: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-placeholder: #adb5bd;
    --border-color: #dee2e6;
    --border-light: #f0f0f0;
    --shadow-sm: rgba(0, 0, 0, 0.075);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.3);
    --chat-other: #f1f3f5;
    --chat-own: #e7f1ff;
    --chat-alt: #e2e4e7;
    --table-success-bg: #d1e7dd;
    --table-warning-bg: #fff3cd;
    --table-danger-bg: #f8d7da;
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-focus: rgba(13, 110, 253, 0.25);
    --primary-glow: rgba(13, 110, 253, 0.4);
    --success: #198754;
    --danger: #dc3545;
    --warning: #fd7e14;
    --top-row-bg: #f7f7f7;
    --top-row-border: #d6d5d5;
    --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-text: rgba(255, 255, 255, 0.75);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: rgba(255, 255, 255, 0.37);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-scrollbar: rgba(255, 255, 255, 0.3);
    --modal-bg: white;
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] {
    --bg-body: #1a1b1e;
    --bg-surface: #2b2d31;
    --bg-surface-alt: #232428;
    --bg-input: #383a40;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --text-placeholder: #6b6e73;
    --border-color: #3e4042;
    --border-light: #3e4042;
    --shadow-sm: rgba(0, 0, 0, 0.2);
    --shadow-md: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --chat-other: #303134;
    --chat-own: #1a3a5c;
    --chat-alt: #3a3b3e;
    --table-success-bg: #1a3a2a;
    --table-warning-bg: #3a3520;
    --table-danger-bg: #3a1a1e;
    --primary: #4d8ef7;
    --primary-hover: #3a7ae6;
    --primary-focus: rgba(77, 142, 247, 0.2);
    --primary-glow: rgba(77, 142, 247, 0.35);
    --success: #2cb67d;
    --danger: #e05252;
    --warning: #f09030;
    --top-row-bg: #2b2d31;
    --top-row-border: #3e4042;
    --sidebar-text: rgba(255, 255, 255, 0.85);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
    --sidebar-active-bg: rgba(255, 255, 255, 0.2);
    --sidebar-border: rgba(255, 255, 255, 0.12);
    --sidebar-scrollbar: rgba(255, 255, 255, 0.25);
    --modal-bg: #2b2d31;
    --overlay-bg: rgba(0, 0, 0, 0.65);
    color-scheme: dark;

    /* Bootstrap component overrides for dark mode */
    --bs-table-bg: #2b2d31;
    --bs-table-color: #e4e6eb;
    --bs-table-border-color: #3e4042;
    --bs-table-striped-bg: #252629;
    --bs-table-striped-color: #e4e6eb;
    --bs-table-hover-bg: #353639;
    --bs-table-hover-color: #e4e6eb;
    --bs-body-bg: #1a1b1e;
    --bs-body-color: #e4e6eb;
    --bs-emphasis-color: #e4e6eb;
    --bs-secondary-bg: #383a40;
    --bs-tertiary-bg: #232428;
}

/* ===== General ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--sidebar-bg);
    color: white;
    min-height: 100vh;
    width: 250px;
    flex-shrink: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar > .nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar .top-section {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed {
    transition: all 0.2s ease;
    overflow: hidden;
}

.sidebar.collapsed ul,
.sidebar.collapsed .nav {
    display: none !important;
}

.sidebar.collapsed .sidebar-chat {
    flex: 1;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background: var(--sidebar-hover-bg);
}

.sidebar .nav-link.active {
    color: white;
    background: var(--sidebar-active-bg);
}

/* ===== Main content ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-row {
    background-color: var(--top-row-bg);
    border-bottom: 1px solid var(--top-row-border);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-row .nav-link {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.top-row .theme-btn {
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.content {
    flex: 1;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 0.75rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 0.125rem 0.25rem var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem var(--shadow-md);
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-color);
}

/* ===== Tables ===== */
.table {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table-success td {
    background-color: var(--table-success-bg) !important;
}

.table-warning td {
    background-color: var(--table-warning-bg) !important;
}

.table-danger td {
    background-color: var(--table-danger-bg) !important;
}

/* ===== Notifications ===== */
.notif-dropdown .dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.notif-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* ===== Modals ===== */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    background: var(--modal-bg);
    color: var(--text-primary);
}

.modal-header {
    border-radius: 0.75rem 0.75rem 0 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay .modal-dialog {
    max-width: 450px;
    width: 100%;
}

.modal-overlay .modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
    .modal-overlay {
        padding: 0.5rem;
    }
}

/* ===== Buttons ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* ===== Forms ===== */
.form-control {
    background-color: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--primary-focus);
}

/* ===== Badge ===== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* ===== Scrollbar ===== */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-scrollbar);
    border-radius: 2px;
}

/* ===== 404/errors ===== */
.text-center.mt-5 h2 {
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Chat (sidebar desktop) ===== */
.sidebar-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--sidebar-border);
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    overflow: hidden;
}

.chat-header {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    margin-left: auto;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

.chat-tab {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
}

.chat-tab:focus {
    outline: none;
}

.chat-tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.chat-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary);
    background: var(--bg-surface);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

.chat-empty {
    color: var(--text-placeholder);
    text-align: center;
    font-size: 0.75rem;
    padding: 1rem;
}

.chat-msg {
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    background: var(--chat-other);
    color: var(--text-primary);
    word-break: break-word;
}

.chat-msg.own {
    background: var(--chat-own);
}

.chat-msg.alt-b {
    background: var(--chat-alt);
}

.chat-msg-header {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.chat-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.72rem;
}

.chat-time {
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.chat-text {
    color: var(--text-primary);
    font-size: 0.75rem;
}

.chat-input {
    display: flex;
    padding: 0.4rem;
    gap: 0.3rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

.chat-input input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    color: var(--text-primary);
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    outline: none;
}

.chat-input input::placeholder {
    color: var(--text-placeholder);
}

.chat-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem var(--primary-focus);
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.3rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input button:hover:not(:disabled) {
    background: var(--primary-hover);
}

.chat-input button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Mobile Hamburger ===== */
.sidebar-toggle-input {
    display: none;
}

.mobile-hamburger {
    display: none;
}

/* ===== Mobile Chat FAB ===== */
.chat-fab {
    display: none;
}

.chat-overlay {
    display: none;
}

/* ===== Theme toggle ===== */
.theme-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sidebar-text);
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    margin: 0.125rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: calc(100% - 1rem);
}

.theme-toggle:hover {
    background: var(--sidebar-hover-bg);
    color: white;
}

.theme-toggle .theme-icon {
    font-size: 1rem;
}

/* ===== Desktop (>= 768px) ===== */
@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .sidebar.collapsed {
        width: 250px !important;
    }

    .sidebar.collapsed ul,
    .sidebar.collapsed .nav {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-chat {
        flex: 1;
    }

    .sidebar.collapsed .top-section {
        padding: 1.5rem 0.5rem;
        text-align: center;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row, .content {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767.98px) {
    .page {
        flex-direction: column !important;
    }

    /* Hamburger */
    .mobile-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0.5rem;
        left: 0.5rem;
        z-index: 1051;
        width: 44px;
        height: 44px;
        background: var(--sidebar-bg);
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    /* Sidebar drawer */
    .sidebar {
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        min-height: auto !important;
        z-index: 1050 !important;
        transition: left 0.3s ease !important;
        flex-shrink: 0 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #sidebar-toggle:checked ~ .sidebar {
        left: 0 !important;
    }

    .sidebar .top-section {
        text-align: center;
        padding-top: 3.5rem;
    }

    /* Backdrop */
    .sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: var(--overlay-bg) !important;
        z-index: 1040 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
        cursor: pointer;
    }

    #sidebar-toggle:checked ~ .sidebar-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Hide sidebar-chat on mobile */
    .sidebar-chat {
        display: none;
    }

    /* Top-row */
    .top-row {
        padding-left: 3.5rem !important;
        padding-right: 0.5rem !important;
        justify-content: flex-end;
        gap: 0.25rem;
    }

    .top-row .nav-link {
        font-size: 0.85rem;
        padding: 0.25rem 0.4rem;
        margin-right: 0.25rem;
    }

    .top-row-text {
        display: none;
    }

    .content {
        padding: 0.75rem !important;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    /* Touch-friendly targets */
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Chat FAB */
    .chat-fab {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 1051 !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: var(--primary) !important;
        color: white !important;
        border: none !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px var(--primary-glow) !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .chat-fab:active {
        transform: scale(0.92) !important;
    }

    /* Chat overlay */
    .chat-overlay {
        display: none !important;
        flex-direction: column !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 1060 !important;
        background: var(--bg-body) !important;
    }

    .chat-overlay.open {
        display: flex !important;
    }

    .chat-fab-badge {
        position: absolute !important;
        top: -2px !important;
        right: -2px !important;
        background: var(--danger) !important;
        color: white !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        min-width: 18px !important;
        height: 18px !important;
        border-radius: 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
    }

    /* Chat overlay */
    .chat-overlay-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem !important;
        background: var(--sidebar-bg) !important;
        color: white !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
    }

    .chat-overlay-title {
        font-size: 1rem !important;
    }

    .chat-overlay-close {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.15) !important;
        color: white !important;
        border: none !important;
        border-radius: 0.5rem !important;
        font-size: 1.2rem !important;
        cursor: pointer !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .chat-overlay .chat-header {
        display: none !important;
    }

    .chat-overlay .chat-container {
        flex: 1 !important;
        border: none !important;
        border-radius: 0 !important;
        min-height: 0 !important;
    }

    .chat-overlay .chat-messages {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    .chat-overlay .chat-msg {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .chat-overlay .chat-input {
        padding: 0.6rem !important;
        gap: 0.5rem !important;
    }

    .chat-overlay .chat-input input {
        font-size: 1rem !important;
        padding: 0.6rem 0.75rem !important;
    }

    .chat-overlay .chat-input button {
        font-size: 1rem !important;
        padding: 0.6rem 1rem !important;
    }
}

/* ===== Toast notifications ===== */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toast-in 0.3s ease-out;
    pointer-events: auto;
    max-width: 350px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.toast-notification.toast-out {
    opacity: 0;
    transform: translateX(100%);
}

.toast-notification.info    { background: var(--primary); }
.toast-notification.success { background: var(--success); }
.toast-notification.warning { background: var(--warning); }
.toast-notification.danger  { background: var(--danger); }

.toast-notification .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-notification .toast-text {
    line-height: 1.3;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== Dark mode Bootstrap component overrides ===== */
:root[data-theme="dark"] .table-light {
    --bs-table-bg: #2b2d31;
    --bs-table-color: #e4e6eb;
}

:root[data-theme="dark"] .table-light thead {
    background-color: #383a40;
    color: #e4e6eb;
}

:root[data-theme="dark"] .table-bordered,
:root[data-theme="dark"] .table-bordered > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    border-color: #3e4042;
}

:root[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e4e6eb;
}

:root[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    color: #e4e6eb;
}

:root[data-theme="dark"] .pagination {
    --bs-pagination-bg: #2b2d31;
    --bs-pagination-border-color: #3e4042;
    --bs-pagination-color: #e4e6eb;
    --bs-pagination-hover-bg: #383a40;
    --bs-pagination-hover-border-color: #4e5052;
    --bs-pagination-hover-color: #e4e6eb;
    --bs-pagination-active-bg: var(--primary);
    --bs-pagination-active-border-color: var(--primary);
    --bs-pagination-active-color: #fff;
    --bs-pagination-disabled-bg: #232428;
    --bs-pagination-disabled-border-color: #3e4042;
    --bs-pagination-disabled-color: #6b6e73;
}

:root[data-theme="dark"] .page-link {
    background-color: var(--bs-pagination-bg);
    border-color: var(--bs-pagination-border-color);
    color: var(--bs-pagination-color);
}

:root[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
    color: var(--bs-pagination-active-color);
}

:root[data-theme="dark"] .card-header.bg-success {
    background-color: #1a3a2a !important;
    color: #e4e6eb !important;
}

:root[data-theme="dark"] .badge.bg-dark {
    background-color: #383a40 !important;
    color: #e4e6eb !important;
}

:root[data-theme="dark"] .badge.bg-secondary {
    background-color: #4e5052 !important;
    color: #e4e6eb !important;
}

:root[data-theme="dark"] .alert-success {
    background-color: #1a3a2a;
    color: #b0e0c8;
    border-color: #2a5a3a;
}

:root[data-theme="dark"] .alert-danger {
    background-color: #3a1a1e;
    color: #f0b0b0;
    border-color: #5a2a2e;
}

:root[data-theme="dark"] .alert-info {
    background-color: #1a2a3a;
    color: #b0d0f0;
    border-color: #2a4a6a;
}

:root[data-theme="dark"] .form-select {
    background-color: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:root[data-theme="dark"] .form-select option {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

:root[data-theme="dark"] .btn-close {
    filter: invert(1);
}

:root[data-theme="dark"] .text-muted {
    color: #8a8d91 !important;
}

:root[data-theme="dark"] .container {
    color: var(--text-primary);
}

:root[data-theme="dark"] h2,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5 {
    color: var(--text-primary);
}

:root[data-theme="dark"] .modal-footer {
    border-top-color: #3e4042;
}

:root[data-theme="dark"] a {
    color: var(--primary);
}

:root[data-theme="dark"] a:hover {
    color: var(--primary-hover);
}

:root[data-theme="dark"] .dropdown-menu {
    background-color: #2b2d31;
    border-color: #3e4042;
    color: #e4e6eb;
}

:root[data-theme="dark"] .dropdown-item {
    color: #e4e6eb;
}

:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus {
    background-color: #383a40;
    color: #fff;
}

:root[data-theme="dark"] .btn-outline-warning {
    color: #f09030;
    border-color: #f09030;
}

:root[data-theme="dark"] .btn-outline-warning:hover {
    background-color: #f09030;
    color: #1a1b1e;
}

:root[data-theme="dark"] .btn-outline-info {
    color: #5ec4d8;
    border-color: #5ec4d8;
}

:root[data-theme="dark"] .btn-outline-info:hover {
    background-color: #5ec4d8;
    color: #1a1b1e;
}

:root[data-theme="dark"] .btn-outline-success {
    color: #2cb67d;
    border-color: #2cb67d;
}

:root[data-theme="dark"] .btn-outline-success:hover {
    background-color: #2cb67d;
    color: #1a1b1e;
}

:root[data-theme="dark"] .btn-outline-secondary {
    color: #b0b3b8;
    border-color: #6b6e73;
}

:root[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6b6e73;
    color: #1a1b1e;
}

:root[data-theme="dark"] .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

:root[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary);
    color: #1a1b1e;
}
