/**
 * Premium Header Styles
 * Uses unified design system from admin-commons.css
 */

/* Import Unified Design System */
@import url('admin-commons.css');

/* ==========================================================================
   PAGE-SPECIFIC OVERRIDES
   ========================================================================== */

/* Premium Navbar */
.premium-navbar {
    background: linear-gradient(135deg, var(--royal-blue) 20%, var(--royal-blue-light) 100%);
    box-shadow: var(--admin-shadow-lg);
    padding: 16px 0;
    border-bottom: 4px solid var(--primary-gold);
}

/* Navbar Brand Premium */
.navbar-brand-premium {
    display: flex;
    align-items: center;
    gap: var(--admin-space-3);
    text-decoration: none;
}

/* Brand Logo Image */
.brand-logo-img {
    height: 80px;
    padding: 5px;
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow-md);
    transition: transform var(--admin-transition-slow);
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

/* Brand Text Premium */
.brand-text-premium {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: var(--admin-font-size-xl);
    font-weight: 700;
    color: var(--admin-white);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: var(--admin-font-size-xs);
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--admin-space-4);
}

/* Nav Button */
.nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--admin-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--admin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--admin-transition-base);
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    margin: 4px 0;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn.logout {
    border-color: rgba(230, 55, 87, 0.6);
    background: rgba(230, 55, 87, 0.3);
}

.nav-btn.logout:hover {
    background: rgba(230, 55, 87, 0.5);
    border-color: rgba(230, 55, 87, 0.9);
}

/* User Info Premium */
.user-info-premium {
    display: flex;
    align-items: center;
    gap: var(--admin-space-3);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--admin-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* User Avatar Nav */
.user-avatar-nav {
    width: 36px;
    height: 36px;
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--admin-white);
    flex-shrink: 0;
}

/* User Text Nav */
.user-text-nav {
    display: flex;
    flex-direction: column;
}

.user-name-nav {
    font-size: var(--admin-font-size-sm);
    font-weight: 600;
    color: var(--admin-white);
}

.user-role-nav {
    font-size: var(--admin-font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

/* ==========================================================================
   NOTIFICATION SYSTEM STYLES
   ========================================================================== */

/* CSS Custom Properties for Notifications */
:root {
    --notification-primary: #0056b3;
    --notification-primary-light: #e7f1ff;
    --notification-success: #28a745;
    --notification-warning: #ffc107;
    --notification-danger: #dc3545;
    --notification-info: #17a2b8;
    --notification-transition: 0.3s ease;
}

/* Notification Container */
.notification-container {
    position: relative;
}

/* Notification Button with Badge */
.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--admin-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--admin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--admin-transition-base);
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    margin: 4px 0;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.notification-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

/* Pulsing Glow Animation for Unread Notifications */
.notification-btn.has-unread {
    animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--notification-danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
    transform: scale(0);
    transition: transform var(--notification-transition);
}

.notification-badge.show {
    transform: scale(1);
}

.notification-badge:empty,
.notification-badge[data-count="0"] {
    display: none;
}

/* Notification Sidebar/Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right var(--notification-transition);
    display: flex;
    flex-direction: column;
}

.notification-panel.open {
    right: 0;
}

/* Panel Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--notification-transition), visibility var(--notification-transition);
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Panel Header */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, var(--royal-blue) 20%, var(--royal-blue-light) 100%);
    color: white;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.notification-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mark-all-read-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--notification-transition);
}

.mark-all-read-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--notification-transition);
}

.close-notification:hover {
    opacity: 1;
}

/* Notification List */
.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Individual Notification Item */
.notification-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color var(--notification-transition);
}

.notification-item:hover {
    background-color: var(--notification-primary-light);
}

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 3px solid var(--notification-primary);
}

.notification-item.unread:hover {
    background-color: var(--notification-primary-light);
}

/* Notification Content Wrapper */
.notification-content {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    gap: 12px;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notification-icon.application {
    background: #e7f1ff;
    color: var(--notification-primary);
}

.notification-icon.review {
    background: #fff3cd;
    color: #856404;
}

.notification-icon.meeting {
    background: #d4edda;
    color: var(--notification-success);
}

.notification-icon.system {
    background: #f8d7da;
    color: var(--notification-danger);
}

/* Notification Text Content */
.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

/* Expandable Notification Details */
.notification-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--notification-transition);
    background: #f1f3f4;
}

.notification-details.show {
    max-height: 500px;
}

.notification-details-content {
    padding: 16px 20px 16px 72px;
}

.notification-details p {
    margin: 0 0 10px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-btn-action {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all var(--notification-transition);
}

.notification-btn-action.primary {
    background: var(--notification-primary);
    color: white;
}

.notification-btn-action.primary:hover {
    background: #004494;
}

.notification-btn-action.secondary {
    background: #e9ecef;
    color: #333;
}

.notification-btn-action.secondary:hover {
    background: #dee2e6;
}

/* Unread Indicator */
.unread-indicator {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--notification-primary);
    border-radius: 50%;
    margin-top: 6px;
}

/* Empty State */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.notification-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty-text {
    font-size: 14px;
    text-align: center;
}

/* Panel Footer */
.notification-footer {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.view-all-notifications {
    display: inline-block;
    padding: 10px 24px;
    background: var(--notification-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background var(--notification-transition);
}

.view-all-notifications:hover {
    background: #004494;
    color: white;
}

/* Responsive Design */
@media (max-width: 991px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
    
    .notification-panel.open {
        right: 0;
    }
    
    .notification-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.35rem;
        padding: 10px;
    }
    
    .notification-badge {
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .notification-header {
        padding: 16px;
    }
    
    .notification-header h3 {
        font-size: 1.1rem;
    }
    
    .notification-content {
        padding: 12px 16px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }
    
    .notification-details-content {
        padding: 12px 16px 12px 60px;
    }
    
    .mark-all-read-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Sidebar Toggle */
.sidebar-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--admin-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--admin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--admin-transition-base);
    cursor: pointer;
    padding: 8px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

/* Mobile Sidebar Toggle (used in header.php) */
.mobile-sidebar-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--admin-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--admin-white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--admin-transition-base);
    cursor: pointer;
    padding: 8px;
}

.mobile-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.mobile-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Session Timer */
#session-timer {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--admin-white);
    transition: color var(--admin-transition-base);
}

#session-timer.text-warning {
    color: var(--admin-accent) !important;
}

#session-timer.text-danger {
    color: var(--admin-danger) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .brand-logo-img {
        height: 50px;
    }

    .brand-title {
        font-size: var(--admin-font-size-lg);
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .premium-navbar {
        padding: 12px 0;
    }

    .mobile-sidebar-toggle{
        display: flex;
    }

    /* Mobile nav-actions improvements */
    .nav-actions {
        gap: var(--admin-space-3);
        padding: 8px 0;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.35rem;
        padding: 10px;
        margin: 2px;
        border-width: 2px;
    }

    .user-info-premium {
        padding: 6px 12px;
    }

    .user-avatar-nav {
        width: 32px;
        height: 32px;
    }

    .user-name-nav {
        font-size: var(--admin-font-size-xs);
    }

    .user-role-nav {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .brand-logo-img {
        height: 42px;
    }

    .brand-title {
        font-size: var(--admin-font-size-md);
    }

    .brand-subtitle {
        display: none;
    }

    .premium-navbar {
        padding: 10px 0;
    }

     .mobile-sidebar-toggle{
        display: flex;
    }

    .navbar-brand-premium {
        gap: var(--admin-space-2);
    }

    /* Extra small mobile - larger touch targets */
    .nav-actions {
        gap: var(--admin-space-2);
        float: right;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 1.5rem;
        padding: 12px;
        margin: 4px 2px;
        border-radius: var(--admin-radius-md);
    }

    .mobile-sidebar-toggle {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.35rem;
    }
}
