﻿/* Dark Theme Bootstrap Overrides */

/* Fix text-muted for dark theme */
[data-theme="dark"] .text-muted,
.mud-theme-dark .text-muted {
    color: #adb5bd !important;
}

/* Fix Bootstrap cards for dark theme */
[data-theme="dark"] .card,
.mud-theme-dark .card {
    background-color: #1e1e1e !important;
    border-color: #343a40 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card-body,
.mud-theme-dark .card-body {
    color: #ffffff !important;
}

[data-theme="dark"] .card-header,
.mud-theme-dark .card-header {
    background-color: #2d2d2d !important;
    border-bottom-color: #343a40 !important;
    color: #ffffff !important;
}

/* Fix form controls for dark theme */
[data-theme="dark"] .form-control,
.mud-theme-dark .form-control {
    background-color: #2d2d2d !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

    [data-theme="dark"] .form-control:focus,
    .mud-theme-dark .form-control:focus {
        background-color: #2d2d2d !important;
        border-color: #4dabf7 !important;
        color: #ffffff !important;
        box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25) !important;
    }

/* Fix form labels */
[data-theme="dark"] .form-label,
.mud-theme-dark .form-label {
    color: #f8f9fa !important;
}

/* Fix buttons */
[data-theme="dark"] .btn-outline-secondary,
.mud-theme-dark .btn-outline-secondary {
    color: #adb5bd !important;
    border-color: #6c757d !important;
}

    [data-theme="dark"] .btn-outline-secondary:hover,
    .mud-theme-dark .btn-outline-secondary:hover {
        background-color: #6c757d !important;
        color: #ffffff !important;
    }

/* Fix alerts */
[data-theme="dark"] .alert-info,
.mud-theme-dark .alert-info {
    background-color: #0d2d3a !important;
    border-color: #17a2b8 !important;
    color: #b8e7f0 !important;
}

[data-theme="dark"] .alert-warning,
.mud-theme-dark .alert-warning {
    background-color: #332a00 !important;
    border-color: #ffc107 !important;
    color: #fff3cd !important;
}

[data-theme="dark"] .alert-danger,
.mud-theme-dark .alert-danger {
    background-color: #2d0a0a !important;
    border-color: #dc3545 !important;
    color: #f8d7da !important;
}

[data-theme="dark"] .alert-success,
.mud-theme-dark .alert-success {
    background-color: #0a2e0a !important;
    border-color: #28a745 !important;
    color: #d1eddb !important;
}

/* Fix general text colors */
[data-theme="dark"] body,
.mud-theme-dark body {
    color: #ffffff !important;
}

[data-theme="dark"] .text-dark,
.mud-theme-dark .text-dark {
    color: #f8f9fa !important;
}

/* Fix backgrounds */
[data-theme="dark"] .bg-light,
.mud-theme-dark .bg-light {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .border-bottom,
.mud-theme-dark .border-bottom {
    border-bottom-color: #343a40 !important;
}
/* Lighter placeholder option */
[data-theme="dark"] .form-control::placeholder,
.mud-theme-dark .form-control::placeholder {
    color: #adb5bd !important; /* Lighter gray */
    opacity: 0.8 !important;
}
