/* Dark Theme Styles for Absher App */
[data-bs-theme="dark"] main{
    background: #282828;
}
/* Base styles */
[data-bs-theme="dark"] body {
    background-color: #1a1d20;
    color: #e9ecef;
}

/* Cards */
[data-bs-theme="dark"] .card {
    background-color: #2c3034;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .card-body {
    color: #e9ecef;
}

[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-text {
    color: #e9ecef !important;
}

/* Text colors - Much lighter */
[data-bs-theme="dark"] .text-secondary {
    color: #ced4da !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #f8f9fa;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div {
    color: #e9ecef;
}

[data-bs-theme="dark"] label {
    color: #e9ecef;
}

[data-bs-theme="dark"] small {
    color: #adb5bd;
}

/* Forms & Inputs */
[data-bs-theme="dark"] .form-control {
    background-color: #2c3034;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #2c3034;
    border-color: #6c757d;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #6c757d;
}

[data-bs-theme="dark"] .form-select {
    background-color: #2c3034;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: #2c3034;
    border-color: #495057;
}

[data-bs-theme="dark"] .form-check-label {
    color: #e9ecef;
}

/* Buttons */
[data-bs-theme="dark"] .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

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

[data-bs-theme="dark"] .btn-outline-primary {
    color: #6ea8fe;
    border-color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-danger {
    color: #ea868f;
    border-color: #ea868f;
}

[data-bs-theme="dark"] .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-link {
    color: #6ea8fe;
}

/* Navbar */
[data-bs-theme="dark"] .navbar {
    background-color: #2c3034 !important;
    border-bottom: 1px solid #495057;
}

[data-bs-theme="dark"] .navbar .btn-link {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .navbar svg,
[data-bs-theme="dark"] .navbar path {
    fill: #f8f9fa !important;
    stroke: #f8f9fa !important;
}

/* Sidebar/Offcanvas */
[data-bs-theme="dark"] .offcanvas {
    background-color: #2c3034;
    color: #e9ecef;
}

[data-bs-theme="dark"] .offcanvas-header {
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .offcanvas-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* List Groups */
[data-bs-theme="dark"] .list-group-item {
    background-color: #2c3034;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .list-group-item-action:hover {
    background-color: #3a3f44;
    color: #f8f9fa;
}

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

/* Alerts */
[data-bs-theme="dark"] .alert-success {
    background-color: #1f3e2c;
    border-color: #28623c;
    color: #8fd19e;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #3e1f1f;
    border-color: #622828;
    color: #ea868f;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #1f2d3e;
    border-color: #284862;
    color: #6ea8fe;
}

/* Invalid feedback */
[data-bs-theme="dark"] .invalid-feedback {
    color: #ea868f;
}

[data-bs-theme="dark"] .is-invalid {
    border-color: #dc3545 !important;
}

/* Links */
[data-bs-theme="dark"] a {
    color: #ffffff;
}

[data-bs-theme="dark"] a:hover {
    color: #9ec5fe;
}

/* Toast notifications */
[data-bs-theme="dark"] .toast {
    background-color: #2c3034;
    color: #e9ecef;
}

/* Card hover effects */
[data-bs-theme="dark"] .card-enabled:hover {
    background-color: #3a3f44;
}

[data-bs-theme="dark"] .card-disabled {
    opacity: 0.4;
}

/* Override bg-white in dark mode */
[data-bs-theme="dark"] .bg-white {
    background-color: #2c3034 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2c3034 !important;
}

[data-bs-theme="dark"] .card-footer {
    background-color: #2c3034 !important;
    border-top-color: #495057;
}

/* Global Loading Overlay */
[data-bs-theme="dark"] #global-loader {
    background-color: rgba(0, 0, 0, 0.3);
}
