/* ==============================================
   PREVIEW CONTROLS
   ============================================== */
.preview-container {
    border: 1px solid var(--glass-border);
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: transparent;
}

.preview-theme-toggle {
    border: none;
    width: 32px;
    height: 32px;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.preview-theme-toggle svg {
    display: none;
    fill: currentColor;
}

.preview-container.theme-dark .preview-theme-toggle {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.preview-container.theme-dark .preview-theme-toggle .icon-filled {
    display: block;
}

.preview-container.theme-dark .preview-iframe {
    background: #0f172a;
}

.preview-container.theme-light .preview-theme-toggle {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-container.theme-light .preview-theme-toggle .icon-filled {
    display: block;
}

.preview-container.theme-light .preview-iframe {
    background: #ffffff;
}

.preview-theme-toggle:hover {
    transform: scale(1.1);
}
