
/* Chess board colors */
.white-square {
    background-color: #f0d9b5;
}

.black-square {
    background-color: #b58863;
}

.highlight {
    background-color: rgba(255, 255, 0, 0.4);
}

.possible-move {
    background-color: rgba(0, 255, 0, 0.4);
}

.selected {
    background-color: rgba(255, 165, 0, 0.4);
}
.check {
    background-color: rgba(255, 0, 0, 0.4);
}

/* Learn page styles */
.lesson-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.lesson-icon {
    stroke-width: 1.5;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Chess piece animation */
.piece {
    font-size: 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.piece:hover {
    transform: scale(1.1);
}

/* Board flip animation */
#chessboard.flipped {
    transform: rotate(180deg);
}

#chessboard.flipped .piece {
    transform: rotate(180deg);
}

/* Algorithm Visualizer Styles */
.array-bar {
    transition: all 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.array-bar.comparing {
    background-color: #f59e0b !important;
}

.array-bar.swapping {
    background-color: #ef4444 !important;
}

.array-bar.sorted {
    background-color: #10b981 !important;
}

.array-bar.pivot {
    background-color: #8b5cf6 !important;
}

.array-bar.current {
    background-color: #3b82f6 !important;
}

/* Algorithm controls */
.control-panel {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.visualization-container {
    min-height: 400px;
    background: #1f2937;
}

/* Pseudocode styling */
.pseudocode {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .piece {
        font-size: 1.5rem;
    }
    
    .array-bar {
        margin: 0 1px;
    }
}
