/* ============================================
   ENHANCED NAVBAR - System Indicators
   ============================================ */

/* Sticky Navbar Enhancement */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(0, 191, 255, 0.2);
}

/* System Indicators Container */
.system-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 15px;
}

/* Individual Indicator */
.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
}

.indicator-icon {
    font-size: 14px;
}

.indicator-value {
    font-weight: 600;
}

/* System Health Indicator */
.health-indicator {
    border-color: rgba(0, 255, 136, 0.2);
}

.health-indicator .indicator-icon {
    color: #00ff88;
    animation: pulse 2s ease-in-out infinite;
}

.health-indicator.warning {
    border-color: rgba(255, 191, 0, 0.3);
}

.health-indicator.warning .indicator-icon {
    color: #ffbf00;
}

.health-indicator.critical {
    border-color: rgba(255, 68, 68, 0.3);
}

.health-indicator.critical .indicator-icon {
    color: #ff4444;
    animation: pulse-fast 1s ease-in-out infinite;
}

/* Active Scans Indicator */
.scans-indicator {
    border-color: rgba(0, 191, 255, 0.2);
}

.scans-indicator .indicator-icon {
    color: #00bfff;
    animation: spin 3s linear infinite;
}

.scans-indicator.active {
    background: rgba(0, 191, 255, 0.1);
}

/* Threat Level Indicator */
.threat-indicator {
    border-color: rgba(0, 255, 136, 0.2);
}

.threat-indicator .indicator-icon {
    color: #00ff88;
}

.threat-indicator.medium {
    border-color: rgba(255, 191, 0, 0.3);
}

.threat-indicator.medium .indicator-icon {
    color: #ffbf00;
}

.threat-indicator.high {
    border-color: rgba(255, 68, 68, 0.3);
    animation: glow-red 2s ease-in-out infinite;
}

.threat-indicator.high .indicator-icon {
    color: #ff4444;
}

/* Notifications Indicator */
.notifications-indicator {
    position: relative;
}

.notifications-indicator .indicator-icon {
    color: #8a2be2;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(10, 14, 39, 0.9);
    animation: bounce 2s ease-in-out infinite;
}

/* API Status Indicator */
.api-indicator {
    border-color: rgba(138, 43, 226, 0.2);
}

.api-indicator .indicator-icon {
    color: #8a2be2;
}

.api-indicator.offline {
    border-color: rgba(255, 68, 68, 0.3);
}

.api-indicator.offline .indicator-icon {
    color: #ff4444;
}

/* Help/Docs Indicator */
.help-indicator {
    border-color: rgba(255, 255, 255, 0.1);
}

.help-indicator .indicator-icon {
    color: rgba(255, 255, 255, 0.6);
}

.help-indicator:hover .indicator-icon {
    color: #00bfff;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes pulse-fast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes glow-red {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.6); }
}

/* Guest Restriction Banner */
.guest-restriction-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.15), rgba(255, 68, 68, 0.15));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 191, 0, 0.3);
    padding: 12px 30px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: slideDown 0.5s ease;
}

.guest-restriction-banner.show {
    display: flex;
}

.restriction-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.restriction-icon {
    font-size: 20px;
    color: #ffbf00;
}

.restriction-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.restriction-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.restriction-action {
    display: flex;
    gap: 10px;
}

.btn-restriction-signin {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00bfff, #8a2be2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restriction-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

/* Guest Overlay on Cards */
.guest-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.guest-overlay-content {
    text-align: center;
    padding: 30px;
}

.guest-overlay-content i {
    font-size: 48px;
    color: #ffbf00;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.guest-overlay-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.guest-overlay-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.btn-overlay-signin {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00bfff, #8a2be2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-overlay-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .system-indicators {
        gap: 8px;
    }
    
    .indicator {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .indicator-value {
        display: none;
    }
}

@media (max-width: 768px) {
    .system-indicators {
        display: none;
    }
    
    .guest-restriction-banner {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
