/* Boids (Flocking) Simulation - CSS */

.boids-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.boids-controls {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    width: 800px;
    margin: 0 auto;
    color: #fff;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.controls-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

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

.control-row label {
    min-width: 120px;
    color: #ccc;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.control-row input[type="range"] {
    flex: 1;
    cursor: pointer;
    min-width: 100px;
}

.control-row span {
    min-width: 40px;
    text-align: right;
    color: #00ffff;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.pattern-select {
    width: 100%;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.pattern-select:hover {
    border-color: #00ffff;
}

.pattern-select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.slider-container span {
    min-width: 40px;
    text-align: right;
    color: #00ffff;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.control-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.info-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.info-display div {
    margin-bottom: 5px;
}

.boids-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 800px;
    margin: 0 auto;
}

#boidsCanvas {
    border: 1px solid #444;
    border-radius: 4px;
    display: block;
    background: #1a1a1a;
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .boids-container {
        flex-direction: column;
    }
    
    .boids-controls {
        min-width: auto;
    }
}

