/*
Theme Name: Bolão VIP Pro - Oficial Concurso
Theme URI: https://regularizemeibrasil.com.br
Author: Leandro Rodrigues
Description: Versão 16.0: abas, importação TXT e gestão protegida pelo WordPress.
Version: 21.0.0
License: GNU General Public License v2 or later
Text Domain: bolao-vip-pro
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #0b1329 !important; color: #f1f5f9; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; min-height: 100vh; }
.ball-loto { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.45), inset 2px 2px 5px rgba(255,255,255,0.4), 0 3px 6px rgba(0,0,0,0.3); transition: all 0.2s ease-in-out; }
.switch-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }

/* V15: Mega-Sena verde e Lotofácil roxo, com leitura clara. */
:root{--lottery:#209869;--lottery-dark:#146544;--lottery-soft:#e8f5ee}
body[data-lottery="loto"]{--lottery:#930089;--lottery-dark:#65005e;--lottery-soft:#f8eaf6}
html body{background:#f2f6f4!important;color:#173b30!important}
body [class*="bg-slate-9"],body [class*="bg-slate-8"]{background:#fff!important}
body [class*="text-white"],body [class*="text-slate-1"],body [class*="text-slate-2"],body [class*="text-slate-3"]{color:#173b30!important}
body [class*="text-slate-4"],body [class*="text-slate-5"]{color:#53675e!important}
body [class*="border-slate"]{border-color:#d7e5de!important}
body [class*="bg-emerald-6"],body [class*="bg-fuchsia-7"]{background:var(--lottery)!important;color:#fff!important}
body [class*="text-emerald"],body [class*="text-amber"]{color:var(--lottery-dark)!important}
body button[class*="bg-emerald"],body label[class*="bg-emerald"],body span[class*="bg-emerald-6"],#header-badge{color:white!important}
body [class*="shadow"]{box-shadow:0 4px 16px #123c2410!important}
body [class*="bg-red"]{background:#fee2e2!important;color:#991b1b!important}
body [class*="bg-emerald-600/30"]{background:#dcfce7!important;color:#166534!important}
body .ball-input{background:#fff!important;color:#173b30!important}
#banner-virada{background:linear-gradient(120deg,#e0f1e8,#fff8d8)!important;border-color:#209869!important}
.view-nav{display:flex;gap:8px;flex-wrap:wrap}.view-nav button{flex:1;padding:14px 12px;border:1px solid #cfdfd6;border-radius:12px;background:#fff;color:#174a36;font-weight:700}
.view-nav button[aria-pressed="true"]{background:var(--lottery);color:#fff}
[hidden],[data-admin-control][hidden]{display:none!important}
button,input,label{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #f5ad27;outline-offset:3px}
@media(max-width:640px){.view-nav button{min-width:100px;font-size:12px}header{position:relative!important}#volante-grid{gap:4px!important}}

/* V016: azul Caixa, áreas de contraste e identificação dos participantes. */
:root{--caixa-blue:#005ca9;--caixa-deep:#003b70;--caixa-orange:#f39200}
html body{background:linear-gradient(145deg,#d8e8f5 0%,#e6eff6 45%,#cddfee 100%)!important;color:#17374d!important}
body header[class]{background:linear-gradient(115deg,#003b70,#005ca9)!important;border-bottom:4px solid var(--caixa-orange)!important}
body header h1,body header #header-tag{color:#fff!important}
body header #header-tag{opacity:.88}
body header #user-session-container{border-radius:12px}
body main>section{background:#f6faff!important;border-color:#bfd3e4!important;border-top:4px solid var(--caixa-blue)!important}
body main>section>div:first-child{border-color:#c6d9e9!important}
body main>div[class*="grid-cols-3"]{background:#d1e3f2!important;border-color:#b1cce2!important}
body .view-nav{padding:8px;background:#c4dced;border-radius:18px;border:1px solid #a7c5dc}
body .view-nav button{background:#eaf3fa;color:#00477f;border-color:#a7c5dc}
body .view-nav button[aria-pressed="true"]{background:linear-gradient(120deg,#00477f,#0070bd);color:#fff;border-color:#005ca9;box-shadow:0 3px 10px #005ca930}
body main h2,body main h3{color:#00477f!important}
body #tabela-participantes-body tr{background:#f6faff!important}
body #tabela-participantes-body tr:nth-child(even){background:#e5eff7!important}
body #tabela-participantes-body td.participant-name{color:#003b70!important;font-size:14px;font-weight:800;min-width:200px;white-space:normal;line-height:1.5}
body [data-view-panel="participantes"] thead{background:#005ca9!important;color:#fff!important}
body [data-view-panel="participantes"] thead th{color:#fff!important;padding-top:14px;padding-bottom:14px}
body #jogos-lista-container>div{background:#e6eff7!important;border-color:#bed4e6!important}
body #volante-grid{background:#d9e9f5;padding:12px;border-radius:12px}
body #volante-grid button{border-color:#a7c5dc!important}
body .ball-input{background:#e8f2fa!important;border-color:#80b1d3!important;color:#003b70!important}
body #btn-open-login,body #btn-download-modelo,body #btn-download-modelo-parts{background:#005ca9!important;color:#fff!important;border-color:#72a8d0!important}
body #banner-virada{background:linear-gradient(115deg,#00477f,#0069b5)!important;border-color:#f39200!important}
body #banner-virada div,body #banner-virada h2,body #banner-virada p{color:#fff!important}
body #banner-virada h2{color:#ffcf70!important}
body #header-icon{color:#fff!important}
@media(max-width:640px){body #tabela-participantes-body td.participant-name{min-width:165px;font-size:13px}}

/* V019: celular e tablet, sem alterar o layout de desktop. */
#bolao-vip-app{width:100%;min-width:0}
#bolao-vip-app main,#bolao-vip-app section,#bolao-vip-app section>div{min-width:0}
#bolao-vip-app img{max-width:100%;height:auto}
#bolao-vip-app button,#bolao-vip-app label{overflow-wrap:anywhere}
#inputs-dezenas-grid input{min-width:0;width:100%}
#modal-login-backdrop,#modal-comprovante-backdrop{overflow-y:auto;overscroll-behavior:contain;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
#modal-login-backdrop>div,#modal-comprovante-backdrop>div{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(max-width:1100px){
 #bolao-vip-app header{position:relative!important}
 #bolao-vip-app header>div{flex-wrap:wrap;gap:14px}
 #bolao-vip-app header>div>div:last-child{flex-wrap:wrap;justify-content:center}
 #bolao-vip-app header button,#bolao-vip-app header label{min-height:44px;justify-content:center}
 #bolao-vip-app main{padding-top:16px;padding-bottom:24px}
 #bolao-vip-app main>section{padding:20px}
 #bolao-vip-app main>section>div:first-child{flex-wrap:wrap;gap:12px}
 #placar-container{max-width:100%}
 #placar-container>div{flex-wrap:wrap}
 #volante-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
 #volante-grid button{min-height:44px;height:auto;font-size:15px}
 #bolao-vip-app input:not([type="checkbox"]){font-size:16px}
 #bolao-vip-app .view-nav button{min-height:48px}
 .participants-table-wrap{max-width:100%;overscroll-behavior-x:contain}
 body [data-view-panel="participantes"] table{font-size:13px}
}
@media(min-width:768px) and (max-width:1100px){
 #bolao-vip-app header>div{flex-direction:column;align-items:stretch}
 #bolao-vip-app header>div>div:first-child{justify-content:center}
 #bolao-vip-app main>section{padding:22px}
 #volante-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important}
 body[data-lottery="loto"] #volante-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:767px){
 #bolao-vip-app header>div{padding:14px 12px;align-items:stretch}
 #bolao-vip-app header>div>div:first-child{justify-content:center}
 #bolao-vip-app header>div>div:last-child{display:flex;width:100%;gap:8px}
 #bolao-vip-app header [data-admin-control]{flex:1 1 140px}
 #user-session-container{width:100%}
 #user-session-container>button,#user-session-container>div{width:100%;justify-content:center;flex-wrap:wrap;min-height:44px}
 #bolao-vip-app main{padding-left:10px;padding-right:10px}
 #bolao-vip-app main>section{padding:14px;border-radius:14px}
 #bolao-vip-app main>section>div:first-child{flex-direction:column;align-items:stretch}
 #bolao-vip-app .view-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:5px}
 #bolao-vip-app .view-nav button{min-width:0;padding:10px 5px;font-size:12px}
 #bolao-vip-app main>div.grid{gap:5px}
 #bolao-vip-app main>div.grid button{min-width:0;min-height:58px;padding:8px 4px;font-size:12px}
 #placar-container>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #placar-container>div>div{min-width:0;padding:8px 4px}
 #inputs-dezenas-grid{gap:5px!important}
 #inputs-dezenas-grid input{height:46px;font-size:18px!important;padding:0}
 #bolao-vip-app [data-view-panel="palpites"]>div.grid{display:block}
 #bolao-vip-app [data-view-panel="palpites"]>div.grid>div{padding:12px;margin-top:12px}
 #label-volante-qtd{max-width:65%}#contador-volante{max-width:35%;text-align:right}
 #btn-gen-surpresinha,#btn-gen-surpresinha-max,#btn-save-palpite,#btn-clear-volante{min-height:44px;flex:1 1 120px;justify-content:center}
 #bolao-vip-app [data-view-panel="participantes"] table,#bolao-vip-app [data-view-panel="participantes"] tbody{display:block;width:100%}
 #bolao-vip-app [data-view-panel="participantes"] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #bolao-vip-app #tabela-participantes-body tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #b8d0e3;border-radius:12px;margin:10px 0;overflow:hidden;padding:8px}
 #bolao-vip-app #tabela-participantes-body td{display:block;min-width:0;padding:8px;overflow-wrap:anywhere;border:0}
 #bolao-vip-app #tabela-participantes-body td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#4c6a80;font-weight:700;margin-bottom:4px}
 #bolao-vip-app #tabela-participantes-body td.participant-name{grid-column:1/-1;grid-row:1;min-width:0;font-size:16px;text-align:left;border-bottom:1px solid #cadce9;padding-bottom:10px}
 #bolao-vip-app #tabela-participantes-body td.hidden{display:none!important}
 #bolao-vip-app [data-view-panel="participantes"] [data-admin-control]{min-height:44px;flex:1 1 140px;justify-content:center;text-align:center}
 #bolao-vip-app .switch-toggle{vertical-align:middle;margin:10px 0}
 #jogos-lista-container{max-height:65dvh}
 #palpites-lista-box{max-height:55dvh}
 #modal-login-backdrop>div{padding:18px}
}
@media(max-width:360px){
 #bolao-vip-app main{padding-left:8px;padding-right:8px}
 #bolao-vip-app main>section{padding:10px}
 #bolao-vip-app .view-nav button{font-size:11px}
 #header-badge{font-size:9px}
}
