/* Debug controls panel */
#controls-container {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(20, 20, 40, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #4a4a8a;
    color: white;
    z-index: 200;
    pointer-events: auto;
    width: 280px;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
    pointer-events: none; /* Prevent interaction when hidden */
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#controls-container h3 {
    margin: 0;
    text-align: center;
    font-size: 1.1em;
    color: #c58aff;
}

#copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.value-input {
    font-weight: bold;
    color: #eadaff;
    background-color: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    border: 1px solid rgba(255,255,255,0.1);
    width: 70px;
    text-align: right;
    -moz-appearance: textfield; /* Firefox */
}

.value-input:hover {
    cursor: ew-resize;
}

.value-input::-webkit-outer-spin-button,
.value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Safari and Chrome */
}

label {
    font-size: 0.9em;
}

/* Accordion Styles */
details {
    border-bottom: 1px solid rgba(138, 138, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

details:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* Remove default marker */
    padding: 5px 0;
    color: #b39ddb;
    font-size: 1em;
}

summary::-webkit-details-marker {
    display: none; /* Chrome */
}

summary::before {
    content: '+';
    margin-right: 10px;
    font-weight: bold;
}

details[open] > summary::before {
    content: '−';
}

details .control-group-content {
    padding-top: 10px;
}

/* Mobile controls container - visible inside pause menu */
#mobile-controls-container {
    display: none; 
    margin-top: 20px; 
    background-color: rgba(10, 10, 20, 0.5); 
    padding: 15px; 
    border-radius: 10px; 
    border-top: 1px solid #4a4a8a; 
    width: 90%; 
    max-width: 320px;
}

#mobile-controls-container details {
    margin-bottom: 15px;
}

#mobile-controls-container summary {
    color: #c58aff; 
    font-size: 1.1em;
}

#mobile-controls-container .control-item {
    margin-bottom: 20px;
}

#mobile-controls-container .control-item:last-child {
    margin-bottom: 0;
}

#mobile-controls-container .control-item[style*="flex-direction: column"] {
    margin-top: 15px;
}

#mobile-controls-container .control-item[style*="margin-top: 20px"] {
    margin-top: 20px;
}

#mobile-controls-container .control-item[style*="justify-content: flex-start"] {
    justify-content: flex-start;
}

#mobile-controls-container input[type="range"] {
    width: 100%;
}

#mobile-controls-container input[type="checkbox"] {
    margin-right: 10px; 
    width: 20px; 
    height: 20px;
}

#control-mode-toggle {
    background: rgba(255,255,255,0.1); 
    border: 1px solid #8a8aff; 
    color: white; 
    padding: 5px 10px; 
    border-radius: 5px; 
    cursor: pointer;
}
