﻿.etedal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.etedal-modal-content {
    background: #fff;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.etedal-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    color: #333;
}

    .etedal-modal-close:hover {
        background: rgba(0, 0, 0, 0.2);
        transform: rotate(90deg);
    }

.etedal-modal-body {
    flex: 1;
    padding: 20px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .etedal-modal-body iframe {
        width: 100%;
        height: 100%;
        border: none;
        min-height: 500px;
    }

.modal-loading {
    font-size: 18px;
    color: #666;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* برای نمایش PDF در موبایل */
@media (max-width: 768px) {
    .etedal-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .etedal-modal-body iframe {
        min-height: 400px;
    }
}
