body {
    margin: 0;
    overflow: hidden;
    background: #0A0A0A;
    font-family: 'Roboto', sans-serif;
    color: #FFF;
}

#container {
    width: 100%;
    height: 100vh;
}

#ui {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#title {
    font-size: 20px;
    color: #FFFFFF;
    letter-spacing: 20px;
    font-weight: 100;
    text-transform: uppercase;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    max-height: 80vh;
    overflow-y: auto;
    max-width: 350px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

/* Стили для прокрутки */
#controls::-webkit-scrollbar {
    width: 8px;
}

#controls::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 4px;
}

#controls::-webkit-scrollbar-thumb {
    background: #00FFCC;
    border-radius: 4px;
}

#controls::-webkit-scrollbar-thumb:hover {
    background: #00B3FF;
}

details {
    margin: 5px 0;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

summary {
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    color: #00FFCC;
    display: inline-block;
    list-style: none;
    position: relative;
    transition: color 0.3s;
}

summary:hover {
    color: #00B3FF;
}

details[data-group] summary {
    color: #00FFCC;
    font-size: 16px;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

details[data-group] summary::before {
    content: attr(data-group);
}

#settings {
    margin-top: 10px;
}

.group-title {
    font-size: 14px;
    margin: 5px 0;
    color: #00FFCC;
    text-align: center;
}

.control {
    margin: 8px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

label {
    font-size: 12px;
    width: 120px;
    flex-shrink: 0;
    color: #FFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="checkbox"] {
    width: 20px;
    accent-color: #00FFCC;
}

input[type="range"] {
    width: 100px;
    background: rgba(30, 30, 30, 0.8);
    -webkit-appearance: none;
    height: 5px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #00FFCC;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #00B3FF;
}

input[type="number"] {
    width: 50px;
    margin-left: auto;
    color: #FFF;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    padding: 2px 5px;
}

input[type="text"] {
    width: 120px;
    color: #FFF;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    padding: 2px 5px;
}

input[type="color"] {
    width: 40px;
    height: 20px;
    border: none;
    background: none;
    padding: 0;
}

select {
    width: 150px;
    padding: 4px;
    background: rgba(20, 20, 20, 0.7);
    color: #FFF;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

select option {
    background: rgba(30, 30, 30, 0.8);
    color: #00FFCC;
}

select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%2300FFCC" d="M0 0h10L5 5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
}

.control-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 5px 10px;
    background: rgba(0, 255, 204, 0.2);
    color: #FFF;
    border: 1px solid rgba(0, 255, 204, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

button:hover {
    background: rgba(0, 255, 204, 0.5);
    color: #000;
}

#info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #B0B0B0;
}

#help-button {
    margin-top: 10px;
}

#help-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    color: #FFF;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.help-content {
    font-size: 14px;
    line-height: 1.5;
}

.help-content p {
    margin: 10px 0;
}

.help-content strong {
    color: #00FFCC;
    font-weight: normal;
}

/* Скрытые элементы по умолчанию */
.emit-time-extra,
.collider-extra,
.force-extra,
.noise-extra,
.orbital-pattern-extra,
.background-extra,
.central-object-extra {
    display: none;
}

.emit-time-extra.visible,
.collider-extra.visible,
.force-extra.visible,
.noise-extra.visible,
.orbital-pattern-extra.visible,
.background-extra.visible,
.central-object-extra.visible {
    display: flex;
}