/* ===== Authentication Modals ===== */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-modal-content h2 {
    margin-bottom: 1.5rem;
    color: #0f172a;
    text-align: center;
}

.auth-modal-content .form-group {
    margin-bottom: 1.2rem;
}

.auth-modal-content .btn {
    width: 100%;
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.btn-outline {
    padding: 0.6rem 1.2rem;
    border: 2px solid #6366f1;
    color: #6366f1;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

#userNavItem {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User Avatar & Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 2px solid #6366f1;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 5px 15px -3px rgba(99, 102, 241, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    min-width: 200px;
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0;
        background: #f8fafc;
        min-width: auto;
        border-top: 1px solid #e2e8f0;
    }
    
    .dropdown-menu a {
        border-left: 3px solid transparent;
        padding-left: 13px;
    }
    
    .dropdown-menu a:hover {
        border-left-color: #6366f1;
        background: white;
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #6366f1;
}

.dropdown-menu a i {
    width: 18px;
}

/* Tooltip for login button */
#loginBtn {
    position: relative;
}

#loginBtn:hover::after {
    content: 'Login to request a quote';
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
