/* 2D Classification Demo Styles */

/* Demo area uses 70/30 layout */
.demo-area {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Left Column Wrapper - contains chart and control panels (~70%) */
.left-column-wrapper {
    flex: 0 0 calc((100% - 20px) * 0.70);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Controls panel (~30%) */
.controls {
    flex: 0 0 calc((100% - 20px) * 0.30);
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    box-sizing: border-box;
}

/* Control Row - Data Buttons Panel */
.control-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Data Buttons Panel */
.data-buttons-panel {
    flex: 0 0 auto;
    border: 2px solid #ddd;
    border-radius: 0;
    background: white;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.data-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.data-btn:last-child {
    margin-bottom: 0;
}

.data-btn:hover {
    background: #2980b9;
}

.data-btn:active {
    background: #21618c;
}

/* Color variations for data buttons */
#generate-data-btn {
    background: #27ae60;
}

#generate-data-btn:hover {
    background: #229954;
}

#generate-data-btn:active {
    background: #1e8449;
}

#clear-data-btn {
    background: #e74c3c;
}

#clear-data-btn:hover {
    background: #c0392b;
}

#clear-data-btn:active {
    background: #a93226;
}

#solution-btn {
    background: #9b59b6;
}

#solution-btn:hover {
    background: #8e44ad;
}

#solution-btn:active {
    background: #7d3c98;
}

/* Fancybox customization (styles come from phoebe.css) */

/* Metric boxes in controls section */
.controls .metriclabel {
    position: relative;
    margin-bottom: 0;
}

/* Dataset Buttons Section - minimal demo-specific styling */
.dataset-buttons-section {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 0;
    background: white;
}

.dataset-section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.dataset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

/* Dataset buttons use common button patterns from phoebe.css */
/* Demo-specific colors - always visible */
.dataset-btn {
    padding: 10px 15px;
    border: 2px solid;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.dataset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.structures-btn {
    border-color: #3498db;
    background: #3498db;
}

.geotech-btn {
    border-color: #27ae60;
    background: #27ae60;
}

.transport-btn {
    border-color: #e67e22;
    background: #e67e22;
}

.environment-btn {
    border-color: #9b59b6;
    background: #9b59b6;
}

/* Dataset info box */
.dataset-info-box {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: none;
}

.dataset-info-box.active {
    display: block;
}

.dataset-info-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.dataset-info-description {
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.dataset-info-variables {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Responsive layout */
@media (max-width: 768px) {
    .demo-area {
        flex-direction: column;
    }

    .left-column-wrapper,
    .controls {
        flex: 1 1 100%;
        width: 100%;
    }

    .dataset-buttons {
        grid-template-columns: 1fr;
    }
}
