/* استایل‌های فرانت‌اند */

/* دکمه‌های ورود و عضویت */
body,a,p,h1,h2,h3,h4,h5,h6,button,select,div,li,ul {
    font-family: 'Anjoman';
}
.uam-login-wrapper {
    display: inline-block;
}

.uam-login-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.uam-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: var(--btn-radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Anjoman';
}

.uam-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* دکمه حساب کاربری */
.uam-account-wrapper {
    display: inline-block;
    position: relative;
}

.uam-account-dropdown {
    position: relative;
}

.uam-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #c5bebe;
    color: var(--btn-text);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Anjoman';
    }

.uam-account-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.uam-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uam-user-icon svg {
    width: 16px;
    height: 16px;
}

.uam-account-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-right: auto;
}

.uam-account-dropdown.active .uam-account-arrow {
    transform: rotate(180deg);
}

/* منوی کشویی */
.uam-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.uam-account-dropdown.active .uam-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.uam-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

.uam-dropdown-item:hover {
    background: #f5f5f5;
}

.uam-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.uam-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.uam-icon {
    font-size: 16px;
}

.uam-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

/* پاپ‌آپ خروج */
.uam-logout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.uam-logout-modal.active {
    display: block;
}

.uam-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.uam-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.uam-modal-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.uam-modal-text {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.uam-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.uam-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uam-modal-confirm {
    background: #dc3545;
    color: #ffffff;
}

.uam-modal-confirm:hover {
    background: #c82333;
}

.uam-modal-cancel {
    background: #6c757d;
    color: #ffffff;
}

.uam-modal-cancel:hover {
    background: #5a6268;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .uam-login-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .uam-btn {
        width: 100%;
        text-align: center;
    }
    
    .uam-dropdown-menu {
        right: auto;
        left: 0;
    }
}
