/* Settings Modal Styles */
.settings-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.settings-modal {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

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

.settings-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--logo-brown);
}

.close-settings-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-settings-btn:hover {
    color: var(--logo-red);
}

.settings-body {
    padding: 20px;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.setting-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.setting-item label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.setting-item input[type="number"],
.setting-item input[type="text"],
.setting-item select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 0;
    width: 100%;
    max-width: 200px;
}

.setting-item input[type="range"] {
    width: 100%;
    max-width: 300px;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.setting-item .setting-value {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

.checkbox-setting {
    flex-direction: row;
    align-items: center;
}

.checkbox-setting label {
    margin-bottom: 0;
    margin-right: 10px;
}

.checkbox-setting input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.settings-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.settings-footer button {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.save-settings-btn {
    background-color: var(--logo-red);
    border-color: var(--logo-red);
}

.save-settings-btn:hover {
    background-color: #b82922;
}

.reset-settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-modal {
        width: 95%;
        max-height: 80vh;
    }
    
    .settings-header h3 {
        font-size: 20px;
    }
    
    .setting-item {
        margin-bottom: 20px;
    }
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-image: linear-gradient(var(--logo-red), var(--logo-red));
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--logo-brown);
    cursor: pointer;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
}

input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--logo-red);
}
