/* SISTERMI RED 08 — PRETO ABSOLUTO / VERMELHO ELÉTRICO.
   Exclusivamente apresentação. Sem lógica de acesso, dados ou navegação. */
@property --sred08-angle {syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes sred08-spin {to{--sred08-angle:360deg}}
@keyframes sred08-menu-beam {0%{background-position:0 -110vh}100%{background-position:0 110vh}}
@keyframes sred08-grid-flow {to{background-position:0 90px,90px 0,0 0}}
@keyframes sred08-sweep {0%{transform:translate3d(-115%,0,0) skewX(-18deg)}100%{transform:translate3d(220%,0,0) skewX(-18deg)}}
@keyframes sred08-red-breathe {0%,100%{filter:drop-shadow(0 0 4px rgba(255,0,46,.55));opacity:.72}50%{filter:drop-shadow(0 0 14px rgba(255,0,46,.9));opacity:1}}
@keyframes sred08-bg-drift {0%{background-position:0 0,0 0,50% 50%}100%{background-position:80px 80px,-80px 80px,50% 50%}}
html body.sred-ui {--sred-red:#ff123d!important;--sred-line:rgba(255,24,61,.4)!important;--sred-glow:rgba(255,12,51,.27)!important;--sred08-bright:#ff153e;--sred08-red:#f90034;--sred08-dark:#050507;--sred08-surface:#0b0b0f;color:#f6f6f8!important;}
/* Remover o aspecto rosa/lilás do visual anterior. */
html body.sred-ui .menu-lateral,
html body.sred-ui.pagina-inicial .menu-lateral {
  background:linear-gradient(175deg,#09090c 0%,#030305 58%,#0b0508 100%)!important;
  border-right:1px solid rgba(255,25,60,.52)!important;
  border-radius:0 20px 20px 0!important;
  box-shadow:12px 0 42px rgba(0,0,0,.72),2px 0 25px rgba(255,0,45,.13)!important;
}
html body.sred-ui .menu-lateral::before {
  content:''!important;inset:0!important;z-index:-1!important;
  background:repeating-linear-gradient(0deg,rgba(255,14,48,.065) 0 1px,transparent 1px 70px),
    repeating-linear-gradient(90deg,rgba(255,14,48,.055) 0 1px,transparent 1px 70px)!important;
  background-size:70px 70px,70px 70px!important;
  animation:sred08-grid-flow 7s linear infinite!important;opacity:.62!important;filter:none!important;
}
html body.sred-ui .menu-lateral::after {
  content:''!important;position:fixed!important;top:0!important;right:0!important;left:auto!important;
  width:3px!important;height:100vh!important;
  background:linear-gradient(180deg,transparent 0%,rgba(255,10,50,.04) 25%,#ff0038 48%,rgba(255,30,63,.16) 61%,transparent 82%)!important;
  background-size:100% 200vh!important;
  animation:sred08-menu-beam 3.6s linear infinite!important;
  filter:drop-shadow(0 0 9px #ff0038)!important;opacity:1!important;
}
html body.sred-ui .menu-logo,html body.sred-ui.pagina-inicial .menu-logo {background:linear-gradient(120deg,rgba(95,0,23,.22),rgba(6,6,9,.96))!important;border-bottom:1px solid rgba(255,35,68,.32)!important;}
html body.sred-ui .sred-logo-emblem {border-radius:15px!important;background:radial-gradient(circle at 40% 25%,#4a0b19,#110509 76%)!important;border:1px solid #ed1a40!important;box-shadow:0 0 20px rgba(255,0,50,.23),inset 0 0 20px rgba(255,0,50,.09)!important;color:#fff!important;}
html body.sred-ui .sred-logo-copy strong em,html body.sred-ui .sred-logo-tag,html body.sred-ui .sred-menu-footer {color:#ff284d!important;}
html body.sred-ui .menu-usuario,html body.sred-ui.pagina-inicial .menu-usuario {background:rgba(16,6,10,.88)!important;border-color:rgba(255,25,62,.2)!important;}
html body.sred-ui .menu-usuario-avatar {background:linear-gradient(135deg,#6a0b23,#17060d)!important;border-color:rgba(255,28,66,.5)!important;}
html body.sred-ui .menu-usuario-perfil {background:rgba(255,0,52,.13)!important;color:#ff5672!important;border-color:rgba(255,32,64,.36)!important;}
html body.sred-ui :is(.menu-link,.menu-sublink,.menu-inventario,.menu-indicadores,.menu-inspecao,#linkInicio,#linkAdministracao) {color:#c9c9cf!important;border-radius:12px!important;}
html body.sred-ui :is(.menu-link,.menu-sublink,.menu-inventario,.menu-indicadores,.menu-inspecao,#linkInicio,#linkAdministracao):hover {background:linear-gradient(95deg,rgba(255,0,49,.24),rgba(255,0,49,.025))!important;border-color:rgba(255,25,62,.4)!important;box-shadow:inset 3px 0 #ff0b3b,0 0 16px rgba(255,0,49,.12)!important;color:white!important;}
html body.sred-ui :is(.menu-link,.menu-sublink,#linkInicio,#linkAdministracao).ativo,
html body.sred-ui.pagina-inicial #linkInicio {background:linear-gradient(95deg,rgba(255,0,52,.32),rgba(255,0,52,.04))!important;border-color:rgba(255,32,67,.45)!important;box-shadow:inset 3px 0 #ff153e,0 0 22px rgba(255,0,49,.12)!important;color:#fff!important;}
html body.sred-ui .sred-menu-icon,html body.sred-ui .menu-sublink .sred-menu-icon {color:#ff3157!important;background:rgba(255,0,52,.11)!important;border-color:rgba(255,34,67,.19)!important;}
html body.sred-ui .menu-rodape {background:rgba(10,5,8,.85)!important;border-color:rgba(255,24,60,.19)!important;}
html body.sred-ui .menu-sair {background:rgba(255,0,52,.10)!important;border-color:rgba(255,20,57,.24)!important;}
html body.sred-ui .botao-menu,html body.sred-ui.pagina-inicial .botao-menu {border-radius:14px!important;background:#10070c!important;border:1px solid rgba(255,31,66,.67)!important;box-shadow:0 0 20px rgba(255,0,51,.17),0 12px 24px rgba(0,0,0,.6)!important;}
html body.sred-ui .botao-menu:hover {background:#2b0712!important;border-color:#ff214c!important;}
html body.sred-ui .sred-hamburger i {background:#ff2d55!important;box-shadow:0 0 8px rgba(255,0,52,.7)!important;}
/* Páginas internas: preto real, com linhas elétricas animadas. */
html body.sred-ui.mc-modulo,html body.sred-ui:not(.mc-modulo):not(.pagina-inicial):not(.mc-login) {
  background-color:#040406!important;
  background-image:
    linear-gradient(rgba(255,15,55,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,15,55,.05) 1px,transparent 1px),
    radial-gradient(ellipse 70% 60% at 80% 0%,rgba(110,0,25,.21),transparent 72%)!important;
  background-size:80px 80px,80px 80px,100% 100%!important;
  background-attachment:fixed!important;
  animation:sred08-bg-drift 7s linear infinite!important;
}
html body.sred-ui.mc-modulo .mc-hero {position:relative;border-radius:22px!important;background:linear-gradient(120deg,rgba(12,10,13,.97),rgba(20,5,10,.93))!important;border:1px solid rgba(255,18,58,.42)!important;box-shadow:0 16px 44px rgba(0,0,0,.52),0 0 27px rgba(255,0,48,.08)!important;overflow:hidden;}
html body.sred-ui.mc-modulo .mc-hero::before {background:radial-gradient(ellipse at 80% 40%,rgba(255,0,48,.14),transparent 65%)!important;}
html body.sred-ui.mc-modulo .mc-hero::after {
  content:''!important;position:absolute!important;inset:0!important;z-index:3!important;pointer-events:none!important;
  border-radius:inherit!important;padding:2px!important;
  background:conic-gradient(from var(--sred08-angle),transparent 0 54%,rgba(255,16,54,.1) 61%,#ff0038 72%,rgba(255,0,50,.11) 81%,transparent 88%)!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  animation:sred08-spin 3.5s linear infinite!important;opacity:1!important;
}
html body.sred-ui.mc-modulo .mc-hero__kicker,html body.sred-ui.mc-modulo .mc-hero__selo {color:#ff365d!important;}
html body.sred-ui.mc-modulo .mc-hero__subtitulo {color:#c0b9bd!important;}
html body.sred-ui.mc-modulo :is(.card,.card-indicador,.card-principal,.info-card,.grafico-card,.card-resumo,.painel-filtros,.painel-tabela) {background-color:rgba(11,11,15,.95)!important;border-color:rgba(255,25,61,.23)!important;border-radius:20px!important;box-shadow:0 10px 32px rgba(0,0,0,.35)!important;}
html body.sred-ui.mc-modulo :is(.card,.card-indicador,.card-principal,.grafico-card,.card-resumo):hover {border-color:rgba(255,26,65,.7)!important;box-shadow:0 0 24px rgba(255,0,52,.13)!important;}
html body.sred-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {background-color:rgba(9,9,13,.96);border-color:rgba(255,34,68,.22);color:#f5f5f7;}
html body.sred-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus {border-color:#ff224b!important;box-shadow:0 0 0 3px rgba(255,0,52,.13)!important;}
html body.sred-ui.mc-modulo :is(.btn-principal,.btn-primary,.btn-azul,.btn-adicionar,button.primary) {background:linear-gradient(110deg,#e90033,#a80029)!important;border-color:rgba(255,72,102,.55)!important;box-shadow:0 8px 24px rgba(255,0,49,.19)!important;color:#fff!important;}
html body.sred-ui.mc-modulo :is(.btn-principal,.btn-primary,.btn-azul,.btn-adicionar,button.primary):hover {background:linear-gradient(110deg,#ff1646,#ca0033)!important;box-shadow:0 0 27px rgba(255,0,52,.35)!important;}
html body.sred-ui.mc-modulo :is(.btn-secundario,.btn-secondary,.btn-cinza) {background:#171016!important;border-color:rgba(255,28,64,.25)!important;}
html body.sred-ui.mc-login {background:linear-gradient(125deg,rgba(0,0,0,.94),rgba(21,0,8,.89)),url('../assets/master-control-backdrop.svg') center / cover fixed!important;}
html body.sred-ui.mc-login .login-card {background:rgba(8,8,12,.96)!important;border-color:rgba(255,25,61,.46)!important;box-shadow:0 20px 60px rgba(0,0,0,.7),0 0 24px rgba(255,0,52,.09)!important;}
html body.sred-ui :is(.ids-tabs button.active,[role='tablist'] [aria-selected='true'],[role='tablist'] button.active) {background:linear-gradient(100deg,#3b0917,#a7002a,#3b0917)!important;background-size:250% 100%!important;color:#fff!important;}
/* Animação pode ser desligada manualmente, inclusive se o SO prefere menos movimento. */
html body.sred-motion-off .menu-lateral::before,html body.sred-motion-off .menu-lateral::after,
html body.sred-motion-off.mc-modulo,html body.sred-motion-off:not(.mc-modulo):not(.pagina-inicial):not(.mc-login),
html body.sred-motion-off.mc-modulo .mc-hero::after,
html body.sred-motion-off :is(.ids-tabs button.active,[role='tablist'] [aria-selected='true'],[role='tablist'] button.active) {animation:none!important;}
