/**
 * Custom Code Widget Styles
 */

/* Widget Container */
.custom-code-widget-container {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

/* Code Editor Styling */
.elementor-control-code_editor .CodeMirror {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    height: auto;
    min-height: 200px;
    border-radius: 4px;
}

/* Loading Animation */
.custom-code-widget-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.custom-code-widget-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: custom-code-spin 1s linear infinite;
}

@keyframes custom-code-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Embed */
.custom-code-widget-container iframe,
.custom-code-widget-container video,
.custom-code-widget-container embed {
    max-width: 100%;
}

/* Info Panel */
.elementor-panel-alert-info {
    background-color: #f0f8ff;
    border-left-color: #007cba;
    padding: 12px;
    margin-top: 10px;
    border-radius: 4px;
}