/* css/settings.css — Settings panel */

.settings-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 7000;
    justify-content: center;
    align-items: center;
}

.settings-panel {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.settings-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.settings-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
}

.settings-close:hover { color: #fff; }

.settings-content {
    padding: 16px 20px;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-label {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: bold;
}

.settings-group input[type="range"] {
    width: calc(100% - 50px);
    vertical-align: middle;
    accent-color: #FFD700;
}

.settings-value {
    color: #FFD700;
    font-size: 13px;
    margin-left: 8px;
}

.settings-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #444;
    border-radius: 26px;
    transition: 0.3s;
}

.settings-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: #4CAF50;
}

.settings-toggle input:checked + .settings-toggle-slider::before {
    transform: translateX(22px);
}

.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-btn {
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.settings-btn-danger {
    border-color: rgba(255,50,50,0.4);
    color: #ff6666;
}

.settings-btn-danger:hover {
    background: rgba(255,50,50,0.2);
    border-color: rgba(255,50,50,0.6);
}
