body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    color: white;
}

input[type="number"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    padding: 5px;
    width: 80px;
    margin: 0 5px;
}

.checkbox-container {
    margin: 8px 0;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #4fc3f7;
    cursor: pointer;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#controls {
    position: absolute;
    opacity: 0.7;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    width: 200px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.control-section {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.control-section h3 {
    margin: 0;
    padding: 5px;
    color: #4fc3f7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.control-section h3:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-section h3::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #4fc3f7;
}

.control-section.collapsed h3::after {
    transform: rotate(-90deg);
}

.control-content {
    padding: 0 15px 15px 15px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.control-section.collapsed .control-content {
    max-height: 0 !important;
    padding: 0 15px !important;
    opacity: 0;
}

.mode-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.mode-select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    outline: none;
}

.mode-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.mode-select:focus {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.5);
}

.mode-select option {
    background: #263238;
    color: white;
    padding: 8px;
}

.slider-container {
    margin: 10px 0;
}

.slider-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

#info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.4;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#status {
    position: absolute;
    opacity: 0.7;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #81c784);
    width: 0%;
    transition: width 0.3s ease;
}

.value-display {
    color: #4fc3f7;
    font-weight: bold;
}

input[type="number"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    padding: 5px;
    width: 80px;
    margin: 0 5px;
}