/* ====================================================
   SCHOOL LEDGER - PROFESSIONAL LIGHT THEME
   ==================================================== */

/* ----- GLOBAL ----- */
body {
    background: #f4f6f9 !important;
    color: #212529 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ----- SIDEBAR ----- */
.sidebar {
    background: linear-gradient(180deg, #1a237e 0%, #0d1445 100%) !important;
    border-right: none !important;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 3px solid #667eea !important;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

.sidebar h5 {
    color: #fff !important;
}

/* ----- MAIN CONTENT ----- */
.main-content,
.col-md-9.ms-sm-auto,
.col-lg-10.px-md-4 {
    background: #f4f6f9 !important;
}

/* ----- CARDS ----- */
.card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #212529 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.card-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #212529 !important;
}

.card-body {
    background: #ffffff !important;
    color: #212529 !important;
}

.card .card-body .display-6 {
    font-size: 2rem;
}

/* ----- TABLES ----- */
.table {
    color: #212529 !important;
}

.table thead th {
    background: #f8f9fa !important;
    color: #212529 !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.table tbody td {
    border-bottom: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.table tbody tr {
    background: #ffffff !important;
}

.table tbody tr:hover {
    background: #f1f3f5 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #f8f9fa !important;
}

/* ----- ACTION BUTTONS ----- */
.table td .btn {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    transition: all 0.2s;
}

.table td .btn:hover {
    background: #e9ecef !important;
}

.table td .btn i {
    color: #212529 !important;
}

.table td .btn-primary i {
    color: #667eea !important;
}

.table td .btn-danger i {
    color: #dc3545 !important;
}

.table td .btn-success i {
    color: #28a745 !important;
}

.table td .btn-warning i {
    color: #ffc107 !important;
}

/* ----- FORMS ----- */
.form-control,
.form-select {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
    border-radius: 0.375rem !important;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    color: #212529 !important;
}

.form-control::placeholder {
    color: #6c757d !important;
}

.input-group-text {
    background: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

/* ----- BUTTONS ----- */
.btn-primary {
    background: #667eea !important;
    border-color: #667eea !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #5a6fd6 !important;
    border-color: #5a6fd6 !important;
}

.btn-secondary {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

.btn-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.btn-success:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

.btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

.btn-warning {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-warning:hover {
    background: #e0a800 !important;
    border-color: #e0a800 !important;
}

/* ----- ALERTS ----- */
.alert-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.alert-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.alert-warning {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba !important;
}

.alert-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

/* ----- HEADINGS ----- */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    color: #212529 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ----- BORDERS ----- */
.border-bottom {
    border-bottom-color: #dee2e6 !important;
}

.border-top {
    border-top-color: #dee2e6 !important;
}

.border {
    border-color: #dee2e6 !important;
}

/* ----- DROPDOWNS ----- */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

.dropdown-item {
    color: #212529 !important;
}

.dropdown-item:hover {
    background: #f1f3f5 !important;
    color: #212529 !important;
}

/* ----- PAGINATION ----- */
.pagination .page-link {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.pagination .page-link:hover {
    background: #f1f3f5 !important;
}

.pagination .page-item.active .page-link {
    background: #667eea !important;
    border-color: #667eea !important;
    color: #fff !important;
}

/* ----- MODAL ----- */
.modal-content {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.modal-header {
    border-bottom: 1px solid #dee2e6 !important;
}

.modal-footer {
    border-top: 1px solid #dee2e6 !important;
}

.modal-title {
    color: #212529 !important;
}

.btn-close {
    filter: none !important;
}

/* ----- LINKS ----- */
a:not(.btn) {
    color: #667eea !important;
}

a:not(.btn):hover {
    color: #5a6fd6 !important;
}

/* ----- BADGES ----- */
.badge {
    padding: 5px 12px !important;
    border-radius: 20px !important;
}

.badge-success {
    background: #28a745 !important;
    color: #fff !important;
}

.badge-danger {
    background: #dc3545 !important;
    color: #fff !important;
}

.badge-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.badge-info {
    background: #17a2b8 !important;
    color: #fff !important;
}

.badge-secondary {
    background: #6c757d !important;
    color: #fff !important;
}

/* ----- TABS ----- */
.nav-tabs .nav-link {
    color: #212529 !important;
}

.nav-tabs .nav-link.active {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    border-bottom-color: #ffffff !important;
    color: #212529 !important;
}

.nav-tabs {
    border-bottom-color: #dee2e6 !important;
}

/* ----- PROGRESS ----- */
.progress {
    background: #e9ecef !important;
}

.progress-bar {
    background: #667eea !important;
}

/* ----- LIST GROUP ----- */
.list-group-item {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

.list-group-item:hover {
    background: #f1f3f5 !important;
}

/* ----- VOUCHER LINES ----- */
.voucher-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.voucher-line input,
.voucher-line .form-control {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

.voucher-line input:hover,
.voucher-line .form-control:hover {
    background-color: #f8f9fa !important;
    border-color: #667eea !important;
}

/* ----- TABLE ROWS ----- */
.total-row {
    background-color: #f8f9fa !important;
    font-weight: bold;
}

.table-success {
    background-color: #d4edda !important;
}

.table-success td {
    color: #155724 !important;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aab4;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: relative;
    }
}