/* assets/css/header.css */

/* --- Desktop Header --- */
header.main-header {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    position: relative;
    z-index: 1000;
}

header.main-header .logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Nav Menu Container */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #00b894;
}

/* User Profile & Dropdown */
.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    background-color: #00b894;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    flex-shrink: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 180px;
    z-index: 1001;
}

.dropdown-content a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Add Service Button */
.btn-add {
    background: #00b894;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #009374;
}

/* Mobile Toggle Icon */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* --- Mobile View (Responsive) --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none; /* Hidden until toggled */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits right under the header */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 15px;
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
		direction: ltr;
    }

    .user-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static; /* Stack it inside the mobile menu */
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        margin-top: 10px;
    }
}