:root {
    --leaf-green: #7bbb5e;
    --light-leaf-green: #a8d685;
    --dark-tech-blue: #1a283e;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --black: #121212;
    --light-blue: #4a9bff;
    --orange: #ff7f00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-tech-blue);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-blue);
}

header h1 {
    color: var(--dark-tech-blue);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.playground-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.btn {
    padding: 0.75rem 1.25rem;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background-color: #3a8bff;
}

.btn-secondary {
    background-color: var(--orange);
}

.btn-secondary:hover {
    background-color: #e57200;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.control-group label {
    font-weight: 500;
    color: var(--dark-tech-blue);
}

.control-group input[type="range"] {
    width: 120px;
    accent-color: var(--light-blue);
}

.canvas-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
}

.canvas-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    background-color: var(--black);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stats-panel {
    width: 200px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

#drawing-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    border-radius: var(--border-radius);
    background-color: var(--black);
}

.silo-outline {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed var(--light-blue);
    border-radius: var(--border-radius);
    pointer-events: none;
    z-index: 1;
}

.info-panel {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--light-blue);
    box-shadow: var(--shadow);
}

.panel-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.panel-item:last-child {
    margin-bottom: 0;
}

.panel-item .label {
    font-weight: 600;
    color: var(--dark-tech-blue);
    margin-right: 0.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.panel-item .value {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--orange);
}

.tool-info {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--light-blue);
}

.tips {
    font-size: 0.8rem;
    color: var(--medium-gray);
    display: block;
    line-height: 1.4;
}

.results-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.results-container h2 {
    color: var(--dark-tech-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-blue);
}

.results-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-card h3 {
    margin-bottom: 1rem;
    color: var(--orange);
    font-size: 1.1rem;
}

#original-points-canvas,
#prediction-canvas {
    width: 100%;
    height: 250px;
    background-color: var(--black);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-blue);
}

footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-blue);
    color: var(--medium-gray);
}

/* Brush cursor */
.cursor-brush {
    position: fixed;
    border: 2px solid var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.7;
    display: none;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.1s, height 0.1s;
}

.cursor-brush.eraser {
    border-color: #ff5252;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .results-wrapper {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
        margin-left: 0;
    }
    
    .canvas-wrapper {
        flex-direction: column;
    }
    
    .stats-panel {
        width: 100%;
    }
} 