/* Popup Styles */

.udc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.udc-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.udc-popup-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.udc-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.udc-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.udc-popup-content {
    padding: 0;
}

.udc-popup-content .udc-form-container {
    margin: 0;
    box-shadow: none;
    border-radius: 20px;
}

/* RTL Support */
body.rtl .udc-popup-close {
    left: auto;
    right: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .udc-popup-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .udc-popup-close {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    body.rtl .udc-popup-close {
        left: auto;
        right: 10px;
    }
}

/* Custom Scrollbar */
.udc-popup-container::-webkit-scrollbar {
    width: 8px;
}

.udc-popup-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.udc-popup-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.udc-popup-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
