body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background-color: #121212;
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    /* display: flex;
    justify-content: center;
    align-items: flex-start; */
}

.app-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* centers it horizontally */
}

/* Control Panel Styles */
.control-panel {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    width: 260px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-group {
    margin-bottom: 20px;
}

.control-group h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: normal;
    color: #a0a0a0;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.dimension-inputs input {
    width: 50px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.dimension-label {
    font-size: 14px;
    color: #e0e0e0;
}

.slider-container {
    position: relative;
    margin: 8px 0;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6a8caf;
    cursor: pointer;
}

.slider-value {
    display: block;
    font-size: 12px;
    color: #a0a0a0;
    margin-top: 5px;
}

.algorithm-select {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.speed-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.speed-btn {
    flex: 1;
    background-color: #2a2a2a;
    border: none;
    color: #e0e0e0;
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.speed-btn.active {
    background-color: #6a8caf;
    color: #121212;
    font-weight: bold;
}

.speed-btn:hover:not(.active) {
    background-color: #3a3a3a;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.primary-btn {
    background: linear-gradient(90deg, #6a8caf, #9c6aa8);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
    font-weight: bold;
}

.secondary-btn {
    background-color: #2a2a2a;
    border: none;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.primary-btn:hover, .secondary-btn:hover {
    opacity: 0.9;
}

.primary-btn:disabled, .secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.maze-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

canvas {
    border: 1px solid #333;
    max-width: 100%;
    height: auto;
}

.stats-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stats-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: #a0a0a0;
}

.stat-value {
    font-size: 16px;
    color: #e0e0e0;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6a8caf, #9c6aa8);
    width: 0%;
    transition: width 0.3s ease;
}
.main-header {
    text-align: center;
    margin: 20px 0;
}

.main-header h1 {
    font-size: 2em;
    margin: 0;
    font-weight: bold;
}

.signature {
    font-size: 0.5em;
    font-style: italic;
    margin-left: 10px;
    background: linear-gradient(90deg, #6a8caf, #9c6aa8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

