body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
}

#particleCanvas {
    flex-grow: 1;
    height: 100vh;
    background: #000;
}

#controls {
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: rgba(42, 42, 42, 0.9);
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#debug {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
    white-space: pre;
}

.tool-group {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(51, 51, 51, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tool-group h3 {
    margin: 0 0 12px 0;
    color: #4a9eff;
    font-size: 1.1em;
}

.tool-btn {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background: #4a4a4a;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.tool-btn:hover {
    background: #5a5a5a;
    transform: translateY(-1px);
}

.tool-btn.active {
    background: #4a9eff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

.setting {
    margin: 8px 0;
}

.setting label {
    display: block;
    margin-bottom: 4px;
    color: #ccc;
    font-size: 0.9em;
}

.setting input[type="range"] {
    width: 100%;
    margin: 4px 0;
    -webkit-appearance: none;
    background: #4a4a4a;
    height: 4px;
    border-radius: 4px;
}

.setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #4a9eff;
    border-radius: 50%;
    cursor: pointer;
}

.setting span {
    font-size: 0.9em;
    color: #aaa;
}

.checkbox-setting {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.checkbox-setting input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-setting label {
    color: #ccc;
    font-size: 0.9em;
}

/* Scrollbar styling */
#controls::-webkit-scrollbar {
    width: 8px;
}

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

#controls::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.5);
    border-radius: 4px;
}

#controls::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.7);
}
