body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-image: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460);
}

#app-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header h1 {
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 15px;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

main {
    display: flex;
    gap: 20px;
    height: 650px;
}

.glass-panel {
    background-image: url("/aero ahh glow.png");
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 20px;
}

#controls-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#controls-panel h2 {
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
}

select, input[type="range"] {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
}

select:focus, button:focus {
    outline: 2px solid rgba(0, 255, 255, 0.7);
    outline-offset: 2px;
}

input[type="file"] {
    background: transparent;
    border: none;
    padding: 0;
}

input[type="file"]::file-selector-button {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

input[type="file"]::file-selector-button:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

select option {
    background-color: #16213e;
}

button {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#stop-button {
    border-color: rgba(255, 100, 100, 0.7);
    background: linear-gradient(145deg, rgba(255, 100, 100, 0.2), rgba(255, 100, 100, 0.1));
}

#stop-button:hover {
    background: linear-gradient(145deg, rgba(255, 100, 100, 0.3), rgba(255, 100, 100, 0.2));
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.5);
}

button:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: #888;
    box-shadow: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

#visualizer-container {
    flex: 2.5;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    width: 100%;
    height: 100%;
}

#complexity-info {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
}

#complexity-info h3 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#complexity-info p {
    margin: 5px 0;
}

footer {
    text-align: center;
}

footer p {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: rgba(224, 224, 224, 0.8);
}