/* Header Component Styles — extracted from backend/includes/header.php */

/* Global Page Navigation Loading Overlay - Covers only main content area */
.main-content-wrapper {
    position: relative;
}
#globalPageLoadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex; /* Show by default on page load */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-down {
    animation: slideDown 0.2s ease-out forwards;
}
.nav-center-adaptive {
    display: flex;
}
@media (max-width: 767px) {
    .nav-center-adaptive {
        display: none !important;
    }
}

/* Notification badge blink animation (only used when notification has unread items) */
@keyframes notificationBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}
.notification-badge {
    animation: notificationBlink 1.2s ease-in-out infinite !important;
    will-change: opacity, transform;
}

/* Impersonate user list (only renders for Super Admin) */
.impersonate-user-item {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
#impersonateUserList.loading-active {
    opacity: 0.6;
    pointer-events: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}
