/* Demo-specific overrides */
.dataset-buttons-section,
.dataset-info-box {
    width: 600px;
}

/* Custom dataset info styling for linear regression */
.dataset-info-title {
    color: #2c3e50;
    font-size: 14px;
}

.dataset-info-description {
    color: #555;
    font-size: 13px;
}

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

.dataset-section-label {
    font-size: 14px;
    color: #333;
}

.mae-equation {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}

.mse-equation {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
    border-left: 4px solid #9c27b0;
}

.r2-equation {
    transition: all 0.3s ease;
}

.r2-poor {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #f44336;
}

.r2-moderate {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
}

.r2-good {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}

.checkbox-container {
    margin-top: 15px;
}

.visualization-panel {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
}

.panel-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-input {
    width: 16px;
    height: 16px;
}

/* .equation base styling now handled by global styles.css */


.leaderboard-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
    width: 600px;
    max-width: 100%;
}

.leaderboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    transition: background-color 0.3s ease;
}

.status-indicator.connected {
    background: #27ae60;
}

.status-indicator.connecting {
    background: #f39c12;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.your-position {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 0;
    padding: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #0c5460;
    text-align: center;
    display: none;
}

.leaderboard-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 0;
    margin-bottom: 4px;
    background: white;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.leaderboard-entry.highlight {
    background: #fff3cd;
    border-color: #ffc107;
    font-weight: 600;
}

.leaderboard-rank {
    font-weight: 600;
    color: #495057;
    min-width: 30px;
}

.leaderboard-user {
    flex: 1;
    margin: 0 8px;
    color: #333;
}

.leaderboard-scores {
    text-align: right;
    font-size: 12px;
    color: #666;
}


.empty-leaderboard {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.leaderboard-separator {
    text-align: center;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    padding: 8px;
    margin: 4px 0;
}

/* Make solution button full width */
.solution-btn {
    width: 100%;
    margin-top: 15px;
}

/* Fine-tune buttons */
.label-with-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fine-tune-buttons {
    display: flex;
    gap: 4px;
}

.fine-tune-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: white !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.fine-tune-btn:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.fine-tune-btn:active {
    background: #e0e0e0 !important;
}