/* Logo 3D Shape Generator - Styles */

/* CSS Variables */
:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --bg-color: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-color: #212121;
    --text-secondary: #757575;
    --border-color: #DDDDDD;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
}

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

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.btn-help {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-help:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-1px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 400px 1fr 400px;
    gap: 1rem;
    padding: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
}

/* Panel Styles */
.left-panel,
.center-panel,
.right-panel {
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: auto;
    transition: all 0.3s ease;
}

.left-panel {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: relative;
}

/* Ensure proper stacking */
.editor-section {
    position: relative;
    z-index: 1;
}

.examples-section {
    position: relative;
    z-index: 0;
}

/* Fullscreen editor mode */
.left-panel.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
}

.left-panel.fullscreen .editor-container {
    max-height: calc(100vh - 200px);
}

/* Hide other panels when editor is fullscreen */
.main-container.editor-fullscreen .center-panel,
.main-container.editor-fullscreen .right-panel {
    display: none;
}

.main-container.editor-fullscreen .left-panel {
    grid-column: 1 / -1;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-color);
}

/* Editor Section */
.editor-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    flex-shrink: 0;
}

.editor-controls {
    display: flex;
    gap: 0.5rem;
}

.editor-container {
    display: flex;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
    background: #F8F8F8;
    min-height: 350px;
    max-height: 600px;
}

.line-numbers {
    background: #E8E8E8;
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    user-select: none;
    border-right: 1px solid var(--border-color);
    min-width: 50px;
    overflow-y: auto;
    white-space: pre;
    flex-shrink: 0;
}

.code-editor {
    flex: 1;
    padding: 0.75rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--text-color);
    tab-size: 4;
    overflow-y: auto;
    white-space: pre;
    word-wrap: normal;
}

.code-editor:focus {
    background: #FFFEF8;
    box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.2);
}

/* Syntax highlighting (basic) */
.code-editor::selection {
    background: #B3D7FF;
}

/* Add a subtle highlight for the current line */
.code-editor:focus::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5em;
    background: rgba(33, 150, 243, 0.05);
    pointer-events: none;
}

/* Sync scrolling for line numbers */
.editor-container::-webkit-scrollbar {
    width: 10px;
}

.editor-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.editor-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.editor-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.error-display {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.error-display.show {
    display: block;
}

.error-display.error {
    background: #FFEBEE;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.error-display.success {
    background: #E8F5E9;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.error-display.info {
    background: #E3F2FD;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Examples Section */
.examples-section {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.examples-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.example-btn {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.example-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.5s;
}

.example-btn:hover::before {
    left: 100%;
}

.example-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.example-btn:active {
    transform: translateY(0);
}

/* Settings Section */
.settings-section {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.slider-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slider-group input[type="range"] {
    flex: 1;
}

.number-input {
    width: 70px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

.select-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
}

/* Canvas Section */
.canvas-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.canvas-controls {
    display: flex;
    gap: 0.25rem;
}

.canvas-container {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#drawingCanvas {
    border: 1px solid var(--border-color);
    background: white;
    cursor: crosshair;
    max-width: 100%;
    max-height: 100%;
}

/* Canvas Legend */
.canvas-legend {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    vertical-align: middle;
}

.legend-line.solid {
    background: #2196F3;
}

.legend-line.dashed {
    background: linear-gradient(90deg, #999 50%, transparent 50%);
    background-size: 8px 2px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.start {
    background: #4CAF50;
}

.legend-dot.end {
    background: #F44336;
}

.canvas-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    transition: all 0.3s ease;
}

.canvas-info:hover {
    background: linear-gradient(to bottom, #f5f5f5, #fafafa);
}

/* 3D Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.preview-controls {
    display: flex;
    gap: 0.25rem;
}

.preview-container {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    position: relative;
    min-height: 400px;
}

#preview3D {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
}

.preview-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-info.ready {
    color: var(--success-color);
    font-weight: 500;
}

.preview-info.generating {
    color: var(--primary-color);
    font-weight: 500;
}

.preview-info.error {
    color: var(--error-color);
    font-weight: 500;
}

/* Export Section */
.export-section {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.export-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #E0E0E0;
    color: var(--text-color);
}

.btn-secondary:hover:not(:disabled) {
    background: #D0D0D0;
}

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

.btn-success:hover:not(:disabled) {
    background: #45A049;
}

.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-secondary);
}

/* Help Button */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

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

/* Help Modal Specific Styles */
.help-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

/* Help Tabs */
.help-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
}

.help-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.help-tab:hover {
    color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

.help-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.help-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.help-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Command Categories */
.command-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.command-category h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.command-item {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
}

.command-item code {
    color: var(--primary-color);
    font-weight: 600;
}

.command-item p {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.command-item pre {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Tutorials */
.tutorial-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.tutorial-item h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.tutorial-item pre {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin: 0.75rem 0;
}

/* Tips */
.tip-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #FF9800;
}

.tip-category h4 {
    margin: 0 0 0.75rem 0;
    color: #F57C00;
}

/* Shortcuts */
.shortcut-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 6px;
}

.shortcut-category h4 {
    margin: 0 0 0.75rem 0;
}

kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    font-family: monospace;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    margin: 0 0.1rem;
}

/* ===========================
   RETRO GREEN SCREEN THEME
   =========================== */

body.retro-theme {
    --bg-color: #001a00;
    --bg-secondary: #002200;
    --text-color: #33ff33;
    --text-secondary: #00cc00;
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --border-color: #006600;
    --shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    --shadow-lg: 0 0 20px rgba(0, 255, 0, 0.4);
    
    background: #000;
    font-family: 'Courier New', monospace;
}

body.retro-theme * {
    font-family: 'Courier New', Courier, monospace !important;
}

/* Scanline effect */
body.retro-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10000;
}

/* CRT glow effect */
body.retro-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 9999;
}

/* Header */
body.retro-theme .header {
    background: #001a00;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

body.retro-theme .header h1 {
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    letter-spacing: 2px;
}

body.retro-theme .subtitle {
    text-shadow: 0 0 5px #00ff00;
}

/* Panels */
body.retro-theme .left-panel,
body.retro-theme .center-panel,
body.retro-theme .right-panel {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
}

/* Buttons */
body.retro-theme .btn,
body.retro-theme .btn-primary,
body.retro-theme .btn-secondary,
body.retro-theme .btn-help,
body.retro-theme .btn-theme {
    background: #001a00;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-shadow: 0 0 5px #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

body.retro-theme .btn:hover {
    background: #002200;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

body.retro-theme .btn-primary {
    background: #003300;
}

/* Code Editor */
body.retro-theme .code-editor,
body.retro-theme .line-numbers {
    background: #000 !important;
    color: #33ff33 !important;
    border-color: #006600 !important;
    text-shadow: 0 0 5px #00ff00;
}

body.retro-theme .code-editor::selection,
body.retro-theme .code-editor::selection {
    background: #004400;
    color: #00ff00;
}

body.retro-theme .editor-container {
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.2);
}

/* Canvas */
body.retro-theme #drawingCanvas {
    background: #001100 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4) !important;
}

body.retro-theme .canvas-legend {
    background: rgba(0, 26, 0, 0.95);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

body.retro-theme .legend-line.solid {
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

body.retro-theme .legend-line.dashed {
    background: linear-gradient(90deg, #00cc00 50%, transparent 50%);
    background-size: 8px 2px;
}

body.retro-theme .legend-dot.start {
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

body.retro-theme .legend-dot.end {
    background: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}

/* 3D Preview */
body.retro-theme #preview3D {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

body.retro-theme .preview-info {
    background: linear-gradient(to bottom, #001a00, #002200);
    border-top-color: var(--primary-color);
    text-shadow: 0 0 5px #00ff00;
}

body.retro-theme .preview-info.ready {
    color: #00ff00;
}

body.retro-theme .preview-info.generating {
    color: #00ffff;
}

body.retro-theme .preview-info.error {
    color: #ff3333;
}

/* Examples */
body.retro-theme .example-btn {
    background: #001a00;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    text-shadow: 0 0 3px #00ff00;
}

body.retro-theme .example-btn:hover {
    background: #003300;
    border-color: var(--primary-color);
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* Inputs */
body.retro-theme input[type="range"] {
    background: #001a00;
}

body.retro-theme input[type="range"]::-webkit-slider-track {
    background: #003300;
    border: 1px solid var(--primary-color);
}

body.retro-theme input[type="range"]::-webkit-slider-thumb {
    background: var(--primary-color);
    box-shadow: 0 0 10px #00ff00;
}

body.retro-theme input[type="number"],
body.retro-theme select {
    background: #001a00;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

body.retro-theme input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* Section Headers */
body.retro-theme .section-header h2,
body.retro-theme h3 {
    color: var(--primary-color);
    text-shadow: 0 0 10px #00ff00;
}

/* Status messages */
body.retro-theme .success {
    background: #002200;
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

body.retro-theme .error {
    background: #220000;
    color: #ff3333;
    border-color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

body.retro-theme .info {
    background: #002222;
    color: #33ffff;
    border-color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Modal */
body.retro-theme .modal-content {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

body.retro-theme .help-tab {
    color: var(--text-secondary);
}

body.retro-theme .help-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-shadow: 0 0 5px #00ff00;
}

body.retro-theme .command-category,
body.retro-theme .tutorial-item,
body.retro-theme .tip-category,
body.retro-theme .shortcut-category {
    background: #002200;
    border-left-color: var(--primary-color);
}

body.retro-theme .command-item {
    background: #001a00;
    border-left-color: #004400;
}

body.retro-theme code {
    color: var(--primary-color);
    text-shadow: 0 0 3px #00ff00;
}

body.retro-theme pre {
    background: #000;
    border: 1px solid #006600;
}

/* Blink animation for retro feel */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

body.retro-theme .blink {
    animation: blink 1s infinite;
}

/* Add terminal cursor effect to focused editor */
body.retro-theme .code-editor:focus::after {
    content: '█';
    color: #00ff00;
    animation: blink 1s infinite;
}

/* Theme toggle button special styling */
body.retro-theme .btn-theme {
    background: #003300;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Scrollbars */
body.retro-theme ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.retro-theme ::-webkit-scrollbar-track {
    background: #001a00;
    border: 1px solid #006600;
}

body.retro-theme ::-webkit-scrollbar-thumb {
    background: #003300;
    border: 1px solid #00ff00;
}

body.retro-theme ::-webkit-scrollbar-thumb:hover {
    background: #004400;
    box-shadow: 0 0 10px #00ff00;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.help-section ul {
    list-style: none;
    padding-left: 0;
}

.help-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.help-section li:last-child {
    border-bottom: none;
}

.help-section code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 350px 1fr 350px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .left-panel {
        order: 1;
    }
    
    .center-panel {
        order: 2;
        min-height: 500px;
    }
    
    .right-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}
