/* Brand and UI Themes */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --success-color: #10b981;
    --error-color: #ef4444;
    
    /* Templates colors */
    --template-bg-cream: #faf7f2;
    --template-bg-dark: #121212;
    --template-text-dark: #2d2a26;
    --template-accent-yellow: #fef08a;
    --template-line-blue: #a5f3fc;
    --template-margin-red: #fca5a5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand span {
    font-size: 0.75rem;
    background-color: var(--border-color);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* App Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    flex-grow: 1;
    height: calc(100vh - 65px);
    overflow: hidden;
}

/* Left Panel - Editor Controls */
.editor-sidebar {
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Option Selectors */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.option-btn {
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.option-btn.active {
    border-color: var(--accent-color);
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.option-btn svg {
    width: 20px;
    height: 20px;
}

/* Template Select Cards */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.template-card {
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: var(--accent-color);
}

.template-card.active {
    border-color: var(--accent-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.template-preview-icon {
    height: 60px;
    background-color: var(--bg-card);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.template-card span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Form inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-field {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: var(--accent-color);
}

textarea.input-field {
    min-height: 80px;
    resize: vertical;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* OpenRouter Generator UI */
.ai-generator {
    background-color: rgba(99, 102, 241, 0.05);
    border: 1px dashed var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-generator h4 {
    font-size: 0.875rem;
    color: #a5b4fc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Right Panel - Preview Workspace */
.preview-workspace {
    background-color: #0b0f19;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 2rem;
    position: relative;
}

/* Scaled wrapper for previewing high-res canvas */
.canvas-scale-wrapper {
    transform-origin: center center;
    transition: transform 0.2s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

/* The actual high-resolution canvas element that gets exported */
.render-canvas {
    background-color: white;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
    user-select: none;
}

/* Dimensions constants for export */
.render-canvas.format-square {
    width: 1080px;
    height: 1080px;
}

.render-canvas.format-story {
    width: 1080px;
    height: 1920px;
}

/* Editable overlay text blocks */
.editable-text {
    position: relative;
    outline: none;
    cursor: text;
    user-select: text;
    transition: background-color 0.2s;
    border: 1px dashed transparent;
    border-radius: 4px;
}

.editable-text:hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.editable-text:focus {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-color);
}

/* -------------------------------------------------------------
   TEMPLATES CUSTOM STYLING (Directly inside 1080x1080/1920 px)
---------------------------------------------------------------- */

/* --- THEME CSS VARIABLES --- */
/* Default theme: cream */
.render-canvas {
    --tpl-bg: #faf7f2;
    --tpl-text: #2d2a26;
    --tpl-accent: #fef08a;
    --tpl-line: #a5f3fc;
    --tpl-margin: #fca5a5;
    --tpl-spiral: #94a3b8;
    --tpl-card-bg: #fafaf9;
    --tpl-card-border: #e7e5e4;
}

.theme-cream {
    --tpl-bg: #faf7f2;
    --tpl-text: #2d2a26;
    --tpl-accent: #fef08a;
    --tpl-line: #a5f3fc;
    --tpl-margin: #fca5a5;
    --tpl-spiral: #94a3b8;
    --tpl-card-bg: #fafaf9;
    --tpl-card-border: #e7e5e4;
}

.theme-dark-blue {
    --tpl-bg: #0f172a;
    --tpl-text: #f8fafc;
    --tpl-accent: #818cf8;
    --tpl-line: #334155;
    --tpl-margin: #475569;
    --tpl-spiral: #64748b;
    --tpl-card-bg: #1e293b;
    --tpl-card-border: #334155;
}

.theme-pastel-teal {
    --tpl-bg: #f0fdfa;
    --tpl-text: #115e59;
    --tpl-accent: #99f6e4;
    --tpl-line: #99f6e4;
    --tpl-margin: #5bc0be;
    --tpl-spiral: #5b9a8c;
    --tpl-card-bg: #ffffff;
    --tpl-card-border: #ccfbf1;
}

.theme-minimal-white {
    --tpl-bg: #ffffff;
    --tpl-text: #000000;
    --tpl-accent: #e2e8f0;
    --tpl-line: #e2e8f0;
    --tpl-margin: #cbd5e1;
    --tpl-spiral: #cbd5e1;
    --tpl-card-bg: #fafafa;
    --tpl-card-border: #e2e8f0;
}

.theme-pastel-pink {
    --tpl-bg: #fff1f2;
    --tpl-text: #9f1239;
    --tpl-accent: #fecdd3;
    --tpl-line: #fda4af;
    --tpl-margin: #fda4af;
    --tpl-spiral: #fda4af;
    --tpl-card-bg: #ffffff;
    --tpl-card-border: #ffe4e6;
}

/* --- FONT PAIRING STYLES --- */
/* Default styling */
.paper-quote, .notebook-list, .caption-text {
    font-family: 'Caveat', cursive;
}
.notebook-title, .subtitle-text, .definition-term, .compare-header span {
    font-family: 'Montserrat', sans-serif;
}
.definition-desc, .compare-body div {
    font-family: 'Inter', sans-serif;
}

/* Handwritten Style */
.font-handwritten .paper-quote,
.font-handwritten .notebook-list,
.font-handwritten .caption-text,
.font-handwritten .definition-desc,
.font-handwritten .compare-body div {
    font-family: 'Caveat', cursive;
}
.font-handwritten .notebook-title,
.font-handwritten .subtitle-text,
.font-handwritten .definition-term,
.font-handwritten .compare-header span {
    font-family: 'Montserrat', sans-serif;
}

/* Academic Style */
.font-academic .paper-quote,
.font-academic .notebook-list,
.font-academic .definition-desc,
.font-academic .caption-text,
.font-academic .compare-body div {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}
.font-academic .notebook-title,
.font-academic .subtitle-text,
.font-academic .definition-term,
.font-academic .compare-header span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Minimalist Style */
.font-minimalist .paper-quote,
.font-minimalist .notebook-list,
.font-minimalist .definition-desc,
.font-minimalist .caption-text,
.font-minimalist .compare-body div {
    font-family: 'Inter', sans-serif;
}
.font-minimalist .notebook-title,
.font-minimalist .subtitle-text,
.font-minimalist .definition-term,
.font-minimalist .compare-header span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Template Common Styles */
.tpl-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 80px;
    box-sizing: border-box;
}

.tpl-footer {
    position: absolute;
    bottom: 50px;
    left: 80px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    color: var(--tpl-text);
    opacity: 0.7;
    border-top: 1px solid var(--tpl-card-border);
    padding-top: 25px;
    font-weight: 500;
}

.tpl-footer.dark-text {
    color: var(--tpl-text);
}

.tpl-footer.white-text {
    color: var(--tpl-text);
}

/* 1. Buruşuk Kağıt / Alıntı Şablonu */
.tpl-paper {
    background-color: var(--tpl-bg);
    background-image: 
        radial-gradient(rgba(0,0,0,0.02) 1px, transparent 0),
        radial-gradient(rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tpl-text);
}

.paper-sheet {
    background-color: var(--tpl-card-bg);
    border-radius: 8px;
    box-shadow: 
        0 4px 6px -1px rgba(0,0,0,0.05),
        0 10px 15px -3px rgba(0,0,0,0.08),
        0 20px 25px -5px rgba(0,0,0,0.1);
    width: 90%;
    height: 75%;
    padding: 60px;
    position: relative;
    transform: rotate(-1deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--tpl-card-border);
}

/* HTML Paperclip Accent */
.paperclip {
    position: absolute;
    top: -25px;
    right: 50px;
    width: 35px;
    height: 90px;
    border: 3px solid var(--tpl-spiral);
    border-radius: 20px;
    transform: rotate(15deg);
    z-index: 10;
    box-shadow: -2px 3px 5px rgba(0,0,0,0.1);
}

.paperclip::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 4px;
    right: 4px;
    bottom: 10px;
    border: 3px solid var(--tpl-spiral);
    border-radius: 15px;
}

/* Paper star accent */
.paper-star {
    position: absolute;
    top: 50px;
    left: 40px;
    width: 50px;
    height: 50px;
    color: var(--tpl-accent);
}

.quote-icon {
    font-size: 150px;
    color: var(--tpl-card-border);
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 50px;
    font-family: 'Playfair Display', serif;
    user-select: none;
}

.paper-quote {
    font-size: 56px;
    line-height: 1.4;
    color: var(--tpl-text);
    text-align: center;
    z-index: 2;
    word-wrap: break-word;
}

/* 2. Defter / Liste Şablonu */
.tpl-notebook {
    background-color: var(--tpl-bg);
    display: flex;
    flex-direction: column;
    color: var(--tpl-text);
}

.notebook-page {
    flex-grow: 1;
    background-color: var(--tpl-card-bg);
    border-left: 50px solid transparent;
    position: relative;
    padding: 60px 40px 60px 20px;
    background-image: linear-gradient(var(--tpl-line) 1px, transparent 1px);
    background-size: 100% 50px;
    line-height: 50px;
}

/* Margin Red Line */
.notebook-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    bottom: 0;
    width: 2px;
    background-color: var(--tpl-margin);
}

/* Spirals on the left edge */
.notebook-spirals {
    position: absolute;
    left: 10px;
    top: 50px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    z-index: 5;
}

.spiral-ring {
    width: 20px;
    height: 35px;
    border: 3px solid var(--tpl-spiral);
    border-radius: 10px;
    background-color: var(--bg-main);
    margin-bottom: 25px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}

.notebook-title {
    font-weight: 800;
    font-size: 42px;
    line-height: 60px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--tpl-text);
    border-bottom: 2px solid var(--tpl-text);
    display: inline-block;
    padding-bottom: 5px;
}

.notebook-list {
    list-style: none;
    font-size: 46px;
    line-height: 50px;
}

.notebook-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

/* 3. Doğru / Yanlış Şablonu */
.tpl-compare {
    background-color: var(--tpl-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 60px;
}

.compare-col {
    background-color: var(--tpl-card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tpl-card-border);
}

.compare-header {
    padding: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 42px;
    text-align: center;
    color: white;
    letter-spacing: 2px;
}

.compare-header.correct {
    background-color: var(--success-color);
}

.compare-header.wrong {
    background-color: var(--error-color);
}

.compare-body {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
    color: var(--tpl-text);
    font-weight: 500;
}

.compare-image {
    width: 80%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    background-color: var(--tpl-bg);
}

/* 4. Görsel Kartı Şablonu */
.tpl-image-card {
    background-color: var(--tpl-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    gap: 40px;
}

/* Abstract wave vectors in the background */
.card-wave-bg {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.tpl-image-card .card-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.tpl-image-card .photo-container {
    width: 80%;
    height: 50%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: var(--tpl-bg);
    border: 8px solid var(--tpl-card-bg);
}

.tpl-image-card .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpl-image-card .caption-text {
    font-size: 52px;
    text-align: center;
    line-height: 1.3;
    color: var(--tpl-text);
    padding: 0 20px;
    font-weight: 700;
}

.tpl-image-card .subtitle-text {
    font-size: 26px;
    text-align: center;
    line-height: 1.5;
    color: var(--tpl-text);
    opacity: 0.8;
    font-weight: 500;
}

/* 5. Vurgulu Terim (Odyolog) Şablonu */
.tpl-definition {
    background-color: var(--tpl-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px;
    color: var(--tpl-text);
}

.definition-term-wrapper {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.definition-term {
    font-weight: 900;
    font-size: 84px;
    text-transform: uppercase;
    color: var(--tpl-text);
    position: relative;
    z-index: 3;
    letter-spacing: -1px;
}

.definition-highlight {
    position: absolute;
    bottom: 5px;
    left: -10px;
    right: -10px;
    height: 38px;
    background-color: var(--tpl-accent);
    z-index: 1;
    transform: skewX(-10deg) rotate(-1deg);
    border-radius: 4px;
}

.definition-desc {
    font-size: 38px;
    line-height: 1.6;
    color: var(--tpl-text);
    font-weight: 500;
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: white;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 200;
}

.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Canvas (Serbest Tasarım) Template */
.tpl-canvas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.canvas-content-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 2;
    box-sizing: border-box;
}

/* Dark mode theme adjustments for glassmorphism */
.theme-dark-blue .canvas-content-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.canvas-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--tpl-text);
    line-height: 1.25;
    width: 100%;
    outline: none;
}

.canvas-desc {
    font-size: 1.25rem;
    color: var(--tpl-text);
    opacity: 0.9;
    line-height: 1.6;
    width: 100%;
    outline: none;
}

.canvas-photo {
    width: 100%;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.canvas-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        overflow: visible;
    }
    
    .editor-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 500px;
    }
    
    .preview-workspace {
        min-height: 600px;
    }
}
