/* Sort Colors - Algorithm-specific styles */

/* Color-coded array boxes */
.array-box.color-0 {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-color: #ff6666;
}

.array-box.color-1 {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    border-color: #ffffff;
    color: #333;
}

.array-box.color-2 {
    background: linear-gradient(135deg, #4444ff 0%, #0000cc 100%);
    border-color: #6666ff;
}

/* Info box colors */
.info-box.low h3 {
    color: #ff4444;
}

.info-box.mid h3 {
    color: #ffaa00;
}

.info-box.high h3 {
    color: #4444ff;
}

.pointer-desc {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Regions display */
.regions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.region {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #2a2a4a;
    border-radius: 8px;
}

.region-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.region-color.red {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.region-color.white {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
}

.region-color.blue {
    background: linear-gradient(135deg, #4444ff 0%, #0000cc 100%);
}

.region-label {
    font-size: 14px;
}

.region-range {
    color: #888;
    font-size: 12px;
}

/* Legend colors */
.legend-color.color-red {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-color: #ff6666;
}

.legend-color.color-white {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    border-color: #ffffff;
}

.legend-color.color-blue {
    background: linear-gradient(135deg, #4444ff 0%, #0000cc 100%);
    border-color: #6666ff;
}

/* Pointer legend */
.pointer-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pointer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.pointer-item.low {
    color: #ff4444;
}

.pointer-item.mid {
    color: #ffaa00;
}

.pointer-item.high {
    color: #4444ff;
}

/* Pointer styles for array */
.pointer.low {
    color: #ff4444;
}

.pointer.mid {
    color: #ffaa00;
}

.pointer.high {
    color: #4444ff;
}

/* Info panel layout */
.info-panel {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .info-panel {
        grid-template-columns: 1fr;
    }
}
