﻿/* ============================================================= */
/* DARK THEME FIXES & COMFORTABLE CONTRAST ENHANCEMENTS */
/* ============================================================= */

/* --- Card Body Text Fix --- */
[data-bs-theme="dark"] .card-body {
    color: #e6e6e6 !important; /* softer neutral grey for dark mode readability */
}

/* --- Text in Cards --- */
[data-bs-theme="dark"] .card .card-body .text-danger,
[data-bs-theme="dark"] .card .card-body .text-red {
    color: #ffd54f !important; /* soft warm yellow */
}

[data-bs-theme="dark"] .card .card-body .text-success {
    color: #8aff80 !important; /* soft green for eyes */
}

[data-bs-theme="dark"] .card .card-body a {
    color: #fff !important;
}

    [data-bs-theme="dark"] .card .card-body a:hover {
        color: #fffa00 !important;
        text-decoration: underline;
    }

/* --- Table inside Card --- */
[data-bs-theme="dark"] .card .card-body .table td {
    color: #eaeaea !important;
}

/* --- Table Alternate Row --- */
[data-bs-theme="dark"] .card .card-body .table .alternateRow td {
    background-color: #505050 !important;
    color: #fff !important;
}

/* --- General Table Links --- */
[data-bs-theme="dark"] .table a {
    color: #fff !important;
}

    [data-bs-theme="dark"] .table a:hover {
        color: #fffa00 !important;
        text-decoration: underline;
    }

/* --- Comfort background --- */
[data-bs-theme="dark"] body {
    background-color: #1d1f21 !important; /* softer dark slate tone */
    color: #eaeaea !important;
}

/* --- Utility & Footer Sections --- */
[data-bs-theme="dark"] .content-utility,
[data-bs-theme="dark"] .content-footer {
    background-color: #2b2b2b !important;
    color: #e6e6e6 !important;
}

/* --- Additional Menu --- */
[data-bs-theme="dark"] .additionalMenu {
    background-color: #3a3a3a !important;
}

[data-bs-theme="dark"] .additionalmenu-header {
    color: #fffa00 !important;
}

/* --- Modal --- */
[data-bs-theme="dark"] .modal-body .modal-text-message-color {
    color: #fffa00 !important;
    font-weight: bold !important;
}

/* ===== DARK THEME COMFORTABLE COLOURS ===== */
/* ===== DARK THEME COMFORTABLE COLOURS ===== */

/* === Text Colours === */
html[data-bs-theme="dark"] .text-primary {
    color: #7db8ff !important;
}

html[data-bs-theme="dark"] .text-secondary {
    color: #c0c0c0 !important;
}

html[data-bs-theme="dark"] .text-success {
    color: #7bd88f !important;
}

html[data-bs-theme="dark"] .text-danger, html[data-bs-theme="dark"] .text-red {
    color: #ff7b7b !important;
}

html[data-bs-theme="dark"] .text-warning {
    color: #ffd875 !important;
}

html[data-bs-theme="dark"] .text-info {
    color: #80e4ff !important;
}

html[data-bs-theme="dark"] .text-light {
    color: #f1f1f1 !important;
}

html[data-bs-theme="dark"] .text-dark {
    color: #b0b0b0 !important;
}

html[data-bs-theme="dark"] .text-muted {
    color: #999 !important;
}

html[data-bs-theme="dark"] .text-white-yellow {
    color: #f7eaa2 !important;
}

/* === Background Colours === */
html[data-bs-theme="dark"] .bg-primary {
    background-color: #0d6efd !important;
}

html[data-bs-theme="dark"] .bg-secondary {
    background-color: #444 !important;
}

html[data-bs-theme="dark"] .bg-success {
    background-color: #1d5c3b !important;
}

html[data-bs-theme="dark"] .bg-danger {
    background-color: #b03a48 !important;
}

html[data-bs-theme="dark"] .bg-warning {
    background-color: #8a6d1e !important;
}

html[data-bs-theme="dark"] .bg-info {
    background-color: #14576b !important;
}

html[data-bs-theme="dark"] .bg-light {
    background-color: #2d2d2d !important;
}

html[data-bs-theme="dark"] .bg-dark {
    background-color: #000 !important;
}

html[data-bs-theme="dark"] .bg-white {
    background-color: #2b2b2b !important;
}

html[data-bs-theme="dark"] .bg-body {
    background-color: #1e1e1e !important;
}

html[data-bs-theme="dark"] .bg-transparent {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .tableHeaderRow {
    background-color: #333333 !important;
    color: #ffffff !important;
}
