* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.2rem;
    color: #aaaaaa;
    font-weight: normal;
}

main {
    width: 100%;
    max-width: 1000px;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.9rem;
    color: #bbbbbb;
}

button, select {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}

button:hover:not(:disabled), select:hover:not(:disabled) {
    background-color: #444444;
    border-color: #555555;
}

button:disabled, select:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="range"] {
    cursor: pointer;
}

#bars-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.bar {
    background-color: #e0e0e0;
    width: 100%;
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease, background-color 0.1s ease;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .control-group {
        align-items: stretch;
    }
    #bars-container {
        height: 300px;
        gap: 1px;
    }
}
