:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #4a5568;
    --text-tertiary: #64748b;
    --border-color: #e1e8ed;
    --shadow: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #1a202c;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e0;
    --border-color: #4a5568;
    --shadow: rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10000;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.made-by-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .made-by-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.made-by-link::before {
    content: '✨';
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.made-by-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.made-by-link:hover {
    opacity: 1;
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .made-by-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(147, 51, 234, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.made-by-link:hover::before {
    opacity: 1;
    transform: rotate(15deg) scale(1.1);
}

.made-by-link:hover::after {
    left: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-container {
    display: flex;
    height: 100vh;
    margin-top: 60px; /* Header için alan */
    height: calc(100vh - 60px);
}

.sidebar {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar h1 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.control-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #10b981;
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-export {
    background: #8b5cf6;
    color: white;
}

.btn-export:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.btn-download {
    background: #f59e0b;
    color: white;
}

.btn-download:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.breakpoint-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.breakpoint-btn {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.breakpoint-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.breakpoint-btn.auto-mode {
    border-color: #10b981;
    background: #d1fae5;
    color: #10b981;
}

.breakpoint-btn:hover {
    border-color: #3b82f6;
}

.auto-mode-notice {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    color: #065f46;
    margin-top: 12px;
    line-height: 1.5;
}

.auto-mode-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #047857;
}

.editor-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .app-header {
        padding: 0 12px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .made-by-link {
        font-size: 11px;
        padding: 5px 10px;
        gap: 4px;
    }
    
    .made-by-link::before {
        font-size: 10px;
    }
    
    .header-right {
        gap: 6px;
    }
    
    .language-btn,
    .theme-toggle {
        padding: 8px 12px;
        font-size: 16px;
    }
}

.editor-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.current-breakpoint {
    padding: 8px 16px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.current-breakpoint.auto-active {
    background: #d1fae5;
    color: #10b981;
}

.grid-canvas {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    min-height: 400px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-row {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    transition: all 0.2s;
    cursor: move;
}

.grid-row:hover {
    border-color: #3b82f6;
}

.grid-row.sortable-ghost {
    opacity: 0.4;
    background: #e0e7ff;
}

.grid-row.sortable-chosen {
    cursor: grabbing;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: grab;
}

.row-header:active {
    cursor: grabbing;
}

.row-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: grab;
    user-select: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.row-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.row-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.row-btn-add {
    background: #10b981;
    color: white;
}

.row-btn-add:hover {
    background: #059669;
}

.row-btn-delete {
    background: #ef4444;
    color: white;
}

.row-btn-delete:hover {
    background: #dc2626;
}

.row-btn-align {
    background: #6366f1;
    color: white;
    padding: 6px 10px;
}

.row-btn-align:hover {
    background: #4f46e5;
}

.row-btn-divide {
    background: #f59e0b;
    color: white;
    padding: 6px 10px;
}

.row-btn-divide:hover {
    background: #d97706;
}

.row-btn-edit {
    background: #8b5cf6;
    color: white;
}

.row-btn-edit:hover {
    background: #7c3aed;
}

.columns-container {
    display: flex;
    gap: 12px;
    min-height: 100px;
    flex-wrap: wrap;
}

.column {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    cursor: move;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 60px;
    min-height: 100px;
}

.column:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.column-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.column-controls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.column-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-btn-duplicate {
    background: #3b82f6;
    color: white;
}

.column-btn-duplicate:hover {
    background: #2563eb;
}

.column-btn-delete {
    background: #ef4444;
    color: white;
}

.column-btn-delete:hover {
    background: #dc2626;
}

.column-btn-edit {
    background: #8b5cf6;
    color: white;
}

.column-btn-edit:hover {
    background: #7c3aed;
}

.column-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 10;
}

.resize-handle:hover {
    background: #3b82f6;
}

.resize-handle::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: #cbd5e0;
    border-radius: 2px;
}

.resize-handle:hover::after {
    background: white;
}

.resize-handle-vertical {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    cursor: row-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 10;
}

.resize-handle-vertical:hover {
    background: #3b82f6;
}

.resize-handle-vertical::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 32px;
    background: #cbd5e0;
    border-radius: 2px;
}

.resize-handle-vertical:hover::after {
    background: white;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 14px;
    color: var(--text-tertiary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.small-modal {
    max-width: 380px;
    padding: 0;
}

.small-modal .modal-header {
    padding: 20px 24px;
}

.small-modal .modal-body {
    padding: 20px 24px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.code-section {
    margin-bottom: 24px;
}

.code-section:last-child {
    margin-bottom: 0;
}

.code-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-copy-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.code-copy-btn:hover {
    background: var(--bg-tertiary);
    border-color: #3b82f6;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

.spacing-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.spacing-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spacing-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spacing-input-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .spacing-input-group {
grid-template-columns: repeat(2, 1fr);
    }
}

.spacing-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spacing-input label {
    font-size: 11px;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
}

.spacing-input input {
    padding: 8px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.spacing-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Genel input ve form elementleri için responsive */
input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea,
    select {
font-size: 16px; /* iOS zoom önleme */
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tech-option {
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tech-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.tech-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tech-option-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.tech-option-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a202c;
}

.tech-option-desc {
    font-size: 12px;
    color: #64748b;
}

.sortable-ghost {
    opacity: 0.3;
}

.sortable-chosen {
    cursor: grabbing;
}

.preview-wrapper.desktop {
    max-width: 100%;
}

.preview-wrapper.tablet {
    max-width: 768px;
    margin: 0 auto;
}

.preview-wrapper.mobile {
    max-width: 375px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .app-container {
flex-direction: column;
    }

    .sidebar {
width: 100%;
max-height: 50vh;
border-right: none;
border-bottom: 1px solid #e1e8ed;
    }

    .editor-area {
padding: 16px;
    }

    .tech-grid {
grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
overflow-y: auto;
    }

    .sidebar {
position: fixed;
left: -100%;
top: 60px; /* Header yüksekliği */
width: 280px;
height: calc(100vh - 60px);
max-height: calc(100vh - 60px);
z-index: 1000;
transition: left 0.3s ease;
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.active {
left: 0;
    }

    .editor-area {
width: 100%;
padding: 12px;
    }

    .editor-header {
flex-direction: column;
gap: 12px;
align-items: flex-start;
    }

    .editor-title {
font-size: 18px;
    }

    .current-breakpoint {
font-size: 12px;
padding: 6px 12px;
    }

    .columns-container {
gap: 8px;
    }

    .column {
min-width: 50px;
padding: 12px;
    }

    .row-controls {
gap: 4px;
    }

    .row-btn {
padding: 4px 8px;
font-size: 11px;
    }

    .column-btn {
width: 20px;
height: 20px;
font-size: 10px;
    }

    .tech-grid {
grid-template-columns: 1fr;
    }

    .modal-content {
width: 95%;
max-width: 95%;
margin: 10px;
max-height: 90vh;
    }

    .breakpoint-selector {
grid-template-columns: 1fr;
    }

    .grid-preview {
padding: 8px;
    }

    .grid-row {
margin-bottom: 8px;
    }

    .grid-column {
padding: 8px;
    }

    .preview-header {
flex-direction: column;
align-items: flex-start;
    }

    .preview-title {
font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
width: 100%;
    }

    .editor-area {
padding: 8px;
    }

    .modal-content {
width: 100%;
max-width: 100%;
margin: 0;
border-radius: 0;
max-height: 100vh;
    }

    .modal-header {
padding: 16px;
    }

    .modal-title {
font-size: 16px;
    }

    .modal-body {
padding: 16px;
    }

    .modal-body > div[style*="display: flex"] {
flex-direction: column !important;
    }

    .modal-body button[style*="flex: 1"] {
width: 100% !important;
margin-bottom: 8px;
    }

    .tech-option {
padding: 16px;
    }

    .tech-option-icon {
font-size: 24px;
    }

    .tech-option-title {
font-size: 14px;
    }

    .tech-option-desc {
font-size: 11px;
    }

    .control-section h3 {
font-size: 12px;
    }

    .btn {
padding: 10px 12px;
font-size: 13px;
    }

    .editor-title {
font-size: 16px;
    }

    .current-breakpoint {
font-size: 11px;
padding: 4px 10px;
    }

    .columns-container {
gap: 6px;
    }

    .column {
min-width: 40px;
padding: 8px;
min-height: 80px;
    }

    .column-label {
font-size: 10px;
    }

    .row-title {
font-size: 12px;
    }

    .grid-canvas {
padding: 12px;
    }

    .grid-row {
padding: 12px;
    }

    .spacing-input-group {
grid-template-columns: 1fr;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Language Selector */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    color: var(--text-primary);
}

.language-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
    min-width: 150px;
    overflow: hidden;
    z-index: 10001;
}

.language-menu.active {
    display: block;
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.language-option:hover {
    background: var(--bg-tertiary);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow);
}


/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Önizleme Alanı */
.preview-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preview-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    min-height: 300px;
    max-height: 600px;
    overflow: auto;
    box-shadow: 0 1px 3px var(--shadow);
}

.preview-placeholder {
    text-align: center;
    padding: 48px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Preview Switch */
.preview-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.preview-switch {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #cbd5e0;
    border-radius: 13px;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
    margin: 0;
}

.preview-switch:checked {
    background: #3b82f6;
}

.preview-switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.preview-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}

.preview-switch:checked + .preview-slider {
    transform: translateX(24px);
}
