/* InteliBox | Eclipse Spectrum 2.0 — 21/10/2026
   Tema visual; não altera fluxos de negócio. Escopo estrito por data-theme. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
body[data-theme="eclipse-spectrum"]{
  color-scheme:dark;
  --ib-bg:#070913;--ib-surface:#111629;--ib-surface-2:#161d35;
  --ib-ink:#f7f8ff;--ib-muted:#a7b4d4;--ib-accent:#a98aff;--ib-accent-2:#4de6ef;
  --ib-border:rgba(185,193,255,.19);--ib-danger:#ff688d;--ib-success:#54efbb;
  --bg:#070913;--background:#070913;--surface:#12182c;--card:#12182c;
  --primary:#b99bff;--accent:#b99bff;--text:#f7f8ff;--muted:#a7b4d4;
  --border:rgba(185,193,255,.19);
  background:#070913!important;color:#f7f8ff;
  font-family:'DM Sans',Inter,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body[data-theme="eclipse-spectrum"]::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 58% 43% at 96% -5%,rgba(116,69,255,.27),transparent 74%),
    radial-gradient(ellipse 50% 43% at -15% 43%,rgba(0,211,228,.11),transparent 76%),
    radial-gradient(ellipse 38% 27% at 58% 100%,rgba(222,63,167,.09),transparent 80%),
    linear-gradient(142deg,#080a15 0%,#0b1020 53%,#080914 100%);
}
body[data-theme="eclipse-spectrum"] :is(h1,h2,h3,h4,h5){font-family:'Space Grotesk','DM Sans',sans-serif;letter-spacing:-.037em;color:#f8f8ff}
body[data-theme="eclipse-spectrum"] :is(a){color:#c5b3ff}
body[data-theme="eclipse-spectrum"] :is(a,button,input,select,textarea):focus-visible{outline:2px solid #bca4ff;outline-offset:3px}
body[data-theme="eclipse-spectrum"] :is(.card,.panel,.accountBox,.ibp-card,.ibp-kpi,.boxHealthCard,.modalBox,.modal-content){
  background:linear-gradient(145deg,rgba(26,33,59,.94),rgba(12,17,34,.96))!important;
  border:1px solid rgba(181,193,255,.17)!important;
  border-radius:22px!important;
  box-shadow:0 18px 48px rgba(1,3,14,.23),inset 0 1px rgba(255,255,255,.055);
  color:#f1f3ff;
}
body[data-theme="eclipse-spectrum"] :is(.card,.panel,.accountBox){position:relative}
body[data-theme="eclipse-spectrum"] :is(.card,.panel)::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(128deg,rgba(255,255,255,.035),transparent 35%);opacity:.75;
}
body[data-theme="eclipse-spectrum"] :is(.note,.muted,small,.sub,.cond,.row small){color:#a7b4d4}
body[data-theme="eclipse-spectrum"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  background:rgba(8,13,29,.86)!important;color:#f5f6ff!important;
  border:1px solid rgba(179,195,255,.27)!important;border-radius:13px!important;
  min-height:43px;box-shadow:inset 0 1px 4px rgba(0,0,0,.12);
}
body[data-theme="eclipse-spectrum"] :is(input,textarea)::placeholder{color:#8493b8}
body[data-theme="eclipse-spectrum"] :is(button,.btn,.back):not(.tab):not(.themeCard):not(.ib-logout-3d){
  border-radius:12px;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
body[data-theme="eclipse-spectrum"] :is(button,.btn,.back):not(.tab):not(.themeCard):not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.06)}
body[data-theme="eclipse-spectrum"] :is(.btn.blue,.btn.green,.retActions .btn.green,.residentHero button:not(.linkExpirado):not(.revalidacaoAguardando)){
  background:linear-gradient(115deg,#5bf1d4,#30cbe9)!important;color:#031927!important;
  border:1px solid rgba(197,255,245,.45)!important;font-weight:800;
  box-shadow:0 8px 24px rgba(38,227,206,.18),inset 0 1px rgba(255,255,255,.5);
}
body[data-theme="eclipse-spectrum"] :is(.btn.red,.linkExpirado){background:linear-gradient(125deg,#fd467d,#d9296b)!important;color:#fff!important}
body[data-theme="eclipse-spectrum"] :is(.btn.gray,.btn.yellow){background:#29334d!important;color:#e7eaff!important;border:1px solid #44506d!important}
body[data-theme="eclipse-spectrum"] :is(.badge,.retirada-status){border-radius:100px!important;letter-spacing:.025em}
body[data-theme="eclipse-spectrum"] :is(table){color:#e8ecff}
body[data-theme="eclipse-spectrum"] :is(th){color:#b7c3e1;background:rgba(14,21,42,.78)}
body[data-theme="eclipse-spectrum"] :is(td,th){border-bottom:1px solid rgba(171,187,255,.13)}
body[data-theme="eclipse-spectrum"] :is(.modal,.overlay){backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
/* ADMIN — identidade de central de comando sem esconder dados ou controles */
body[data-theme="eclipse-spectrum"] .app{position:relative}
body[data-theme="eclipse-spectrum"] .admin-header{
  background:linear-gradient(110deg,rgba(18,24,46,.96),rgba(29,25,60,.91) 60%,rgba(10,28,46,.95))!important;
  border:1px solid rgba(175,169,255,.22)!important;
  border-radius:23px!important;
  box-shadow:0 18px 65px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.08);
  padding:19px 23px!important;
}
body[data-theme="eclipse-spectrum"] .admin-header .brandmark{filter:drop-shadow(0 10px 22px rgba(255,187,87,.18))}
body[data-theme="eclipse-spectrum"] .admin-header h1{font-size:clamp(25px,3vw,37px);letter-spacing:-.06em}
body[data-theme="eclipse-spectrum"] .admin-header .sub{color:#bfc6e7}
body[data-theme="eclipse-spectrum"] .tabs{
  background:rgba(10,16,33,.75);border:1px solid rgba(166,181,245,.13);
  border-radius:17px;padding:8px;gap:5px;box-shadow:0 12px 40px rgba(0,0,0,.12)
}
body[data-theme="eclipse-spectrum"] .tabs .tab{
  border-radius:11px!important;color:#aebcdd!important;background:transparent!important;
  border:1px solid transparent!important;box-shadow:none!important;
}
body[data-theme="eclipse-spectrum"] .tabs .tab:hover{background:rgba(160,132,255,.13)!important;color:#fff!important}
body[data-theme="eclipse-spectrum"] .tabs .tab.active{
  color:#fff!important;border:1px solid rgba(193,167,255,.28)!important;
  background:linear-gradient(112deg,rgba(123,83,246,.38),rgba(73,199,225,.10))!important;
  box-shadow:inset 3px 0 #bba0ff,0 5px 16px rgba(101,72,210,.14)!important;
}
body[data-theme="eclipse-spectrum"] .sectionTitle h2{font-size:clamp(24px,3vw,34px)}
body[data-theme="eclipse-spectrum"] .odometerCard{
  background:linear-gradient(145deg,#22224a,#111b34)!important;
  border:1px solid rgba(185,167,255,.3)!important;border-radius:20px!important;
}
body[data-theme="eclipse-spectrum"] .boxMetric{background:rgba(7,13,28,.45);border-radius:12px;border:1px solid rgba(159,178,235,.12)}
body[data-theme="eclipse-spectrum"] .themeCard[data-theme="eclipse-spectrum"]{
  border-color:rgba(185,157,255,.5)!important;background:linear-gradient(145deg,#222145,#101b36)!important;
  box-shadow:0 10px 32px rgba(131,89,251,.15);
}
body[data-theme="eclipse-spectrum"] .eclipseSpectrumPreview{background:linear-gradient(135deg,#0a1023,#252052 55%,#0b2535);overflow:hidden}
body[data-theme="eclipse-spectrum"] .eclipseSpectrumPreview::before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 74% 38%,#9e74ff7a,transparent 35%),radial-gradient(circle at 22% 65%,#34e8e94d,transparent 40%)}
/* Preview visível mesmo quando outro tema está selecionado */
.eclipseSpectrumPreview{position:relative!important;overflow:hidden;background:linear-gradient(135deg,#0a1023,#252052 55%,#0b2535)!important}
.eclipseSpectrumPreview::before{content:"";position:absolute;inset:-25%;background:radial-gradient(circle at 74% 38%,#9e74ff7a,transparent 35%),radial-gradient(circle at 22% 65%,#34e8e94d,transparent 40%)}
.eclipseSpectrumPreview .tp-side{background:linear-gradient(#11162e,#090e20)!important;border-right:1px solid #7773a366}
.eclipseSpectrumPreview .tp-head{background:linear-gradient(90deg,#8f72ff,#4edbdb)!important;opacity:.85}
.eclipseSpectrumPreview .tp-card{background:#8d89db36!important;border:1px solid #a9a3fa44!important}
/* MORADOR — cabeçalho premium fiel à disposição solicitada */
body[data-theme="eclipse-spectrum"] .portal{max-width:1180px;padding:clamp(12px,2.4vw,30px)}
body[data-theme="eclipse-spectrum"] .portal .top{
  position:relative;display:grid;grid-template-columns:minmax(210px,1fr) minmax(170px,.8fr) auto;
  align-items:center;gap:clamp(12px,2vw,25px);min-height:192px;
  padding:25px 26px!important;margin-bottom:22px;
  background:linear-gradient(112deg,rgba(11,15,31,.96),rgba(24,21,49,.93) 56%,rgba(10,30,42,.93));
  border:1px solid rgba(188,182,255,.23)!important;border-radius:27px!important;
  box-shadow:0 26px 70px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.075);
  overflow:hidden;
}
body[data-theme="eclipse-spectrum"] .portal .top::before{
  content:"";position:absolute;width:330px;height:250px;right:12%;top:-165px;
  background:radial-gradient(circle,rgba(174,107,255,.34),transparent 70%);pointer-events:none;
}
body[data-theme="eclipse-spectrum"] .ib-resident-brand{display:flex;align-items:center;min-width:0;z-index:1}
body[data-theme="eclipse-spectrum"] .portalLogo{width:min(100%,350px)!important;max-width:350px!important;max-height:155px!important;height:auto!important;object-fit:contain;filter:drop-shadow(0 16px 22px rgba(0,0,0,.36))}
body[data-theme="eclipse-spectrum"] .ib-resident-welcome{z-index:1;text-align:center;display:grid;justify-items:center;gap:8px;min-width:0}
body[data-theme="eclipse-spectrum"] .ib-resident-hello{color:#d6d8ee;font-size:18px}
body[data-theme="eclipse-spectrum"] .ib-resident-name{font:700 clamp(23px,3.4vw,34px)/1.13 'Space Grotesk',sans-serif;color:#fff;overflow-wrap:anywhere;text-shadow:0 2px 15px #a28dff35}
body[data-theme="eclipse-spectrum"] .unidadesCabecalho{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}
body[data-theme="eclipse-spectrum"] .unidadesCabecalho>*{border:1px solid rgba(164,189,255,.23)!important;border-radius:999px!important;background:rgba(12,21,43,.86)!important;color:#d9e4ff!important;padding:9px 13px!important;font-size:12px}
body[data-theme="eclipse-spectrum"] .ib-logout-3d{
  align-self:start;justify-self:end;position:relative;z-index:2;
  padding:11px 18px!important;border-radius:12px!important;text-decoration:none!important;
  color:#ff718a!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em;
  background:linear-gradient(180deg,#242b41,#0a1020)!important;
  border:1px solid #57647e!important;box-shadow:0 5px 0 #030610,0 13px 24px #0008,inset 0 1px #ffffff27!important;
  transition:transform .15s,box-shadow .15s;
}
body[data-theme="eclipse-spectrum"] .ib-logout-3d:hover{transform:translateY(2px);box-shadow:0 3px 0 #030610,0 9px 20px #0008,inset 0 1px #ffffff27!important}
body[data-theme="eclipse-spectrum"] .residentNav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}
body[data-theme="eclipse-spectrum"] .residentNav a{
  display:flex;justify-content:center;align-items:center;text-align:center;min-height:54px;
  padding:12px 8px;border-radius:14px!important;text-decoration:none!important;
  border:1px solid rgba(166,180,236,.19);background:linear-gradient(135deg,#141c33,#0d1427)!important;
  color:#e3e8ff!important;font-weight:750;box-shadow:inset 0 1px #ffffff0c;
}
body[data-theme="eclipse-spectrum"] .residentNav a:hover,body[data-theme="eclipse-spectrum"] .residentNav a.active{
  color:#061824!important;border-color:rgba(165,255,244,.7)!important;
  background:linear-gradient(105deg,#5af1d2,#3fcce8)!important;box-shadow:0 10px 24px rgba(51,224,212,.16);
}
body[data-theme="eclipse-spectrum"] .residentHero{padding:clamp(20px,3vw,30px)!important}
body[data-theme="eclipse-spectrum"] .residentTitle .eyebrow,body[data-theme="eclipse-spectrum"] .eyebrow{font-size:11px;letter-spacing:.19em;color:#9be7f3;font-weight:800}
body[data-theme="eclipse-spectrum"] .residentTitle h2{font-size:clamp(24px,3.4vw,34px)}
body[data-theme="eclipse-spectrum"] .heroGlyph{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:linear-gradient(130deg,#51438e,#1a4661);border:1px solid #b0a0f366;box-shadow:0 12px 30px #0005}
body[data-theme="eclipse-spectrum"] .residentHero .row{background:rgba(7,13,29,.37);border:1px solid rgba(177,193,252,.15)!important;border-radius:16px;padding:16px!important;margin:10px 0;gap:14px}
body[data-theme="eclipse-spectrum"] .residentHero .row:hover{border-color:rgba(117,228,242,.35)!important}
body[data-theme="eclipse-spectrum"] .revalidacaoAguardando{background:linear-gradient(125deg,#5f48b7,#a04ed1)!important;color:#fff!important;opacity:1!important}
body[data-theme="eclipse-spectrum"] .linkExpirado{background:linear-gradient(125deg,#f04d74,#c62a5e)!important;color:#fff!important}
/* ENTREGADOR E RETIRADA PÚBLICA */
body[data-theme="eclipse-spectrum"] .publicHeader{
  border-radius:23px!important;padding:20px!important;
  background:linear-gradient(112deg,#14192f,#1d1d3e 55%,#112838)!important;
  border:1px solid rgba(173,187,255,.22)!important;
}
body[data-theme="eclipse-spectrum"] .publicLogo img{filter:drop-shadow(0 10px 20px #0006)}
body[data-theme="eclipse-spectrum"] :is(.withdrawalPanel,.retStatusCard,.retResidentInfo,.retSafety){border-radius:19px!important}
body[data-theme="eclipse-spectrum"] .retStatusCard{background:linear-gradient(125deg,rgba(71,54,131,.35),rgba(16,36,57,.75))!important;border:1px solid rgba(185,164,255,.3)!important}
body[data-theme="eclipse-spectrum"] .connection{color:#a2f9da}
body[data-theme="eclipse-spectrum"] .dot.online{background:#51edb5;box-shadow:0 0 0 5px #52edb51a,0 0 16px #51edb570}
/* MELODIAS E FERRAMENTAS */
body[data-theme="eclipse-spectrum"][data-ib-theme-tool="1"] main{max-width:1150px}
body[data-theme="eclipse-spectrum"][data-ib-theme-tool="1"] .back{background:#282247!important;color:#d5c5ff!important;border:1px solid #6b5ba8!important}
/* CELULAR / PWA */
@media(max-width:760px){
  body[data-theme="eclipse-spectrum"] .portal .top{grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:18px!important;gap:12px}
  body[data-theme="eclipse-spectrum"] .ib-resident-brand{grid-column:1/2;grid-row:1/2}
  body[data-theme="eclipse-spectrum"] .portalLogo{width:min(100%,230px)!important;max-height:110px!important}
  body[data-theme="eclipse-spectrum"] .ib-resident-welcome{grid-column:1/-1;grid-row:2/3;padding:4px 0 7px}
  body[data-theme="eclipse-spectrum"] .ib-logout-3d{grid-column:2/3;grid-row:1/2;padding:9px 13px!important}
  body[data-theme="eclipse-spectrum"] .residentNav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body[data-theme="eclipse-spectrum"] .residentNav a{min-height:47px}
  body[data-theme="eclipse-spectrum"] .portal .card{padding:17px!important}
  body[data-theme="eclipse-spectrum"] .tabs{gap:4px}
  body[data-theme="eclipse-spectrum"] .admin-header{padding:14px!important}
}
@media(max-width:400px){body[data-theme="eclipse-spectrum"] .portalLogo{width:min(100%,175px)!important}body[data-theme="eclipse-spectrum"] .ib-resident-name{font-size:24px}}
@media(prefers-reduced-motion:reduce){body[data-theme="eclipse-spectrum"] *,body[data-theme="eclipse-spectrum"] *::before,body[data-theme="eclipse-spectrum"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
