/* Additional custom styles — Munya white / blue / yellow theme */

.modal {
    backdrop-filter: blur(4px);
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-button.active {
    background-color: rgb(219 234 254);
    color: rgb(29 78 216);
    border-right: 3px solid rgb(234 179 8);
}

.report-type-card.active {
    border-color: rgb(37 99 235);
    background-color: rgb(239 246 255);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.status-active {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.status-inactive {
    background-color: rgb(254 226 226);
    color: rgb(153 27 27);
}

.status-valid {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.status-expiring {
    background-color: rgb(254 240 138);
    color: rgb(146 64 14);
}

.status-expired {
    background-color: rgb(254 226 226);
    color: rgb(153 27 27);
}

.status-present {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.status-late {
    background-color: rgb(254 240 138);
    color: rgb(146 64 14);
}

.status-absent {
    background-color: rgb(254 226 226);
    color: rgb(153 27 27);
}

.status-leave {
    background-color: rgb(219 234 254);
    color: rgb(30 64 175);
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-1.md\\:grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4,
    .grid-cols-1.md\\:grid-cols-5 {
        grid-template-columns: 1fr;
    }
}
