/* ============================================
   Header User Menu Styles
   GOR Maulana Booking System
   Menggunakan existing CSS classes
   ============================================ */

/* Header Right Section - Align with existing nav */
.header-nav-right {
    float: right;
    margin-left: 15px;
    padding: 6px;
}

/* Guest Login Button - Using existing site-button style */
.btn-login.site-button {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #efbb20 0%, #d4a01c 100%);
}

.btn-login.site-button:hover {
    color: #333333;
}

/* User Dropdown Container */
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

/* User Menu Trigger - Match nav link style */
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 500;
}

.user-menu-trigger:hover {
    background: #e9ecef;
    border-color: #efbb20;
    text-decoration: none;
    color: #333;
}

.user-menu-trigger:focus {
    outline: none;
    text-decoration: none;
}

/* User Avatar */
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #efbb20;
    color: #fff;
}

.user-avatar i {
    font-size: 18px;
}

/* User Name */
.user-name {
    font-weight: 600;
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-trigger .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Dropdown Menu - Match existing sub-menu style */
.user-menu {
    min-width: 220px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    border: 1px solid #e5e5e5;
    padding: 0;
    background: #fff;
}

/* User Info Section */
.user-menu .user-info {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-details strong {
    display: block;
    color: #2e1e13;
    font-size: 14px;
    font-weight: 700;
}

.user-details small {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}

/* Menu Items - Match existing nav dropdown style */
.user-menu li {
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu li:last-child {
    border-bottom: none;
}

.user-menu li a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.user-menu li a:hover {
    background: #f8f9fa;
    color: #efbb20;
    text-decoration: none;
    padding-left: 20px;
}

.user-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* Divider */
.user-menu .divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0;
    padding: 0;
}

/* Logout Item */
.user-menu li:last-child a {
    color: #dc3545;
}

.user-menu li:last-child a:hover {
    background: #fff5f5;
    color: #c82333;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .header-nav-right {
        float: none;
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .btn-login.site-button {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .user-dropdown {
        display: block;
        width: 100%;
    }

    .user-menu-trigger {
        width: 100%;
        justify-content: center;
    }

    .user-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .user-name {
        display: none;
    }

    .user-menu-trigger {
        padding: 8px 12px;
        justify-content: center;
    }
}

/* Ensure dropdown works with Bootstrap */
.user-dropdown .dropdown-menu {
    display: none;
}

.user-dropdown.open .dropdown-menu,
.user-dropdown .dropdown-menu.show {
    display: block;
}
