﻿/* ===========================
   HEADER
=========================== */

.main-header {
    height: 72px;
    width: 100%;
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    color: white;
}

/* ===========================
   LEFT
=========================== */

.header-left {
    width: 260px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

    .logo-text h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
    }

    .logo-text span {
        margin-top: 4px;
        font-size: 13px;
        color: rgba(255,255,255,.9);
    }

/* ===========================
   CENTER
=========================== */

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    width: 420px;
    height: 42px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
}

    .search-box i {
        color: rgba(255,255,255,.8);
        font-size: 15px;
    }

    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        color: white;
        font-size: 15px;
    }

        .search-box input::placeholder {
            color: rgba(255,255,255,.75);
        }

/* ===========================
   RIGHT
=========================== */

.header-right {
    width: 260px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

/* ===========================
   ICONS
=========================== */

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: .2s;
}

    .header-icon:hover {
        transform: scale(1.1);
    }

/* ===========================
   NOTIFICATION
=========================== */

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4b4b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

/* ===========================
   PROFILE
=========================== */

.profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
}

    .profile-button img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,.35);
    }

    .profile-button i {
        font-size: 13px;
    }

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1000px) {

    .header-left {
        width: auto;
    }

    .header-right {
        width: auto;
    }

    .search-box {
        width: 300px;
    }
}

@media (max-width: 768px) {

    .logo-text span {
        display: none;
    }

    .search-box {
        width: 220px;
    }
}

.profile-wrapper {
    position: relative;
}

/* Button */
.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .profile-button img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }

/* Dropdown */
.profile-dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 1000;
}

/* Show state */
.profile-wrapper.active .profile-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

    .dropdown-header img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }

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

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

.user-email {
    font-size: 12px;
    color: #777;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
}

    .dropdown-item:hover {
        background: #f5f5f5;
    }

    .dropdown-item.danger {
        color: #e74c3c;
    }