.nav-link.active {
    color: white !important;
    background-color: #b9a24d !important;
}
body {
    font-family: "El Messiri", Sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    min-height: 100vh;
    height: auto !important;
    overflow-y: auto;
    margin-bottom: 0 !important;
}
.goldcolor {
    background-color: #b9a24d !important;
}
.bold {
    font-weight: bolder !important;
}
.textgoldcolor {
    color: #b9a24d !important;
}
/* .gradient-header duplicate removed; canonical rule appears later */
.avatar {
    height: 48px;
    width: 48px;
    object-fit: cover;
}
.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.table-nowrap td,
.table-nowrap th {
    white-space: nowrap;
}
.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    z-index: 50;
}
.gradient-header {
    background: linear-gradient(135deg, #b9a24d, #d4b870);
    color: white !important;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.card-header {
    border-bottom: none;
}
.table thead th {
    white-space: nowrap;
}

.btn-warning:hover {
    background-color: #a38d3f;
}

.btn-warning {
    background-color: #b9a24d;
    border: none;
}

.note-editor.note-frame {
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    box-shadow: none;
}
.text-g {
    color: #b9a24d;
}
.table-hover tbody tr:hover {
    background-color: #fff8e1;
}

.badge {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 8px;
}

.mobile-center-text {
    display: none;
}

.attendance-option {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
    user-select: none;
}

.option-1.active {
    background-color: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.option-2.active {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.option-3.active {
    background-color: #ffc107 !important;
    color: #000 !important;
    border-color: #ffc107 !important;
}

.option-4.active {
    background-color: #6f42c1 !important;
    color: #fff !important;
    border-color: #6f42c1 !important;
}

.option-5.active {
    background-color: #fd7e14 !important;
    color: #fff !important;
    border-color: #fd7e14 !important;
}

.attendance-option:hover {
    background-color: #f1f3f5;
}

.list-group-item {
    transition: background 0.2s ease;
}

.list-group-item:hover {
    background-color: #eef4ff;
}

.saving-indicator::after {
    content: " ";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.35em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    body {
        margin-bottom: 9dvh !important;
    }
    .mobile-center-text {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: bold;
        font-size: 22px;
        color: #b9a24d;
        letter-spacing: 1px;
    }
    #AddFeesModal .modal-dialog {
        max-height: 100vh;
        margin: 1rem auto;
    }

    #AddFeesModal .modal-body {
        overflow-y: auto;
        max-height: 70vh;
    }
}
@media (hover: none) {
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
}
