/* Classification Demo Styles */

/* Demo area uses 2/3 + 1/3 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;
}

/* Predictions Table - uses horizontal-scroll pattern from phoebe.css */
/* Demo-specific cell styling */
.predictions-table tbody th {
    width: 80px;
}

.predictions-table tbody td {
    width: 50px;
}

/* Correct/Incorrect styling */
.predictions-table .correct-check {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.predictions-table .incorrect-x {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

/* Class color coding */
.predictions-table .class-0 {
    color: #3498db;
    font-weight: bold;
}

.predictions-table .class-1 {
    color: #ff9800;
    font-weight: bold;
}

/* Confidence color coding */
.predictions-table .confidence-high {
    background: #d4edda !important;
    color: #155724;
    font-weight: bold;
}

.predictions-table .confidence-medium {
    background: #fff3cd !important;
    color: #856404;
    font-weight: bold;
}

.predictions-table .confidence-low {
    background: #f8d7da !important;
    color: #721c24;
    font-weight: bold;
}

/* Control Row - Data Buttons and Classifier Selector */
.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) */

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

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