/* settings/css/settings_style.css - Versão "Blindada" para Jogo */

/* Reset & Fonte */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Verdana', sans-serif;
    background-color: #121212;
    /* Removemos fixed para o jogo não bugar o scroll */
    background-image: url('../../settings/bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

.main-content-area { 
    margin-top: 20px; 
    padding-bottom: 40px; 
    flex: 1; 
    width: 100%;
}

/* Container Principal */
.container {
    width: 96%; /* Tablet friendly */
    max-width: 1100px; 
    margin: 0 auto;
    
    /* FALLBACK DE FUNDO: Cor sólida primeiro, depois RGBA simples */
    background-color: #0f0f0f; 
    background: rgba(15, 15, 15, 0.95);
    
    border-radius: 12px; 
    padding: 25px;
    border: 2px solid #ff5000;  
    box-shadow: 0 0 50px rgba(0,0,0,0.9); /* Sombra mais forte pro jogo */
}

.section-header { 
    margin-bottom: 25px; border-bottom: 1px solid #333; padding-bottom: 15px; text-align: center;
}
.section-header h2 { color: #ff5000; margin-bottom: 5px; font-size: 22px; text-transform: uppercase; }
.section-header p { color: #888; font-size: 12px; }

/* --- LAYOUT DE COLUNAS (SEM GAP) --- */
/* O jogo não suporta 'gap', usamos margens negativas no pai e positivas nos filhos */
.settings-columns {
    display: flex; 
    flex-wrap: wrap; 
    margin: -10px; /* Compensa a margem dos filhos */
    align-items: flex-start; /* Impede que estiquem */
}

.settings-group {
    /* Cálculo para 3 colunas com margem */
    width: calc(33.333% - 20px); 
    margin: 10px;
    
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #333; 
    border-radius: 8px;
    padding: 15px; 
    min-width: 280px; /* Quebra linha se ficar muito pequeno */
    flex-grow: 1;
}

.group-title {
    color: #ff5000; font-size: 13px; margin-bottom: 15px; font-weight: bold;
    border-bottom: 2px solid #333; padding-bottom: 8px; text-transform: uppercase;
}

/* --- ITEM DA LISTA --- */
.setting-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 0; 
    border-bottom: 1px solid #2a2a2a;
}
.setting-item:last-child { border-bottom: none; }

.setting-info { 
    padding-right: 10px; 
    flex: 1; /* Ocupa o espaço sobrando */
}
.setting-label { font-size: 12px; color: #eee; font-weight: bold; display: block; }
.setting-desc { font-size: 10px; color: #999; display: block; margin-top: 3px; line-height: 1.3; }

/* --- SWITCH IPHONE STYLE --- */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #444; transition: .3s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px;
    left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%;
}
/* Cor Laranja quando ativo */
input:checked + .slider { background-color: #ff5000; }
input:checked + .slider:before { transform: translateX(22px); }

/* --- CARD FOV --- */
.fov-card {
    background: rgba(20, 20, 20, 0.8); 
    border: 1px solid #444; 
    border-radius: 8px;
    padding: 15px; 
    margin-bottom: 20px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; /* Garante que não quebre em resoluções baixas */
}
.fov-info { margin-bottom: 10px; min-width: 200px; }
.fov-label { font-size: 14px; font-weight: bold; color: #ff5000; }
.fov-desc { font-size: 11px; color: #888; }
.fov-controls { 
    display: flex; align-items: center; gap: 15px; 
    flex: 1; min-width: 250px; 
}

/* Slider FOV (Webkit force para o jogo) */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%;
    background: #ff5000; cursor: pointer; margin-top: -6px; border: 2px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #555; border-radius: 2px;
}
.fov-value { font-size: 18px; font-weight: bold; color: #fff; min-width: 40px; text-align: right; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 9999;
    display: none; justify-content: center; align-items: center;
}
.modal-box {
    background: #151515; border: 2px solid #ff5000; border-radius: 10px;
    padding: 25px; width: 80%; max-width: 400px; text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}
.modal-title { font-size: 18px; color: #ff5000; font-weight: bold; margin-bottom: 10px; }
.modal-text { font-size: 13px; color: #ddd; margin-bottom: 20px; }
.modal-btn {
    background: #ff5000; color: white; border: none; padding: 10px 25px;
    border-radius: 5px; font-weight: bold; cursor: pointer;
}

/* Login Wall */
.login-wall { text-align: center; padding: 40px 20px; }
.btn-login-large {
    display: inline-block; background: #171a21; color: white; padding: 12px 30px;
    border-radius: 5px; text-decoration: none; font-weight: bold; border: 2px solid #333; margin-top: 15px;
}

/* RESPONSIVIDADE PARA O JOGO (Tablet/Low Res) */
@media (max-width: 900px) {
    .settings-group { width: 100%; margin: 0 0 20px 0; } /* 1 Coluna em tela pequena */
    .settings-columns { display: block; margin: 0; }
    .container { padding: 15px; width: 98%; }
    .fov-card { flex-direction: column; text-align: center; }
    .fov-controls { width: 100%; margin-top: 10px; }
}
/* --- CORREÇÃO DEFINITIVA DO DROPDOWN (DATATABLES) --- */
.dataTables_wrapper select {
    color-scheme: dark; /* Instrui o navegador a usar controles dark */
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #ff5000 !important;
    padding: 5px;
    border-radius: 4px;
    outline: none;
}

.dataTables_wrapper select option {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

.dataTables_wrapper label {
    color: #aaa !important;
}