/* Responsive Header Styles */

.responsive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 50%, 
        rgba(51, 65, 85, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 24px;
    height: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Header Sections */
.header-left {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 600px;
    margin: 0 20px; /* Add margin to prevent overlap */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap to save space */
    min-width: 220px; /* Increased min-width for better spacing */
    justify-content: flex-end;
}

/* Logo Section */
.header-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.venue-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.venue-status {
    font-size: 10px;
    color: var(--accent-green);
    font-weight: 500;
}

/* Navigation */
.header-navigation {
    display: flex;
    align-items: center;
}

.tab-navigation-header {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 8px;
    min-width: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tab-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.tab-nav-btn.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.tab-nav-btn i {
    font-size: 14px;
}

.tab-nav-btn span {
    font-weight: 500;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status Section */
.header-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 14px; /* Slightly smaller font */
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px; /* Reduced padding */
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    white-space: nowrap; /* Prevent text wrapping */
}

.status-indicators {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
}

.status-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    transition: all 0.3s ease;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.status-dot.warning {
    background: var(--accent-yellow);
    box-shadow: 0 0 6px var(--accent-yellow);
}

.status-dot.error {
    background: var(--accent-red);
    box-shadow: 0 0 6px var(--accent-red);
}

.status-label {
    font-size: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Actions Section */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 12px;
    font-size: 16px;
    position: relative;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-header {
    padding: 0 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    text-align: left;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.dropdown-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .responsive-header {
        padding: 8px 12px;
        height: 60px;
        gap: 8px; /* Add gap between sections */
    }

    .header-left {
        min-width: auto;
        flex-shrink: 0; /* Prevent shrinking */
    }

    .header-center {
        max-width: none;
        margin: 0 8px; /* Reduced margin for mobile */
        flex-shrink: 1; /* Allow shrinking if needed */
    }

    .header-right {
        min-width: auto;
        gap: 8px; /* Reduced gap for mobile */
        flex-shrink: 0; /* Prevent shrinking */
    }

    .venue-info {
        display: none;
    }

    .logo-text {
        font-size: 16px;
    }

    .time-display {
        font-size: 14px;
        padding: 6px 8px;
    }

    .status-indicators {
        gap: 4px;
        padding: 4px 6px;
    }

    .status-label {
        font-size: 7px;
    }

    .action-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.mobile-menu-btn span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-screen-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 500;
}

.current-screen-indicator i {
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin: 0;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.mobile-nav-item.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
}

.mobile-nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Medium Screen Styles (to prevent overlap) */
@media (min-width: 768px) and (max-width: 1200px) {
    .header-center {
        margin: 0 15px;
        flex-shrink: 1;
    }

    .header-right {
        gap: 12px;
        min-width: 180px;
    }

    .tab-nav-btn {
        min-width: 40px;
        padding: 5px 7px;
    }

    .tab-nav-btn span {
        font-size: 7px;
    }

    .time-display {
        font-size: 13px;
        padding: 5px 8px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .tab-nav-btn {
        min-width: 42px;
        padding: 5px 8px;
    }

    .tab-nav-btn span {
        font-size: 6px;
    }

    .tab-nav-btn i {
        font-size: 12px;
    }

    .header-right {
        gap: 15px;
    }
}
