.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    padding: 20px 0;
}

.header-title h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--text-dim);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 10;
}

.search-box input {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px 12px 45px;
    border-radius: 12px;
    color: var(--text-main);
    width: 300px;
    font-size: 14px;
    transition: all var(--transition-normal);
}

.search-box input:focus {
    border-color: var(--color-primary);
    background-color: var(--bg-accent);
    box-shadow: 0 0 0 4px rgba(0, 194, 146, 0.1);
}

.header-btn {
    width: 42px;
    height: 42px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.header-btn:hover {
    background-color: var(--bg-accent);
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-secondary);
    padding: 6px 15px 6px 6px;
    border-radius: 30px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    user-select: none;
}

.profile-container:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.profile-info span:first-child {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.profile-info span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 10px 12px;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 13px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.dropdown-item.logout-btn {
    color: var(--color-red);
}

.dropdown-item.logout-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #f43f5e;
    border-radius: 9px;
    border: 2px solid var(--bg-primary);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.user-profile .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
}

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

.user-profile .profile-info {
    display: flex;
    flex-direction: column;
}

.user-profile .profile-info span:first-child {
    font-size: 13px;
    font-weight: 600;
}

.user-profile .profile-info span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}
