/* Modal Styles */
.smule-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.smule-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.smule-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.smule-modal-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smule-modal-header h3 {
    margin: 0;
    color: #333;
}

.smule-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.smule-modal-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.smule-modal-body {
    padding: 0;
    position: relative;
}

.smule-iframe-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smule-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

.smule-iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}

.smule-iframe-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    padding: 20px;
}

.smule-iframe-error a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.smule-iframe-error a:hover {
    text-decoration: underline;
}

/* Performance link styling */
.smule-performance-link {
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.smule-performance-link:hover {
    text-decoration: underline;
    color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
    .smule-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .smule-iframe-container {
        height: 400px;
    }
    
    .smule-modal-header {
        padding: 15px;
    }
}