/**
 * ================================================================
 * TOPMENU MODERN - HORIZONTAL NAVIGATION PREMIUM REDESIGN
 * ================================================================
 * Design System: Account Management Style v1
 * Premium Version: Matching Sidebar v2 quality
 * Features: Glows, shadows, gradients, animations, themed colors
 * Mobile: Responsive flex layout
 * ================================================================
 */
/* ================================================================
   BASE RESET & NAVIGATION CONTAINER
   ================================================================ */
/* Force modern styles with complete reset */
.content-body nav.top-navigation, nav.top-navigation {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: none !important;
    position: relative !important;
    height: auto !important;
    min-height: 35px !important;
    background-image: none !important;
}

.content-body .navigation-row, .navigation-row {
    all: unset !important;
    display: block !important;
    margin: -32px auto 3px auto !important;
    width: 100% !important;
    background: linear-gradient(135deg, #0f141a 0%, #1a2332 50%, #0f141a 100%) !important;
    border: 1px solid #2a3440 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 255, 170, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

/* Animated background glow effect */
.navigation-row::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.05), transparent) !important;
    animation: slideGlow 8s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes slideGlow {
    0%, 100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* ================================================================
   NAV WRAPPER & SECTIONS
   ================================================================ */
.content-body .top-navigation .nav, .top-navigation .nav {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.content-body .nav-left, .content-body .nav-right, .nav-left, .nav-right {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* ================================================================
   ONLINE STATUS (CENTER ELEMENT)
   ================================================================ */
.content-body .online-status, .online-status {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    margin: 0 16px !important;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%) !important;
    border: 1px solid #2a3440 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    min-width: 120px !important;
}

.content-body .status-online, .content-body .status-offline, .status-online, .status-offline {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.status-online img, .status-offline img {
    all: unset !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.status-online a, .status-offline a {
    all: unset !important;
    color: #e6f8ff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.status-online a {
    color: #00ff76 !important;
    text-shadow: 0 0 8px rgb(0 255 76 / 30%) !important;
}

.status-offline a {
    color: #ff0000 !important;
    text-shadow: 0 0 8px rgb(255 0 21 / 30%) !important;
}

/* Pulsing animation for online status */
.status-online {
    animation: pulseOnline 3s ease-in-out infinite !important;
}

@keyframes pulseOnline {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 255, 170, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(0, 255, 170, 0.3);
    }
}

/* ================================================================
   SOCIAL BUTTONS IN TOP NAVIGATION
   ================================================================ */
.nav-social-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%) !important;
    border: 1px solid #2a3440 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.nav-social-btn img {
    width: 24px !important;
    height: 24px !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
}

.nav-social-btn:hover {
    background: linear-gradient(135deg, #2a3440 0%, #1a2332 100%) !important;
    border-color: #00ffaa !important;
    box-shadow: 0 4px 12px rgba(0, 255, 170, 0.3) !important;
}

.nav-social-btn:hover img {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* ================================================================
   MENU ITEMS - PREMIUM DESIGN WITH THEMED COLORS
   ================================================================ */
.content-body .nav-text, .nav-text {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    text-align: center !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #e6f8ff !important;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%) !important;
    border: 1px solid #2a3440 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Shimmer effect on hover */
.nav-text::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

.nav-text:hover::before {
    left: 100% !important;
}

/* ================================================================
   THEMED COLORS PER MENU ITEM - REMOVED FOR UNIFORM LOOK
   ================================================================ */

/* ================================================================
   HOVER EFFECTS - ALL ITEMS
   ================================================================ */
.nav-text:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.nav-text:active {
    transform: translateY(0) scale(0.98) !important;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
/* Tablets (768px and below) */
@media (max-width: 768px) {
    .content-body .top-navigation .nav, .top-navigation .nav {
        gap: 8px !important;
        padding: 0 12px !important;
    }

    .content-body .nav-left, .content-body .nav-right, .nav-left, .nav-right {
        gap: 4px !important;
    }

    .content-body .nav-text, .nav-text {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        letter-spacing: 0.5px !important;
    }

    .content-body .online-status, .online-status {
        margin: 0 8px !important;
        padding: 6px 12px !important;
        min-width: 100px !important;
    }

    .navigation-row {
        min-height: 35px !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .content-body .top-navigation .nav, .top-navigation .nav {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 12px 8px !important;
    }

    .content-body .nav-left, .content-body .nav-right, .nav-left, .nav-right {
        width: 100% !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .content-body .nav-text, .nav-text {
        padding: 4px 6px !important;
        font-size: 10px !important;
        min-width: 60px !important;
        flex: 1 1 auto !important;
        max-width: 60px !important;
        min-height: 24px !important;
        max-height: 24px !important;
    }

    .content-body .online-status, .online-status {
        width: 100% !important;
        margin: 8px 0 !important;
        padding: 8px 16px !important;
        order: -1 !important;
    }

    .navigation-row {
        min-height: auto !important;
    }

    /* Reduce animations on mobile for performance */
    .nav-text::before, .navigation-row::before {
        display: none !important;
    }

    .nav-text {
        animation: none !important;
    }
}

/* Large screens (1024px and above) */
@media (min-width: 1024px) {
    .content-body .top-navigation .nav, .top-navigation .nav {
        gap: 20px !important;
    }

    .content-body .nav-left, .content-body .nav-right, .nav-left, .nav-right {
        gap: 14px !important;
    }

    .content-body .nav-text, .nav-text {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        min-height: 26px !important;
        max-height: 26px !important;
    }
}

/* ================================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================================ */
.nav-text:focus-visible {
    outline: 2px solid #00ffaa !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    .nav-text, .nav-text::before, .navigation-row::before, .status-online {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-text {
        border-width: 2px !important;
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .navigation-row, .top-navigation, .nav-text {
        box-shadow: none !important;
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

p.online-text {
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-weight: bold;
}
p.offline-text {
    font-size: 14px;
    color: #ff0000 !important;
    text-shadow: 0 0 8px rgb(255 0 21 / 30%) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-weight: bold;
}
