/* ============ AUTH STYLES ============ */

/* User Menu Container */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-menu-trigger:hover {
    border-color: var(--hot-pink);
    box-shadow: 0 4px 12px rgba(255, 95, 162, 0.15);
}

.user-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.user-name {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy-black);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.user-menu-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-pink), #ffe2f1);
}

.dropdown-icon {
    font-size: 2.5rem;
    line-height: 1;
}

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

.dropdown-name {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-family: var(--font-inter);
    font-size: 0.8rem;
    color: var(--gray-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    color: var(--navy-black);
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--light-pink);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--gray-text);
}

.dropdown-item:hover svg {
    color: var(--hot-pink);
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    background: #fef2f2;
}

.logout-btn svg {
    color: #ef4444;
}

/* Subscription Badge */
.subscription-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-left: 0.25rem;
}

.subscription-badge.free {
    background: #e5e7eb;
    color: #6b7280;
}

.subscription-badge.price_pro,
.subscription-badge.pro {
    background: linear-gradient(135deg, var(--hot-pink), var(--secondary-pink));
    color: white;
}

.subscription-badge.price_enterprise,
.subscription-badge.enterprise {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

/* Toast Notifications */
.auth-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: var(--font-poppins);
    font-size: 0.95rem;
}

.auth-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-toast.success {
    border-left: 4px solid #10b981;
}

.auth-toast.error {
    border-left: 4px solid #ef4444;
}

.auth-toast.info {
    border-left: 4px solid var(--hot-pink);
}

.auth-toast button {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.auth-toast button:hover {
    color: var(--navy-black);
}

/* Logout confirmation popup */
.logout-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 24, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
}

.logout-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.logout-confirm {
    width: min(90%, 360px);
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 95, 162, 0.25);
    transform: translateY(20px);
    animation: popupIn 0.35s ease forwards;
    position: relative;
}

.logout-confirm .question-mark {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-pink), #ffe2f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-poppins);
    font-size: 2rem;
    color: var(--hot-pink);
    margin: 0 auto 1rem;
    animation: bounce 1.2s ease-in-out infinite;
}

.logout-confirm h3 {
    font-family: var(--font-poppins);
    font-size: 1.25rem;
    color: var(--navy-black);
    margin-bottom: 0.5rem;
}

.logout-confirm p {
    font-family: var(--font-inter);
    color: var(--gray-text);
    margin-bottom: 1.75rem;
}

.logout-confirm-actions {
    display: flex;
    gap: 0.75rem;
}

.logout-confirm-actions button {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-poppins);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-confirm-actions .confirm-btn {
    background: var(--light-pink);
    color: var(--hot-pink);
}

.logout-confirm-actions .confirm-btn:hover {
    transform: translateY(-1px);
}

.logout-confirm-actions .cancel-btn {
    background: linear-gradient(135deg, var(--hot-pink), var(--secondary-pink));
    color: white;
    box-shadow: 0 6px 16px rgba(255, 95, 162, 0.35);
}

.logout-confirm-actions .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 95, 162, 0.45);
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-dropdown {
        width: 260px;
        right: -1rem;
    }
    
    .auth-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

