/* ===== SIMPLE HEADER - NO BOOTSTRAP ===== */

.simple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.simple-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* CHANGED: Space between left and right */
    height: 100%;
    padding: 0 1rem;
    max-width: 100%;
}

/* Brand */
.simple-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.simple-logo {
    width: 50px;
    height: 50px; /* CHANGED: Match container height */
    object-fit: contain;
}

.simple-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.simple-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1B8F45;
    line-height: 1.3;
    white-space: nowrap;
}

.simple-brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
}

/* Right Navigation */
.simple-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%; /* ADDED: Match container height */
}

/* Button */
.simple-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1B8F45;
    color: white;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    height: 40px; /* ADDED: Fixed height */
}

.simple-btn:hover {
    background: #156b35;
}

/* Dropdown */
.simple-dropdown {
    position: relative;
    height: 100%; /* ADDED */
    display: flex;
    align-items: center;
}

.simple-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    height: 40px; /* ADDED: Match button height */
    white-space: nowrap;
}

.simple-user-btn:hover {
    background: #e2e8f0;
}

.simple-user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simple-arrow {
    font-size: 0.75rem;
}

/* Language Toggle - Same height as user button */
.language-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    height: 40px !important; /* ADDED: Match other buttons */
    white-space: nowrap !important;
}

.language-toggle:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.language-toggle .language-text {
    display: inline-block !important;
}

.language-toggle .flag-icon {
    display: inline-flex !important;
    align-items: center !important;
}

.language-toggle .fa-chevron-down {
    font-size: 0.75rem !important;
}

.simple-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.simple-dropdown-menu.show {
    display: block;
}

.simple-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
}

.simple-dropdown-item:hover {
    background: #f1f5f9;
}

/* Dropdown divider */
.simple-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* Language Menu */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 160px;
    display: none;
    z-index: 1001;
    padding: 0.5rem 0;
}

.language-menu.show {
    display: block !important;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-option:hover {
    background: #f1f5f9;
}

/* Main content spacing */
body {
    padding-top: 80px; /* Desktop: 60px header + 20px gap */
}

.main-content {
    padding-top: 0 !important; /* Remove any extra padding */
}

/* Responsive - Adjust spacing for mobile */
@media (max-width: 768px) {
    .simple-header {
        display: block !important; /* FORCE show header */
        position: fixed !important;
        top: 0 !important;
        visibility: visible !important;
    }
    
    .simple-container {
        padding: 0 0.5rem;
    }
    
    .simple-logo {
        width: 40px;
        height: 40px;
    }
    
    .simple-brand-text {
        display: flex !important; /* SHOW text on mobile */
    }
    
    .simple-brand-name {
        font-size: 0.75rem;
    }
    
    .simple-brand-subtitle {
        font-size: 0.6rem;
    }
    
    .simple-nav {
        gap: 0.5rem;
    }
    
    /* Mobile: Hide text, show only icons */
    .simple-btn span,
    .simple-user-btn .simple-user-name,
    .language-toggle .language-text {
        display: none !important;
    }
    
    .simple-btn,
    .simple-user-btn,
    .language-toggle {
        padding: 0.4rem 0.6rem !important;
        font-size: 1rem !important; /* Larger icon */
        height: 36px !important;
        min-width: 36px !important; /* Square button */
    }
    
    .simple-btn i,
    .simple-user-btn i {
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .simple-header {
        display: block !important; /* FORCE show header */
    }
    
    .simple-container {
        padding: 0 0.25rem;
        gap: 0.25rem;
    }
    
    .simple-logo {
        width: 35px;
        height: 35px;
    }
    
    .simple-brand-name {
        font-size: 0.7rem;
    }
    
    .simple-brand-subtitle {
        font-size: 0.55rem;
    }
    
    .simple-nav {
        gap: 0.25rem;
    }
    
    .simple-btn,
    .simple-user-btn,
    .language-toggle {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.9rem !important;
        height: 32px !important;
        min-width: 32px !important;
    }
}

/* FORCE body padding for header space */
html body {
    padding-top: 80px !important;
}

/* ===== FIX TEXT-TRANSFORM - T?T UPPERCASE ===== */
.simple-user-btn,
.simple-user-name,
.simple-dropdown-item,
.simple-btn {
    text-transform: none !important;
}
