/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    margin: 0 1rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.iframe-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 3px;
    max-height: 70vh;
    flex: 1;
}

/* Custom scrollbar styling */
.iframe-container::-webkit-scrollbar {
    width: 8px;
}

.iframe-container::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 4px;
}

.iframe-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 4px;
}

.iframe-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

/* Firefox scrollbar */
.iframe-container {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(17, 24, 39, 0.5);
}

@media (max-width: 640px) {
    .modal-container {
        max-height: 85vh;
        margin: 0 0.5rem;
    }

    .iframe-container {
        max-height: 65vh;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding-top: 1rem;
        /* padding-right: 2rem; Add padding to prevent text overlap with close button */
    }

    #closeStrategyModal {
        top: -9px;
        right: -14px;
    }
}
