/*
=====================================================================
Copyright 2026 Faris Muhammad

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=====================================================================
*/

#spawnMenu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 1px solid var(--border-color, #333333);
    border-radius: 8px;
    padding: 18px;
    color: var(--fg-color, #ffffff);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    width: 340px;
}

#spawnMenu h3 {
    font-size: 13px;
    color: #888888;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#spawnMenu .menu-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: start;
}

#spawnMenu .menu-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

#spawnMenu .section-title {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#spawnMenu .section-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#spawnMenu button {
    width: 100%;
    padding: 8px 10px;
    background: #262626;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--fg-color, #ffffff);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#spawnMenu button:hover {
    background: #333333;
    border-color: #555555;
}

#spawnMenu .cancel-btn {
    background: transparent;
    border: 1px solid var(--border-color, #333333);
    text-align: center;
    color: #888888;
}

#spawnMenu .cancel-btn.footer-cancel {
    width: 100%;
    margin-top: 4px;
}

#spawnMenu .cancel-btn:hover {
    background: #262626;
    color: var(--fg-color, #ffffff);
    border-color: var(--fg-color, #ffffff);
}

/* --- Bus Config Modal Fix --- */

#busConfigModal {
    display: none;
    grid-column: span 2;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333333;
    font-size: 13px;
}

#busConfigModal label {
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    color: #aaaaaa;
}

#busConfigModal select,
#busConfigModal input {
    width: 100%;
    padding: 6px 8px;
    background: #262626;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    margin-bottom: 4px;
}

#busConfigModal .config-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

#busConfigModal button {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
}
