*{
box-sizing:border-box;
-webkit-user-select: none; /* Safari */
-ms-user-select: none;     /* IE */
user-select: none;         /* padrão */
}

input,
textarea,
select,
[contenteditable="true"]{
-webkit-user-select:text;
-ms-user-select:text;
user-select:text;
}

:root{
--bg:#1c1c1c;
--card:#2c2c2c;
--card-soft:rgba(255,255,255,0.05);
--card-soft-hover:rgba(255,255,255,0.075);
--text:#ffffff;
--muted:rgba(255,255,255,0.70);
--line:#444;
--primary:#e60000;
--primary-dark:#b80000;
--primary-soft:rgba(230,0,0,0.18);
--danger:#ef4444;
--success:#10b981;
--shadow:0 10px 30px rgba(0,0,0,0.35);
}

body{
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
background:linear-gradient(180deg,#171717 0%,#1c1c1c 100%);
margin:0;
padding:30px;
color:var(--text);
min-height:100vh;
}

body.auth-pending > *{
visibility:hidden;
}

/* UTIL */

.hidden{
display:none !important;
}

/* ANIMAÇÃO BASE */

.fade-up{
opacity:0;
transform:translateY(18px);
transition:opacity .5s ease, transform .5s ease;
}

.fade-up.show{
opacity:1;
transform:translateY(0);
}

/* CARD PRINCIPAL */

.card{
background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--card);
padding:25px;
border-radius:18px;
max-width:900px;
margin:auto;
box-shadow:var(--shadow);
border:1px solid rgba(255,255,255,0.05);
}

.card-toolbar{
display:flex;
justify-content:flex-end;
margin-bottom:8px;
}

.card-toolbar-actions{
display:flex;
align-items:center;
gap:10px;
}

#loginScreen{
max-width:420px;
margin-top:40px;
padding:24px;
}

.auth-subtitle{
margin:-6px 0 18px;
color:var(--muted);
font-size:14px;
line-height:1.5;
}

.auth-feedback{
margin:-4px 0 14px;
padding:10px 12px;
border-radius:10px;
font-size:13px;
line-height:1.4;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.08);
color:var(--text);
}

.auth-feedback[data-type="error"]{
background:rgba(239,68,68,0.12);
border-color:rgba(239,68,68,0.22);
color:#fecaca;
}

.auth-feedback[data-type="success"]{
background:rgba(16,185,129,0.12);
border-color:rgba(16,185,129,0.22);
color:#bbf7d0;
}

h2{
margin-top:0;
margin-bottom:14px;
font-weight:700;
font-size:28px;
letter-spacing:-0.02em;
}

h3{
margin:0;
font-weight:600;
font-size:18px;
}

/* INFO OPERADOR */

#operatorInfo{
margin-top:4px;
margin-bottom:18px;
font-size:14px;
color:var(--muted);
}

.dashboard-actions{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:12px;
margin-top:12px;
align-items:stretch;
}

.dashboard-actions button{
width:100%;
max-width:none;
min-height:50px;
}

.dashboard-tabs{
display:flex;
gap:10px;
margin-top:18px;
margin-bottom:18px;
flex-wrap:wrap;
}

.dashboard-tab-button{
width:auto;
min-width:140px;
margin-top:0;
padding:10px 14px;
border-radius:999px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.08);
color:var(--text);
box-shadow:none;
}

.dashboard-tab-button.is-active{
background:linear-gradient(180deg, rgba(230,0,0,0.2), rgba(230,0,0,0.08));
border-color:rgba(230,0,0,0.3);
box-shadow:0 10px 20px rgba(230,0,0,0.12);
}

.action-button{
padding:13px 16px;
margin-top:0;
border-radius:14px;
background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 10px 24px rgba(0,0,0,0.14);
font-weight:600;
letter-spacing:0.01em;
}

.action-button:hover{
background:linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
box-shadow:0 14px 28px rgba(0,0,0,0.18);
}

.primary.action-button{
background:linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
border-color:transparent;
box-shadow:0 8px 18px rgba(230,0,0,0.24);
}

.primary.action-button:hover{
opacity:0.97;
background:linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
box-shadow:0 8px 18px rgba(230,0,0,0.24);
}

/* INPUT */

input{
width:100%;
padding:12px 14px;
margin-bottom:14px;
border-radius:10px;
border:1px solid var(--line);
background:#1c1c1c;
color:white;
outline:none;
font-size:14px;
transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus{
border-color:var(--primary);
box-shadow:0 0 0 3px rgba(230,0,0,0.18);
transform:translateY(-1px);
}

.auth-form{
display:flex;
flex-direction:column;
gap:0;
}

/* BOTÕES */

button{
padding:12px 14px;
border-radius:12px;
border:none;
cursor:pointer;
font-weight:600;
width:100%;
margin-top:6px;
position:relative;
overflow:hidden;
font-size:14px;
transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover{
transform:translateY(-1px);
}

button:active{
transform:scale(0.99);
}

button:disabled{
opacity:0.5;
cursor:not-allowed;
transform:none;
box-shadow:none;
}

.primary{
background:linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
color:white;
box-shadow:0 8px 18px rgba(230,0,0,0.24);
}

.primary:hover{
opacity:0.97;
}

.danger{
background:#ef4444;
color:white;
box-shadow:0 8px 18px rgba(239,68,68,0.18);
}

.ghost{
width:auto;
padding:8px 12px;
margin-top:0;
background:rgba(255,255,255,0.06);
color:white;
border:1px solid rgba(255,255,255,0.08);
box-shadow:none;
}

#loginScreen .primary,
#loginScreen .ghost{
width:100%;
}

#loginScreen .ghost{
margin-top:8px;
padding:11px 14px;
}

.ghost:hover{
background:rgba(255,255,255,0.09);
}

.icon-button{
width:42px;
height:42px;
min-width:42px;
padding:0;
margin-top:0;
border-radius:14px;
display:inline-flex;
align-items:center;
justify-content:center;
background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.toolbar-icon-button{
border-radius:14px;
background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.icon-button:hover{
background:linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
box-shadow:0 12px 28px rgba(0,0,0,0.2);
}

.icon-button img{
width:19px;
height:19px;
display:block;
}

.modal-overlay{
position:fixed;
inset:0;
display:flex;
align-items:center;
justify-content:center;
padding:24px;
background:rgba(0,0,0,0.58);
backdrop-filter:blur(4px);
z-index:1000;
}

.modal-card{
width:min(100%, 420px);
background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--card);
border:1px solid rgba(255,255,255,0.08);
border-radius:18px;
box-shadow:0 18px 45px rgba(0,0,0,0.4);
padding:22px;
}

.demand-modal-card{
width:min(100%, 680px);
padding:24px;
background:
linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
linear-gradient(135deg, rgba(230,0,0,0.08), transparent 35%),
var(--card);
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 24px 60px rgba(0,0,0,0.4);
}

.preferences-modal-card{
width:min(100%, 620px);
padding:24px;
background:
linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
linear-gradient(140deg, rgba(230,0,0,0.08), transparent 38%),
var(--card);
border:1px solid rgba(255,255,255,0.1);
box-shadow:0 24px 60px rgba(0,0,0,0.42);
}

.preferences-modal-header{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
margin-bottom:18px;
}

.preferences-close-button{
width:42px;
min-width:42px;
height:42px;
padding:0;
}

.preferences-modal-actions{
margin-top:20px;
}

.demand-modal-header{
display:flex;
justify-content:space-between;
gap:12px;
align-items:flex-start;
margin-bottom:12px;
}

.demand-close-button{
width:42px;
min-width:42px;
height:42px;
padding:0;
}

.demand-form{
display:flex;
flex-direction:column;
gap:16px;
}

.demand-form label{
font-size:13px;
font-weight:600;
color:var(--muted);
margin-bottom:6px;
display:block;
}

.demand-dynamic-fields{
display:flex;
flex-direction:column;
gap:18px;
margin-top:8px;
padding:20px;
border-radius:18px;
background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
border:1px solid rgba(255,255,255,0.1);
}

.demand-grid{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:16px;
}

.demand-grid-3{
display:grid;
grid-template-columns:repeat(3, minmax(0, 1fr));
gap:16px;
}

.demand-grid-wide{
align-items:end;
}

.demand-grid-spacious{
align-items:end;
}

.demand-date-grid{
padding:14px;
border-radius:16px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.08);
}

.checkbox-row{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:10px;
}

.checkbox-chip{
display:inline-flex;
align-items:center;
gap:8px;
padding:11px 14px;
border-radius:14px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.1);
font-size:14px;
cursor:pointer;
transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.checkbox-chip:hover{
background:rgba(255,255,255,0.08);
border-color:rgba(255,255,255,0.18);
transform:translateY(-1px);
box-shadow:0 8px 20px rgba(0,0,0,0.18);
}

.checkbox-chip input{
appearance:none;
-webkit-appearance:none;
width:18px;
height:18px;
margin:0;
border-radius:6px;
border:1px solid rgba(255,255,255,0.3);
background:#1b1b1b;
display:inline-grid;
place-items:center;
cursor:pointer;
transition:background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.checkbox-chip input::after{
content:"";
width:8px;
height:8px;
border-radius:3px;
transform:scale(0);
transition:transform .16s ease;
background:#fff;
}

.checkbox-chip input:checked{
background:var(--primary);
border-color:var(--primary);
box-shadow:0 0 0 3px rgba(230,0,0,0.15);
}

.checkbox-chip input:checked::after{
transform:scale(1);
}

.modal-copy{
margin:0 0 18px;
color:var(--muted);
font-size:14px;
line-height:1.5;
}

.modal-actions{
display:flex;
justify-content:flex-end;
gap:10px;
}

.modal-actions button{
width:auto;
min-width:110px;
margin-top:0;
}

/* MINI PAINEL */

.resultados{
display:flex;
gap:1rem;
margin-top:20px;
flex-wrap:wrap;
}

.stats-card{
flex:1 1 220px;
min-height:95px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
background:var(--card-soft);
border-left:4px solid var(--primary);
border-radius:14px;
box-shadow:0 8px 20px rgba(0,0,0,0.25);
transition:transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
padding:14px;
}

.stats-card:hover{
transform:translateY(-2px);
background:var(--card-soft-hover);
box-shadow:0 10px 24px rgba(0,0,0,0.3);
}

.preferences-section{
margin-top:22px;
padding:18px;
border-radius:18px;
background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
border:1px solid rgba(255,255,255,0.08);
}

.preferences-header{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:12px;
margin-bottom:14px;
}

.preferences-copy{
margin:6px 0 0;
font-size:13px;
line-height:1.5;
color:var(--muted);
}

.preferences-grid{
display:grid;
grid-template-columns:1fr;
gap:14px;
}

.preference-card{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:18px;
padding:16px 18px;
border-radius:18px;
background:linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
border:1px solid rgba(255,255,255,0.09);
cursor:pointer;
transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.preference-card:hover{
background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
border-color:rgba(255,255,255,0.14);
transform:translateY(-1px);
box-shadow:0 14px 30px rgba(0,0,0,0.16);
}

.preference-copy{
display:flex;
flex-direction:column;
gap:6px;
}

.preference-copy strong{
font-size:14px;
letter-spacing:-0.01em;
}

.preference-copy span{
font-size:12px;
line-height:1.5;
color:var(--muted);
}

.preference-control{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:8px;
min-width:92px;
}

.preference-state{
font-size:11px;
font-weight:700;
letter-spacing:0.04em;
text-transform:uppercase;
color:var(--muted);
}

.preference-control input{
width:20px;
height:20px;
margin:0;
accent-color:var(--primary);
}

/* NÚMERO */

.stats-number{
font-size:28px;
font-weight:700;
line-height:1;
}

/* LABEL */

.stats-label{
font-size:12px;
opacity:0.7;
margin-top:6px;
}

/* HISTÓRICO */

.history-section{
margin-top:26px;
}

.history-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-bottom:14px;
}

#toggleHistoryBtn{
width:38px;
height:38px;
min-width:38px;
padding:0;
margin-top:0;
border-radius:999px;
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.08);
box-shadow:none;
font-size:0;
line-height:1;
flex-shrink:0;
transition:
background .18s ease,
border-color .18s ease,
box-shadow .18s ease;
}

#toggleHistoryBtn:hover{
background:rgba(255,255,255,0.09);
box-shadow:0 6px 16px rgba(0,0,0,0.22);
transform:none;
}

.toggle-history-icon{
position:relative;
display:block;
width:20px;
height:20px;
pointer-events:none;
transform:scale(1);
transition:transform .32s cubic-bezier(.2,.9,.2,1);
will-change:transform;
}

.toggle-history-bar{
position:absolute;
top:50%;
left:50%;
width:17px;
height:2.5px;
border-radius:999px;
background:linear-gradient(90deg, rgba(255,255,255,0.92), #ffffff, rgba(255,255,255,0.92));
box-shadow:0 0 0 1px rgba(255,255,255,0.04), 0 1px 6px rgba(0,0,0,0.18);
transform-origin:50% 50%;
transition:transform .32s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
will-change:transform;
}

.toggle-history-bar-a{
transform:translate(-50%, -50%) rotate(0deg);
}

.toggle-history-bar-b{
transform:translate(-50%, -50%) rotate(90deg);
}

#toggleHistoryBtn.expanded .toggle-history-icon{
transform:scale(1.06);
}

#toggleHistoryBtn.expanded .toggle-history-bar-a{
transform:translate(-50%, -50%) rotate(45deg);
}

#toggleHistoryBtn.expanded .toggle-history-bar-b{
transform:translate(-50%, -50%) rotate(-45deg);
}

.sr-only{
position:absolute;
width:1px;
height:1px;
padding:0;
margin:-1px;
overflow:hidden;
clip:rect(0, 0, 0, 0);
white-space:nowrap;
border:0;
}

#historyList{
display:flex;
flex-direction:column;
gap:12px;
overflow:hidden;
transition:height .34s cubic-bezier(.22,1,.36,1);
will-change:height;
}

#historyList.collapsed{
overflow:hidden;
}

#historyList.expanded{
overflow:hidden;
}

.history-item{
padding:14px 16px;
border-left:4px solid #444;
background:var(--card-soft);
border-radius:14px;
box-shadow:0 8px 20px rgba(0,0,0,0.2);
font-size:14px;
transition:transform .22s ease, background .22s ease, opacity .3s ease, border-color .22s ease, box-shadow .22s ease;
line-height:1.5;
}

/* STATUS DOS CARDS DO HISTÓRICO */

.history-item.retido{
border-left-color:var(--success);
}

.history-item.cancelado{
border-left-color:var(--danger);
}

.history-item:hover{
transform:translateY(-2px);
background:var(--card-soft-hover);
box-shadow:0 10px 24px rgba(0,0,0,0.24);
}

.history-item strong{
display:block;
font-size:15px;
margin-bottom:4px;
color:#fff;
}

.history-item small{
display:block;
margin-top:6px;
opacity:0.62;
font-size:12px;
}

@keyframes historyFade{
to{
opacity:1;
transform:translateY(0);
}
}

/* CONFIRMAÇÃO DINÂMICA */

.confirming::before{
content:"";
position:absolute;
top:0;
left:0;
height:100%;
width:100%;
background:rgba(255,255,255,0.10);
animation:loadbar 2s linear forwards;
z-index:0;
}

button span,
button strong{
position:relative;
z-index:1;
}

@keyframes loadbar{
from{width:0%}
to{width:100%}
}

/* ROW BOTÕES */

.row{
display:flex;
gap:8px;
margin-top:8px;
flex-wrap:wrap;
}

.row button{
flex:1 1 160px;
margin-top:0;
}

/* SELECT */

select{
width:100%;
padding:12px 14px;
border-radius:12px;
border:1px solid var(--line);
margin-top:8px;
background:
linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
#1c1c1c;
color:white;
outline:none;
font-size:14px;
transition:border-color .2s ease, box-shadow .2s ease;
appearance:none;
-webkit-appearance:none;
background-image:
linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.75) 50%),
linear-gradient(135deg, rgba(255,255,255,0.75) 50%, transparent 50%);
background-position:
calc(100% - 18px) calc(50% - 3px),
calc(100% - 12px) calc(50% - 3px);
background-size:6px 6px, 6px 6px;
background-repeat:no-repeat;
}

select:focus{
border-color:var(--primary);
box-shadow:0 0 0 3px rgba(230,0,0,0.18);
}

#demandModal input,
#demandModal select{
margin-bottom:0;
}

#demandModal input,
#demandModal select{
min-height:48px;
}

#demandModal .modal-actions{
margin-top:22px;
gap:12px;
}

#demandModal .modal-actions button{
min-width:140px;
}

.custom-select{
position:relative;
}

.custom-select-trigger,
.custom-date-trigger{
width:100%;
margin-top:8px;
padding:12px 14px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.12);
background:rgba(255,255,255,0.035);
color:var(--text);
display:flex;
align-items:center;
justify-content:space-between;
box-shadow:none;
font-weight:500;
}

.custom-select-trigger span,
.custom-date-trigger span{
color:rgba(255,255,255,0.92);
font-size:14px;
}

.custom-select-trigger::after,
.custom-date-trigger::after{
content:"";
width:10px;
height:10px;
border-right:2px solid rgba(255,255,255,0.75);
border-bottom:2px solid rgba(255,255,255,0.75);
transform:rotate(45deg) translateY(-2px);
flex-shrink:0;
}

.custom-select-menu{
position:absolute;
top:calc(100% + 10px);
left:0;
right:0;
display:flex;
flex-direction:column;
gap:8px;
padding:8px;
border-radius:14px;
background:#242424;
border:1px solid rgba(255,255,255,0.12);
box-shadow:0 18px 40px rgba(0,0,0,0.35);
z-index:5;
}

.custom-select-option{
width:100%;
margin:0;
padding:10px 12px;
border-radius:10px;
border:1px solid transparent;
background:transparent;
justify-content:flex-start;
color:rgba(255,255,255,0.92);
font-size:14px;
font-weight:500;
}

.custom-select-option:hover{
background:rgba(255,255,255,0.06);
border-color:transparent;
}

.demand-calendar{
width:min(100%, 380px);
margin:0 auto;
padding:18px;
border-radius:24px;
background:linear-gradient(180deg, rgba(26,28,34,1), rgba(16,18,24,1));
border:1px solid rgba(255,255,255,0.16);
box-shadow:0 30px 70px rgba(0,0,0,0.5);
color:#ffffff;
}

.calendar-modal-card{
width:min(100%, 460px);
padding:22px;
background:
linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
linear-gradient(135deg, rgba(230,0,0,0.08), transparent 35%),
var(--card);
}

.calendar-modal-header{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
margin-bottom:14px;
}

.demand-calendar-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
margin-bottom:14px;
}

.demand-calendar-header strong{
font-size:14px;
font-weight:700;
text-transform:capitalize;
letter-spacing:0.01em;
color:#ffffff;
}

.calendar-nav-button{
width:34px;
min-width:34px;
height:34px;
margin:0;
padding:0;
border-radius:10px;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.12);
display:flex;
align-items:center;
justify-content:center;
font-size:17px;
color:#ffffff;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.calendar-nav-button:hover{
background:rgba(255,255,255,0.11);
}

.demand-calendar-weekdays,
.demand-calendar-grid{
display:grid;
grid-template-columns:repeat(7, 1fr);
gap:7px;
}

.demand-calendar-weekdays{
margin-bottom:12px;
color:rgba(255,255,255,0.62);
font-size:11px;
font-weight:700;
letter-spacing:0.08em;
text-transform:uppercase;
text-align:center;
}

.calendar-day{
width:100%;
aspect-ratio:1;
margin:0;
padding:0;
border-radius:14px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.07);
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:700;
color:#ffffff;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.02), 0 6px 12px rgba(0,0,0,0.14);
}

.calendar-day:hover{
background:rgba(255,255,255,0.14);
border-color:rgba(255,255,255,0.2);
transform:none;
}

.calendar-day:disabled{
opacity:0.42;
cursor:not-allowed;
background:rgba(255,255,255,0.018);
border-color:rgba(255,255,255,0.04);
color:rgba(0,0,0,0.82);
box-shadow:none;
}

.calendar-day:disabled:hover{
background:rgba(255,255,255,0.018);
border-color:rgba(255,255,255,0.04);
}

.calendar-day.is-today{
border-color:rgba(230,0,0,0.5);
box-shadow:0 0 0 1px rgba(230,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
}

.calendar-day.is-selected{
background:var(--primary);
border-color:rgba(255,255,255,0.18);
color:#ffffff;
box-shadow:0 12px 24px rgba(230,0,0,0.28);
}

.calendar-day.is-selected:hover{
background:var(--primary);
border-color:rgba(255,255,255,0.18);
}

.calendar-day-empty{
visibility:hidden;
}

.checkbox-chip{
padding:7px 10px;
border-radius:12px;
gap:8px;
background:rgba(255,255,255,0.025);
border-color:rgba(255,255,255,0.08);
box-shadow:none;
font-size:13px;
}

.checkbox-chip:hover{
transform:none;
box-shadow:none;
background:rgba(255,255,255,0.06);
}

.checkbox-chip input{
width:12px;
height:12px;
border-radius:3px;
border:1px solid rgba(255,255,255,0.26);
}

.checkbox-chip input::after{
width:5px;
height:5px;
border-radius:2px;
}

.checkbox-chip input:checked{
box-shadow:none;
}

/* RESPONSIVO */

@media(max-width:768px){
body{
padding:16px;
}

.card{
padding:18px;
border-radius:16px;
}

h2{
font-size:24px;
}

.resultados{
flex-direction:column;
}

.stats-card{
width:100%;
}

.history-header{
align-items:center;
flex-direction:row;
}

.history-item{
font-size:13px;
}

.modal-overlay{
padding:16px;
}

.modal-actions{
flex-direction:column-reverse;
}

.modal-actions button{
width:100%;
}

.dashboard-actions{
grid-template-columns:1fr;
}

.preferences-grid{
grid-template-columns:1fr;
}

.preference-card{
flex-direction:column;
}

.preference-control{
width:100%;
flex-direction:row;
justify-content:space-between;
align-items:center;
}

.demand-grid,
.demand-grid-3{
grid-template-columns:1fr;
}
}
