/* ============================================
   HEADER THEMES - Different colors for user roles
   Add class to body tag to activate theme
   ============================================ */

/* --------------------------------------------
   ORANGE THEME - Default/Guest/Free Client
   -------------------------------------------- */
.header-orange header {
    background: #FF8C00;
}
.header-orange .hamburger-btn {
    background: white;
    color: #FF8C00;
}
.header-orange .hamburger-btn:hover {
    background: #00a651;
    color: white;
}
.header-orange .menu-center h1 {
    color: white;
}
.header-orange .menu-right nav a {
    background: white;
    color: #333;
}
.header-orange .menu-right nav a:hover {
    background: #00a651;
    color: white;
}
.header-orange .dropdown-menu a i {
    color: #FF8C00;
}
.header-orange .dropdown-menu a:hover {
    background: #FFF3E0;
    color: #FF8C00;
}

/* --------------------------------------------
   GREEN THEME - Free Customer / Signed Contract
   -------------------------------------------- */
.header-green header {
    background: #00a651;
}
.header-green .hamburger-btn {
    background: white;
    color: #00a651;
}
.header-green .hamburger-btn:hover {
    background: #008040;
    color: white;
}
.header-green .menu-center h1 {
    color: white;
}
.header-green .menu-right nav a {
    background: white;
    color: #333;
}
.header-green .menu-right nav a:hover {
    background: #008040;
    color: white;
}
.header-green .dropdown-menu a i {
    color: #00a651;
}
.header-green .dropdown-menu a:hover {
    background: #e8f5e9;
    color: #00a651;
}

/* --------------------------------------------
   GOLD THEME - Premium Customer
   -------------------------------------------- */
.header-gold header {
    background: #D4AF37;
}
.header-gold .hamburger-btn {
    background: white;
    color: #D4AF37;
}
.header-gold .hamburger-btn:hover {
    background: #B8960C;
    color: white;
}
.header-gold .menu-center h1 {
    color: #1a1a2e;
}
.header-gold .menu-right nav a {
    background: white;
    color: #333;
}
.header-gold .menu-right nav a:hover {
    background: #B8960C;
    color: white;
}
.header-gold .dropdown-menu a i {
    color: #D4AF37;
}
.header-gold .dropdown-menu a:hover {
    background: #fef8e0;
    color: #D4AF37;
}

/* --------------------------------------------
   BLUE THEME - Free Trade
   -------------------------------------------- */
.header-blue header {
    background: #2196F3;
}
.header-blue .hamburger-btn {
    background: white;
    color: #2196F3;
}
.header-blue .hamburger-btn:hover {
    background: #1976D2;
    color: white;
}
.header-blue .menu-center h1 {
    color: white;
}
.header-blue .menu-right nav a {
    background: white;
    color: #333;
}
.header-blue .menu-right nav a:hover {
    background: #1976D2;
    color: white;
}
.header-blue .dropdown-menu a i {
    color: #2196F3;
}
.header-blue .dropdown-menu a:hover {
    background: #e3f2fd;
    color: #2196F3;
}

/* --------------------------------------------
   RED THEME - Paid Trade
   -------------------------------------------- */
.header-red header {
    background: #DC3545;
}
.header-red .hamburger-btn {
    background: white;
    color: #DC3545;
}
.header-red .hamburger-btn:hover {
    background: #C82333;
    color: white;
}
.header-red .menu-center h1 {
    color: white;
}
.header-red .menu-right nav a {
    background: white;
    color: #333;
}
.header-red .menu-right nav a:hover {
    background: #C82333;
    color: white;
}
.header-red .dropdown-menu a i {
    color: #DC3545;
}
.header-red .dropdown-menu a:hover {
    background: #fbe9eb;
    color: #DC3545;
}

/* --------------------------------------------
   BLACK THEME - Admin
   -------------------------------------------- */
.header-black header {
    background: #1a1a2e;
}
.header-black .hamburger-btn {
    background: white;
    color: #1a1a2e;
}
.header-black .hamburger-btn:hover {
    background: #333;
    color: white;
}
.header-black .menu-center h1 {
    color: white;
}
.header-black .menu-right nav a {
    background: white;
    color: #333;
}
.header-black .menu-right nav a:hover {
    background: #333;
    color: white;
}
.header-black .dropdown-menu a i {
    color: #1a1a2e;
}
.header-black .dropdown-menu a:hover {
    background: #e8e8f0;
    color: #1a1a2e;
}
/* ============================================
   OVERRIDE FOR DROPDOWN IN ALL THEMES
   ============================================ */

/* Force dropdown to be above everything for ALL themes */
.header-orange .dropdown-menu,
.header-green .dropdown-menu,
.header-gold .dropdown-menu,
.header-blue .dropdown-menu,
.header-red .dropdown-menu,
.header-black .dropdown-menu {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 320px !important;
    max-width: 90% !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    z-index: 9999999 !important;
    display: none !important;
}

.header-orange .dropdown-menu.show,
.header-green .dropdown-menu.show,
.header-gold .dropdown-menu.show,
.header-blue .dropdown-menu.show,
.header-red .dropdown-menu.show,
.header-black .dropdown-menu.show {
    display: block !important;
}

/* Make sure all headers overflow visible */
.header-orange header,
.header-green header,
.header-gold header,
.header-blue header,
.header-red header,
.header-black header {
    overflow: visible !important;
}

/* Mobile fix for all themes */
@media (max-width: 768px) {
    .header-orange .dropdown-menu,
    .header-green .dropdown-menu,
    .header-gold .dropdown-menu,
    .header-blue .dropdown-menu,
    .header-red .dropdown-menu,
    .header-black .dropdown-menu {
        top: 70px !important;
    }
    
    .header-orange .menu-right,
    .header-green .menu-right,
    .header-gold .menu-right,
    .header-blue .menu-right,
    .header-red .menu-right,
    .header-black .menu-right {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}
/* ============================================
   MOBILE FIX: Vertical navigation for ALL THEMES
   ============================================ */

@media (max-width: 768px) {
    .header-orange .menu-right,
    .header-green .menu-right,
    .header-gold .menu-right,
    .header-blue .menu-right,
    .header-red .menu-right,
    .header-black .menu-right {
        width: 100% !important;
        overflow-x: visible !important;
    }
    
    .header-orange .menu-right nav,
    .header-green .menu-right nav,
    .header-gold .menu-right nav,
    .header-blue .menu-right nav,
    .header-red .menu-right nav,
    .header-black .menu-right nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    .header-orange .menu-right nav a,
    .header-green .menu-right nav a,
    .header-gold .menu-right nav a,
    .header-blue .menu-right nav a,
    .header-red .menu-right nav a,
    .header-black .menu-right nav a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}