/* Header Custom Styles */
/* Kurangi tinggi header dan perbesar logo */
.header {
    padding: 10px 0 !important;
}

@media (min-width: 992px) {
    .header {
        padding: 15px 0 !important;
    }
}

.header__container {
    padding: 0 20px !important;
    min-height: auto !important;
}

@media (min-width: 576px) {
    .header__container {
        padding: 0 30px !important;
    }
}

@media (min-width: 992px) {
    .header__container {
        padding: 0 40px !important;
    }
}

@media (min-width: 1200px) {
    .header__container {
        padding: 0 60px !important;
    }
}

@media (min-width: 1400px) {
    .header__container {
        padding: 0 80px !important;
    }
}

.header__logo {
    display: flex;
    align-items: center;
    height: auto !important;
    margin: 0 !important;
}

.header__logo img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    object-fit: contain;
}

@media (min-width: 576px) {
    .header__logo img {
        height: 70px !important;
        max-height: 70px !important;
    }
}

@media (min-width: 992px) {
    .header__logo img {
        height: 80px !important;
        max-height: 80px !important;
    }
}

@media (min-width: 1200px) {
    .header__logo img {
        height: 90px !important;
        max-height: 90px !important;
    }
}

@media (min-width: 1400px) {
    .header__logo img {
        height: 100px !important;
        max-height: 100px !important;
    }
}

/* User Avatar Styles */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.user-dropdown-trigger:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.6);
}

.user-name {
    vertical-align: middle;
    margin-right: 6px;
}

.user-dropdown-arrow {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.user-dropdown-trigger.active .user-dropdown-arrow {
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    .user-dropdown-wrapper {
        position: relative;
    }

    .user-dropdown-trigger {
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: opacity 0.3s ease;
        position: relative;
    }

    .user-dropdown-trigger:hover {
        opacity: 0.8;
    }

    .user-dropdown-menu {
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        background: #ffffff !important;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        min-width: 200px;
        width: max-content;
        max-width: 280px;
        overflow: hidden;
    }

    .user-dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        background: #ffffff !important;
    }

    .user-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 24px;
        width: 12px;
        height: 12px;
        background: #ffffff;
        transform: rotate(45deg);
        box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
    }

    .user-dropdown-list {
        list-style: none;
        margin: 0;
        padding: 8px 0;
    }

    .user-dropdown-item {
        margin: 0;
        padding: 0;
    }

    .user-dropdown-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        color: #2c3e50;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        gap: 12px;
    }

    .user-dropdown-link:hover {
        background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
        color: #f0a500;
        padding-left: 24px;
    }

    .user-dropdown-text {
        flex: 1;
    }

    .user-dropdown-icon {
        display: inline-flex;
        align-items: center;
        opacity: 0.5;
        transition: all 0.2s ease;
    }

    .user-dropdown-link:hover .user-dropdown-icon {
        opacity: 1;
        transform: translateX(2px);
    }

    .user-dropdown-icon i {
        font-size: 16px;
    }

    .user-dropdown-item:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }

    .user-dropdown-item {
        transition: background-color 0.2s ease;
    }

    /* Memastikan background putih di semua kondisi desktop */
    .user-dropdown-menu,
    .user-dropdown-menu:hover,
    .user-dropdown-menu:focus,
    .user-dropdown-menu:active {
        background: #ffffff !important;
    }

    .user-dropdown-list {
        background: #ffffff !important;
    }
}

@media (max-width: 991px) {
    .user-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 12px !important;
        display: none;
    }

    .user-dropdown-menu.active {
        display: block;
    }

    .user-dropdown-menu::before {
        display: none !important;
    }

    .user-dropdown-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .user-dropdown-item {
        margin: 0;
        padding: 0;
        border: none !important;
    }

    .user-dropdown-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0 !important;
        color: inherit !important;
        text-decoration: none;
        font-size: 14px;
    }

    .user-dropdown-link:hover {
        background: transparent !important;
        padding-left: 0 !important;
    }

    .user-dropdown-icon {
        margin-left: 8px;
        opacity: 0.7;
    }

    .user-avatar {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dropdown-menu.active {
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

