body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 12px;
    background-color: #f5f5f5;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
}

.title {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    margin: 0;
    display: inline-block;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.title::after {
    display: none;
}

.webgpu-status {
    font-size: 16px;
    margin-left: 10px;
    font-weight: 500;
    opacity: 0.9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.supported {
    color: #2ecc71;
    position: relative;
    padding: 4px 12px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
}

.not-supported {
    color: #e74c3c;
    position: relative;
    padding: 4px 12px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
}

.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent,
        rgba(0, 0, 0, 0.15) 20%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.15) 80%,
        transparent
    );
    margin: 15px 0 25px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.editor-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.editor-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.editor-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.editor-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wgsl-logo {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-image: url('WebGPU_logo.svg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.editor-actions {
    display: flex;
    gap: 12px;
}

.button {
    padding: 8px 16px;
    font-size: 13px;
}

.run-button {
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

.run-button:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.run-button::before {
    content: '▶';
    font-size: 12px;
}

.clear-button {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.clear-button:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.clear-button::before {
    content: '×';
    font-size: 16px;
}

#shader-editor {
    width: 100%;
    height: 500px;
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    background-color: #ffffff;
    color: #2c3e50;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.CodeMirror {
    height: 600px !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    border-radius: 8px !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border: 1px solid #e0e0e0 !important;
}

.CodeMirror-gutters {
    border-right: 1px solid #e0e0e0 !important;
    background-color: #f8f9fa !important;
}

.CodeMirror-linenumber {
    color: #95a5a6 !important;
    padding: 0 15px 0 10px !important;
}

/* WGSL Syntax Highlighting for light theme */
.cm-keyword { color: #000080 !important; } /* darker blue */
.cm-def { color: #006400 !important; } /* darker green */
.cm-variable { color: #000000 !important; } /* black */
.cm-number { color: #006400 !important; } /* darker green */
.cm-operator { color: #000000 !important; } /* black */
.cm-comment { color: #006400 !important; } /* darker green */
.cm-string { color: #800000 !important; } /* darker red */
.cm-builtin { color: #4B0082 !important; } /* darker purple */
.cm-punctuation { color: #000000 !important; } /* black */
.cm-property { color: #000080 !important; } /* darker blue */
.cm-attribute { color: #000080 !important; } /* darker blue */
.cm-qualifier { color: #000080 !important; } /* darker blue */
.cm-type { color: #000080 !important; } /* darker blue */
.cm-storage { color: #000080 !important; } /* darker blue */
.cm-statement { color: #000080 !important; } /* darker blue */
.cm-constant { color: #006400 !important; } /* darker green */
.cm-parameter { color: #000000 !important; } /* black */
.cm-function { color: #000080 !important; } /* darker blue */
.cm-meta { color: #000080 !important; } /* darker blue */
.cm-bracket { color: #000000 !important; } /* black */
.cm-tag { color: #000080 !important; } /* darker blue */
.cm-header { color: #000080 !important; } /* darker blue */
.cm-quote { color: #006400 !important; } /* darker green */
.cm-hr { color: #000080 !important; } /* darker blue */
.cm-link { color: #000080 !important; } /* darker blue */
.cm-rangeinfo { color: #000080 !important; } /* darker blue */
.cm-minus { color: #800000 !important; } /* darker red */
.cm-plus { color: #006400 !important; } /* darker green */
.cm-atom { color: #006400 !important; } /* darker green */

.CodeMirror-selected { background: #add6ff !important; }
.CodeMirror-cursor { border-left: 2px solid #2c3e50 !important; }
.CodeMirror-line { padding: 0 8px !important; }

.output-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

#verification-result {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
}

#verification-result.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

#verification-result.success::before {
    content: '✓';
    font-weight: bold;
}

#verification-result.failure {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

#verification-result.failure::before {
    content: '×';
    font-weight: bold;
}

.controls-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.matrix-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.matrix-controls label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.matrix-controls select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.matrix-controls select:hover {
    border-color: #adb5bd;
}

.matrix-controls select:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

@media (max-width: 1200px) {
    .editor-container {
        grid-template-columns: 70% 30%;
    }
}

@media (max-width: 1024px) {
    .editor-container {
        grid-template-columns: 1fr;
        max-width: 95%;
    }
    
    body {
        padding: 8px;
    }
}

.correct {
    color: #2ecc71;
}

.incorrect {
    color: #e74c3c;
}

.stats {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: monospace;
    white-space: pre-wrap;
}

.control-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.control-group label {
    min-width: 120px;
    margin-right: 10px;
}

.control-group input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.control-group input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
} 