body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #6e707e;
    background-color: #f8f9fc;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.form-control, .form-select {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-warning {
    background-color: #f6c23e;
    border-color: #f6c23e;
}

.btn-danger {
    background-color: #e74a3b;
    border-color: #e74a3b;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    background-color: #4e73df;
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Button styles */
.anggota-btn {
    background-color: #1cc88a;
    border-color: #1cc88a;
    color: white;
}

.anggota-btn:hover {
    background-color: #17a673;
    border-color: #17a673;
    color: white;
}

/* Table in modal */
#anggotaTable {
    font-size: 0.9rem;
}

#anggotaTable th {
    background-color: #f8f9fc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form tambah siswa */
#formTambahSiswa {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* Filter Section */
#dataCounter {
    font-size: 0.85rem;
    font-style: italic;
}

/* Badge styles */
.badge.bg-success {
    background-color: #1cc88a !important;
}

.badge.bg-info {
    background-color: #36b9cc !important;
}

/* Filter form select */
#filterJenisRombel:focus,
#filterTingkat:focus,
#filterJurusan:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Button filter */
#applyFilter {
    background-color: #4e73df;
    border-color: #4e73df;
}

#applyFilter:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

#resetFilter:hover {
    background-color: #eaecf4;
    border-color: #d1d3e2;
}

/* Responsive filter */
@media (max-width: 768px) {
    .filter-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    #applyFilter, #resetFilter {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Pencarian mata pelajaran */
#searchResults {
    z-index: 1000;
    position: relative;
}

#mapelResultsList .list-group-item:hover {
    background-color: #f8f9fa;
}

#mapelResultsList .list-group-item.active {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Selected mapel info */
#selectedMapelInfo {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Search input group */
.input-group .btn-outline-secondary:hover {
    background-color: #e74a3b;
    border-color: #e74a3b;
    color: white;
}

/* Badge styles untuk kelompok */
.badge.bg-primary {
    background-color: #4e73df !important;
}

.badge.bg-success {
    background-color: #1cc88a !important;
}

/* Form validation */
.is-invalid {
    border-color: #e74a3b !important;
}

.invalid-feedback {
    display: block;
    color: #e74a3b;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mapelResultsList {
        max-height: 150px;
    }
    
    .input-group {
        flex-wrap: nowrap;
    }
}
/* Multi-select styles */
.table-success {
    background-color: #d1e7dd !important;
}

.table-success:hover {
    background-color: #c3dfd1 !important;
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

.form-check-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Selected counter */
#selectedCounter {
    background-color: #e7f1ff;
    border-color: #d1e3ff;
    color: #0d6efd;
}

/* Button groups */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Pagination */
#siswaPagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge variations */
.badge.bg-primary { background-color: #4e73df !important; }
.badge.bg-success { background-color: #1cc88a !important; }
.badge.bg-danger { background-color: #e74a3b !important; }
.badge.bg-warning { 
    background-color: #f6c23e !important; 
    color: #000 !important;
}
.badge.bg-secondary { background-color: #858796 !important; }
.badge.bg-info { background-color: #36b9cc !important; }

/* Filter section */
.card .card-body {
    padding: 1rem;
}

/* Responsive table */
@media (max-width: 768px) {
    #siswaResultsTable {
        font-size: 0.8rem;
    }
    
    #siswaResultsTable th,
    #siswaResultsTable td {
        padding: 0.3rem;
    }
    
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* Loading spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Ekstrakurikuler styles */
.nav-tabs .nav-link {
    color: #6e707e;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #4e73df;
    font-weight: 600;
    border-bottom: 3px solid #4e73df;
}

/* Badge for ekstrakurikuler */
.badge.bg-success {
    background-color: #1cc88a !important;
}

.badge.bg-warning {
    background-color: #f6c23e !important;
    color: #000 !important;
}

/* Ekskul table */
#ekskulTable th {
    background-color: #f8f9fc;
    font-weight: 600;
    color: #6e707e;
}

/* Modal for ekskul */
#anggotaEkskulModal .modal-xl {
    max-width: 1200px;
}

/* Tab in modal */
#ekskulTab .nav-link {
    font-size: 0.9rem;
}

/* Button styles */
.btn-outline-info {
    color: #36b9cc;
    border-color: #36b9cc;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
}