body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    margin: 0;
    min-height: 100vh;
}

#app-container {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 200px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
}

#sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #ecf0f1;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
    flex-shrink: 0;
}

#level-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

/* Custom scrollbar for webkit browsers */
#level-list::-webkit-scrollbar {
    width: 8px;
}

#level-list::-webkit-scrollbar-track {
    background: #34495e;
    border-radius: 4px;
}

#level-list::-webkit-scrollbar-thumb {
    background: #5a6c7d;
    border-radius: 4px;
}

#level-list::-webkit-scrollbar-thumb:hover {
    background: #6c7b8a;
}

#level-list li {
    margin-bottom: 8px;
}

#level-list button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    background: #34495e;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#level-list button small {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

#level-list button:hover {
    background: #4a6741;
    transform: translateX(5px);
}

#level-list button.active {
    background: #27ae60;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#level-list button.completed {
    background: #3498db;
}

#level-list button.completed::after {
    content: " ✓";
    float: right;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#main-content h1 {
    margin-top: 0;
}

#game-info {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

#level-display {
    color: #2c3e50;
}

#moves-display {
    color: #7f8c8d;
}

#controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

#controls button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #2196f3;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

#controls button:hover {
    background: #1976d2;
}

#controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#game-container {
    display: inline-block;
    margin: 20px auto;
    background: #fff;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.row {
    display: flex;
}
.cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.wall {
    background: #444;
    color: #444;
}
.floor {
    background: #eee;
}
.target {
    background: #ffe082;
}
.box {
    background: #90caf9;
}
.box-on-target {
    background: #81c784;
}
.player {
    background: #ff8a65;
}
