.gd-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-column .view-panel {
    padding: 8px 10px 2px 10px;
    min-height: auto;
}

.right-column .view-title {
    font-size: 12px;
    margin-bottom: 2px;
}

.right-column canvas {
    display: block;
    margin: 0;
    padding: 0;
}

/* View panel styles moved to demo-common.css */

/* Common control styles now in demo-common.css */

.step-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.view-panel .step-controls {
    justify-content: center;
}

.view-panel .step-controls button {
    flex: 1;
    min-width: 0;
}

/* Button styles moved to demo-common.css */

.readout-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 10px 15px;
}

.readout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.readout-grid .readout-row {
    border-bottom: none;
    padding: 8px;
    background: white;
    border-radius: 0;
    border: 1px solid #e9ecef;
}

.readout-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.readout-row:last-child {
    border-bottom: none;
}

.readout-label {
    font-weight: 500;
    color: #6c757d;
}

.readout-value {
    font-family: monospace;
    font-weight: bold;
    color: #333;
}

.dataset-controls {
    margin-bottom: 15px;
}

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

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.history-container {
    margin-top: 10px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0;
    padding: 8px;
}

.history-title {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    max-height: 200px;
}

.history-scroll::-webkit-scrollbar {
    height: 8px;
}

.history-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
}

.history-scroll::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

.history-scroll::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

.history-table {
    width: auto;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.history-table tbody th {
    background: #343a40;
    color: white;
    padding: 4px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #23272b;
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 80px;
}

.history-table tbody td {
    padding: 3px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    background: white;
    font-family: monospace;
    font-size: 12px;
    min-width: 70px;
}

.history-table tbody td.current-iteration {
    background: #fff3cd;
    border: 2px solid #ffc107;
    font-weight: bold;
}

.history-table tbody tr:hover td {
    background: #e9ecef;
}

.history-table tbody tr:hover td.current-iteration {
    background: #ffe69c;
}

.history-table tbody tr:nth-child(odd) td {
    background: #f8f9fa;
}

.history-table tbody tr:nth-child(odd) td.current-iteration {
    background: #fff3cd;
}

.history-table tbody tr:nth-child(odd):hover td {
    background: #e2e6ea;
}

.history-table tbody tr:nth-child(odd):hover td.current-iteration {
    background: #ffe69c;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Canvas styling */
canvas {
    width: 100%;
    height: 400px;
    display: block;
}

/* Override parent demo-area flex to make vertical */
.demo-area {
    display: block !important;
}

/* Controls section at bottom */
.controls-bottom {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0;
    padding: 20px;
    margin-top: 20px;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gd-container {
        grid-template-columns: 1fr;
    }
}