* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    display: inline-block;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.5px;
}

header {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-link:hover,
nav a:hover {
    color: #2563eb;
}

.nav-caret {
    font-size: 0.75rem;
    color: #6b7280;
}

.dropdown-panel,
.jobs-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
     box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    min-width: 240px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.dropdown-panel.show,
.jobs-dropdown-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.jobs-dropdown-panel a {
    display: block;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-panel a:hover,
.jobs-dropdown-panel a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: #f1f5f9;
}



.search-area {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
}

.header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
}

.header-balance span {
    color: #64748b;
    font-size: 0.82rem;
}

.balance-summary-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.search-box {
    width: 380px;
    max-width: 60%;
    height: 48px;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: #444;
    margin: 0 18px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: inherit;
}

.search-type {
    width: 130px;
    border-left: 1px solid #d8d8d8;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
}

.right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.right button {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right svg {
    width: 24px;
    height: 24px;
    color: #222;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notification badge */
.header-action-item .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* User Profile Dropdown */
.header-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--light);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.header-user-menu:hover {
    background: var(--border);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.header-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.header-user-menu svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.dropdown-menu-item:last-child {
    border-bottom: none;
}

.dropdown-menu-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-menu-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.dropdown-menu-item:hover svg {
    color: var(--primary);
}

.dropdown-menu-item.logout {
    color: var(--danger);
}

.dropdown-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-menu-item.logout svg {
    color: var(--danger);
}


/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 24px;
        gap: 16px;
    }

    .header-nav {
        gap: 20px;
    }

    .header-search {
        min-width: 160px;
        flex: 0.3;
    }

    .header-nav-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
        padding: 0 16px;
        gap: 12px;
    }

    .header-logo {
        min-width: 140px;
        font-size: 1rem;
        gap: 8px;
    }

    .header-logo img {
        width: 28px;
        height: 28px;
    }

    .header-nav {
        display: none;
    }

    .header-search {
        flex: 1;
        min-width: auto;
    }

    .header-actions {
        gap: 12px;
    }

    .header-action-item {
        width: 36px;
        height: 36px;
    }

    .header-action-item svg {
        width: 18px;
        height: 18px;
    }

    .header-user-name {
        display: none;
    }

    .header-user-menu {
        gap: 8px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 56px;
        padding: 0 12px;
        gap: 8px;
    }

    .header-logo span {
        display: none;
    }

    .header-search {
        display: none;
    }

    .header-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}
