/* ===================================
   APP HEADER - MINIMAL SAAS STYLE
   =================================== */

.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #F7F7F7;
    border-bottom: 1px solid #E5E7EB;
    z-index: 50;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 100%;
}

/* Header Left - Menu + Search */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 600px;
}

.menu-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    transition: background 0.15s ease;
}

.menu-toggle-btn:hover {
    background: #E5E7EB;
}

.menu-toggle-btn svg {
    display: block;
}

/* Header Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

.header-search .search-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    transition: all 0.15s ease;
}

.header-search .search-input::placeholder {
    color: #9CA3AF;
}

.header-search .search-input:focus {
    outline: none;
    border-color: #5B72F2;
    box-shadow: 0 0 0 3px rgba(91, 114, 242, 0.1);
}

/* Header Right - Icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: #E5E7EB;
}

.header-icon-btn svg {
    display: block;
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border: 2px solid #F7F7F7;
    border-radius: 50%;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    width: auto;
    padding: 0 12px;
    gap: 6px;
}

.lang-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 6px;
    display: none;
    z-index: 100;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: #F3F4F6;
}

.lang-option.active {
    background: #EEF2FF;
    color: #5B72F2;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.2rem;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }

    .header-left {
        max-width: none;
    }

    .header-search {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header-search {
        max-width: 180px;
    }

    .lang-code {
        display: none;
    }
}