/* esim-alert.css - Modal Style like SweetAlert */
.esim-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.esim-alert-overlay.esim-active {
    opacity: 1;
    visibility: visible;
}

.esim-alert-container {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 450px;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    direction: rtl;
}

.esim-alert-overlay.esim-active .esim-alert-container {
    transform: scale(1);
}

/* Header Styles */
.esim-alert-header {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.esim-alert-header.esim-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.esim-alert-header.esim-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.esim-alert-header.esim-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.esim-alert-header.esim-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.esim-alert-header i {
    font-size: 4rem;
    color: white;
    animation: esimIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes esimIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.esim-alert-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esim-alert-close > .fas {
    font-size: 15px;
}

.esim-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body Styles */
.esim-alert-body {
    padding: 2rem;
    text-align: center;
}

.esim-alert-body h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.esim-alert-message {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 16px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.esim-alert-message.esim-success-bg {
    background: #f0fff4;
    color: #38a169;
    border-right: 3px solid #48bb78;
}

.esim-alert-message.esim-error-bg {
    background: #fff5f5;
    color: #e53e3e;
    border-right: 3px solid #f56565;
}

.esim-alert-message.esim-warning-bg {
    background: #fffaf0;
    color: #dd6b20;
    border-right: 3px solid #ed8936;
}

.esim-alert-message.esim-info-bg {
    background: #ebf8ff;
    color: #3182ce;
    border-right: 3px solid #4299e1;
}

.esim-alert-description {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer Styles */
.esim-alert-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.esim-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.esim-alert-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.esim-alert-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.esim-alert-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.esim-alert-btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.esim-alert-btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.esim-alert-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 101, 101, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
    .esim-alert-container {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .esim-alert-body {
        padding: 1.5rem;
    }

    .esim-alert-body h3 {
        font-size: 1.3rem;
    }

    .esim-alert-footer {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
    }

    .esim-alert-btn {
        padding: 10px 20px;
    }
}

/* RTL Adjustments */
[dir="rtl"] .esim-alert-close {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .esim-alert-message {
    border-right: 3px solid;
    border-left: none;
}


/* اضافه کردن به فایل esim-alert.css */

/* Modal جدید استایل‌ها */
.esim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.esim-modal-overlay.esim-active {
    opacity: 1;
    visibility: visible;
}

.esim-modal-container {
    background: white;
    border-radius: 32px;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    direction: rtl;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.esim-modal-overlay.esim-active .esim-modal-container {
    transform: scale(1);
}

/* اندازه‌های مختلف Modal */
.esim-modal-sm {
    width: 90%;
    max-width: 400px;
}

.esim-modal-md {
    width: 90%;
    max-width: 600px;
}

.esim-modal-lg {
    width: 90%;
    max-width: 800px;
}

.esim-modal-xl {
    width: 95%;
    max-width: 1140px;
}

.esim-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.esim-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #4a5568;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.esim-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.esim-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* استایل‌های پیش‌فرض برای فرم‌ها داخل Modal */
.esim-modal-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.esim-modal-body input,
.esim-modal-body textarea,
.esim-modal-body select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.esim-modal-body input:focus,
.esim-modal-body textarea:focus,
.esim-modal-body select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.esim-modal-body label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: block;
}

.esim-modal-body button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.esim-modal-body button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .esim-modal-body {
        padding: 1.5rem;
    }

    .esim-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
}

/* RTL Adjustments for Modal */
[dir="rtl"] .esim-modal-close {
    right: auto;
    left: 1rem;
}