:root {
    --bg-dark: #1e1e1e;
    --bg-input: #252526;
    --accent: #007acc;
    --accent-hover: #005a9e;
    --text: #cccccc;
}
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; display: flex; flex-direction: column; height: 100vh; background: var(--bg-dark); color: white; }

.header { background: #333; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; }
.header h1 { font-size: 1rem; margin: 0; letter-spacing: 1px; }

.header-actions { display: flex; align-items: center; gap: 15px; }

/* Share Button Styling */
.share-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s;
}
.share-btn:hover { background: var(--accent-hover); }

.container { display: flex; flex: 1; overflow: hidden; }

/* Editor Section */
.editors { width: 40%; display: flex; flex-direction: column; background: var(--bg-dark); padding: 10px; gap: 10px; border-right: 2px solid #444; }
.editor-group { flex: 1; display: flex; flex-direction: column; }

textarea { 
    flex: 1; 
    background: var(--bg-input); 
    color: #dcdcaa; 
    border: 1px solid #3c3c3c; 
    padding: 12px; 
    font-family: 'Consolas', 'Monaco', monospace; 
    resize: none; 
    outline: none;
    border-radius: 4px;
    transition: border 0.2s;
}
textarea:focus { border-color: var(--accent); }

label { color: var(--accent); font-size: 0.7rem; font-weight: bold; margin-bottom: 4px; text-transform: uppercase; }

/* Preview Section */
.preview-side { width: 60%; background: white; position: relative; }
iframe { width: 100%; height: 100%; border: none; background: white; }

@media (max-width: 768px) {
    .container { flex-direction: column; }
    .editors, .preview-side { width: 100%; height: 50%; }
}