.navbar-brand {
    white-space: normal !important;
    font-size: 0.95rem;
    line-height: 1.25;
    max-width: 80%;
    display: inline-block;
}
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
        max-width: 100%;
    }
}
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}
[data-bs-theme="dark"] body.bg-light {
    background-color: #121212 !important;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card-header {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #333;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: #2c2c2c !important;
    border-color: #444;
    color: #fff !important;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #3a3a3a !important;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
[data-bs-theme="dark"] ::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}
[data-bs-theme="dark"] .sub-section {
    background-color: #252525 !important;
    border-left-color: #0d6efd;
    color: #ddd;
}
[data-bs-theme="dark"] footer .text-muted {
    color: #9e9e9e !important;
}
[data-bs-theme="dark"] footer small {
    color: #bbb !important;
}

[data-bs-theme="dark"] #themeToggle {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .text-muted {
    color: #b0b3b8 !important;
}

[data-bs-theme="dark"] .dyn-title {
    color: #fff !important;
}
[data-bs-theme="dark"] .text-dark {
    color: #fff !important;
}
[data-bs-theme="dark"] .border.rounded {
    background-color: #2c3035 !important;
    border-color: #495057 !important;
}
[data-bs-theme="dark"] input[type="number"] {
    background-color: #212529;
    color: #fff;
    border: 1px solid #495057;
}
[data-bs-theme="dark"] input[type="number"]:focus {
    background-color: #2b3035;
    color: #fff;
    border-color: #0d6efd;
}