/*
================================================================================
FILE: style.css
VERSION: 1.0.0
AUTHOR: Gemini Assistant & [Your Name]
DESCRIPTION: UI layout for sidebar, sliders, and canvas responsiveness.
================================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: #1a1e24;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100vh;
    white-space: nowrap;
}

.app-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: 100vh;
    min-width: min-content;
}

.sidebar {
    width: 320px;
    background: rgba(20, 22, 27, 0.98);
    backdrop-filter: blur(2px);
    color: #f0f0f0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    z-index: 10;
}

.sidebar::-webkit-scrollbar { width: 5px; background: #2c2f36; }
.sidebar::-webkit-scrollbar-thumb { background: #e67e22; border-radius: 10px; }

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-left: 3px solid #e67e22;
    padding-left: 10px;
}

.control-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.slider-group {
    margin-bottom: 12px;
}
.slider-group:last-child {
    margin-bottom: 0;
}

label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 6px;
}

.val {
    color: #f39c12;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 800;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    background: #2c3e50;
    height: 4px;
    border-radius: 10px;
    -webkit-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f39c12;
    cursor: pointer;
    border: none;
}

.clearance-box {
    background: #1e2a2e;
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0;
    text-align: center;
    border-left: 4px solid #3498db;
}
.clearance-label { font-size: 9.5px; opacity: 0.8; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; white-space: normal;}
.clearance-value {
    font-size: 18px;
    font-weight: 800;
    color: #3498db;
}

.legend {
    font-size: 9.5px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 10px;
    margin-top: 12px;
    border-left: 3px solid #e67e22;
    white-space: normal;
}
.legend b { color: #ffaa66; }

.warning-badge {
    background: rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 10px;
    margin-top: 12px;
    color: #ffb3a1;
    font-weight: 500;
    white-space: normal;
}

.fold-panel {
    background: #0f1a1f;
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #2c3e50;
}

.canvas-wrapper {
    flex: 1;
    min-width: 750px;
    height: 100vh;
    position: relative;
    background: #eef2f5;
    overflow: hidden;
}
#canvas-container {
    width: 100%;
    height: 100%;
    display: block;
}
.view-hint {
    position: absolute;
    bottom: 18px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 30px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
    z-index: 20;
    font-family: monospace;
}
