/* ========================================
   MODERN HEADER STYLES
   ======================================== */

.header-new {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-new .header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 70px;
}

/* ========================================
   LOGO SECTION
   ======================================== */

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: none;
}

/* Dark mode logo toggle */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

/* ========================================
   HEADER NAVIGATION (>= 1440px)
   ======================================== */

.navbar-menu-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 30px;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* FIXED: More space between links */
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 5px; /* FIXED: Reduced horizontal padding */
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

/* FIXED: No background on hover, only color change */
.main-nav .nav-link:hover {
    color: #007bff;
}

/* FIXED: No background on active, only color change */
.main-nav .nav-link.active {
    color: #007bff;
}

/* ========================================
   RIGHT ACTION BUTTONS
   ======================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.navbar-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.navbar-actions .btn i {
    font-size: 18px;
}

.btn-icon {
    padding: 10px 12px;
}

.btn-chat {
    background: #f8f9fa;
    color: #333;
}

.btn-chat:hover {
    background: #e9ecef;
    color: #000;
}

/* ========================================
   RESPONSIVE BREAKPOINTS - FIXED
   ======================================== */

/* Desktop >= 1440px */
@media (min-width: 1440px) {
    /* Show center navigation */
    .navbar-menu-center {
        display: flex !important;
    }
    
    .navbar-brand-wrapper {
        flex: 0 0 auto;
    }
    
    .navbar-actions {
        display: flex;
    }
    
    .theme-dropdown {
        display: block;
    }
    
    .btn-text {
        display: inline;
    }
    
}

/* Tablet 768px - 1439px */
@media (max-width: 1439px) and (min-width: 768px) {
    /* Hide center navigation */
    .navbar-menu-center {
        display: none !important;
    }
    
    /* left logo */
    .navbar-brand-wrapper {
        flex: 1;
        justify-content: left;
    }
    
    .navbar-brand img {
        max-height: 45px;
        justify-content: left;
    }
    
    .navbar-actions {
        display: flex;
    }
    
    .theme-dropdown {
        display: block;
    }
    
    .btn-text {
        display: inline;
    }
    
    .header-nav {
        padding: 12px 15px;
    }


}

/* Mobile < 768px */
@media (max-width: 767px) {
    /* Hide center navigation */
    .navbar-menu-center {
        display: none !important;
    }
    
    /* left logo */
    .navbar-brand-wrapper {
        flex: 1;
        justify-content: left;
    }
    
    .navbar-brand img {
        max-height: 45px;
        justify-content: left;
    }
    
    /* Show action buttons with icons only */
    .navbar-actions {
        gap: 5px;
        flex: 0 0 auto;
        display: flex;
    }
    
    .navbar-actions .btn {
        padding: 10px;
        min-width: 40px;
    }
    
    /* Hide button text, show icons only */
    .btn-text {
        display: none;
    }
    
    .navbar-actions .btn i {
        margin: 0 !important;
    }
}

