/**
 * CalcsLive Article Embed - Admin Styles
 */

/* Settings page styles */
.wrap h1 {
    margin-bottom: 20px;
}

.wrap pre {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.wrap pre code {
    background: transparent;
    padding: 0;
}

/* Block editor styles */
.wp-block-calcslive-article-embed {
    margin: 20px 0;
}

.calcslive-embed-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.calcslive-embed-header {
    background: #f0f0f0;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

.calcslive-embed-label {
    color: #666;
}

.calcslive-embed-label code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.calcslive-embed-iframe-wrapper {
    position: relative;
    overflow: hidden;
}

.calcslive-embed-iframe-wrapper iframe {
    display: block;
    width: 100%;
}

/* Placeholder styles */
.wp-block-calcslive-article-embed .components-placeholder {
    min-height: 200px;
}

.calcslive-help-text {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.calcslive-help-text code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Error state */
.calcslive-embed-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #991b1b;
    text-align: center;
}
