/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cards & Components */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.card {
    border-radius: 12px;
}

/* Typography & Tables */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    padding: 1rem 0.75rem;
}

.badge-days {
    font-size: 0.85rem;
    padding: 0.5em 0.7em;
    border-radius: 6px;
    font-weight: 600;
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-sm {
    border-radius: 6px;
}

/* Theme Switching Overrides */
[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.4) !important;
}

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

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: #2c3034;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #212529;
}

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

[data-bs-theme="dark"] .form-control:focus {
    background-color: #2c3034;
    border-color: #86b7fe;
    color: #dee2e6;
}

/* SweetAlert2 Dark Mode Overrides */
[data-bs-theme="dark"] .swal2-popup {
    background-color: #212529;
    color: #dee2e6;
}

[data-bs-theme="dark"] .swal2-title,
[data-bs-theme="dark"] .swal2-html-container {
    color: #dee2e6;
}

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

[data-bs-theme="dark"] .swal2-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .swal2-validation-message {
    background-color: #2c3034;
    color: #dee2e6;
}

/* Custom Scrollbar for aesthetics */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.5);
}
