﻿.container {
            max-width: 100%;
            width: 100%;
            margin: 0;
            padding: 0;
        }

header {
            text-align: center;
            font-size: 2.5em;
            font-weight: 700;
            color: #2c3e50;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            letter-spacing: 1px;
            padding: 10px 12px;
            height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin-bottom: 20px;
            flex-direction: column;
            gap: 5px;
            min-height: 75px;
        }

header h1 {
            margin: 0;
            font-size: 0.8em;
            word-break: break-word;
        }

header h2 {
            font-size: 0.5em;
            margin: 0;
            color: #555;
            font-weight: 400;
            letter-spacing: 0.5px;
            word-break: break-word;
        }

.main-layout {
            display: grid;
            grid-template-columns: 450px 1fr 320px;
            gap: 20px;
            margin-bottom: 30px;
            padding: 0 20px 20px 20px;
            align-items: stretch;
            min-width: 0;
        }

/* Canvas Section */
        .canvas-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            min-width: 0;
            width: 100%;
        }

.canvas {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            min-height: 100px;
            border: 2px dashed #bdc3c7;
            transition: all 0.3s ease;
            max-width: 100%;
            width: 100%;
            overflow-x: hidden;
            overflow-y: visible;
            box-sizing: border-box;
        }

#sortable-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            max-width: 100%;
            width: 100%;
            overflow-x: hidden;
            box-sizing: border-box;
        }

.canvas.drag-over {
            background: #f0f9ff;
            border-color: #3498db;
            box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
        }

.canvas-empty {
            color: #95a5a6;
            text-align: center;
            padding: 40px 20px;
            font-style: italic;
        }

.canvas-empty-text {
            margin-bottom: 10px;
            font-size: 1.1em;
        }

.canvas-hint {
            color: #7f8c8d;
            font-size: 0.9em;
        }

/* Preview Section */
        .preview-section {
            display: none;
        }

.preview-inline {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            margin-bottom: 15px;
        }

.preview-inline h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.1em;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }

.code-inline {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            margin-top: 15px;
        }

.code-inline h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.1em;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
            width: 100%;
        }

.code-inline > div:first-of-type {
            width: 100%;
        }

.preview-container, .code-container {
            display: none;
        }

.preview {
            background: #1e1e1e;
            color: #00ff00;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 1em;
            min-height: 100px;
            border: 1px solid #333;
            white-space: pre-wrap;
            word-wrap: break-word;
            line-height: 1.6;
        }

.code-output {
            background: #f8f9fa;
            border: 1px solid #ecf0f1;
            border-radius: 8px;
            padding: 15px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            color: #2c3e50;
            word-break: break-all;
            max-height: 150px;
            overflow-y: auto;
            min-height: 100px;
            width: 100%;
            white-space: pre-wrap;
        }

