:root{
  --bg0:#070A10;
  --bg1:#0B1020;
  --card:#0C1226cc;
  --card2:#0A1020cc;
  --line:#1A2A50;
  --text:#E8F0FF;
  --muted:#9FB2D8;

  --c1:#00E5FF; /* ciano */
  --c2:#FF3DF2; /* magenta */
  --ok:#2BFF88;
  --warn:#FFCC00;
  --bad:#FF4D6D;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 16px;
  --radius2: 12px;
}

a {
  text-decoration: none;
  color: inherit;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: monospace;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(0,229,255,.12), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,61,242,.10), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
  background-attachment: fixed;

}

.bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to right, rgba(0,229,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,61,242,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 50% 20%, rgba(0,0,0,1), rgba(0,0,0,0));
  opacity:.6;
}

.topbar{
  position:sticky;
  top:0;
  width: 100%;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  border-bottom:1px solid rgba(26,42,80,.7);
  background: linear-gradient(180deg, rgba(10,16,32,.92), rgba(10,16,32,.65));
  backdrop-filter: blur(12px);
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__icon{
  width:38px; height:38px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(255,61,242,.14));
  border:1px solid rgba(0,229,255,.25);
  box-shadow: 0 0 0 1px rgba(255,61,242,.10) inset;
  font-size: 24px;
    text-shadow: 
    0 0 10px red,
    0 0 20px red,
    0 0 40px red,
    0 0 80px red;
}
.brand__icon img{
  max-width: 100%;
}
.brand__title{ font-weight:800; letter-spacing:.12em; font-size:12px; }
.brand__sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.topbar__right{ display:flex; align-items:center; gap:10px; }

.pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(26,42,80,.9);
  background: rgba(12,18,38,.55);
  cursor:none;
}
.pill__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--muted);
  box-shadow: 0 0 18px rgba(159,178,216,.35);
}
/* base (sem animação) */
.pill__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--muted);
  box-shadow: 0 0 18px rgba(159,178,216,.35);
  transform: translateZ(0);
  will-change: transform, filter, opacity;
}

/* estados: cor + glow base */
.pill--idle .pill__dot{
  background: var(--c1);
  box-shadow: 0 0 18px rgba(0,229,255,.35);
    animation: okPulse 1400ms ease-in-out infinite;

}

.pill--busy .pill__dot{
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255,204,0,.35);
  animation: sirenGlow 900ms ease-in-out infinite;
}

.pill--bad .pill__dot{
  background: var(--bad);
  box-shadow: 0 0 18px rgba(255,77,109,.35);
  animation: sirenGlow 650ms ease-in-out infinite;
}

/* ok pisca, mas mais fraco */
.pill--ok .pill__dot{
  background: var(--ok);
  box-shadow: 0 0 18px rgba(43,255,136,.25);
  animation: okPulse 1400ms ease-in-out infinite;
}

/* “sirene de usina”: nunca apaga, só varia intensidade */
@keyframes sirenGlow {
  0%, 100%{
    transform: scale(1);
    filter: brightness(1) saturate(1);
    opacity: .95;
    box-shadow:
      0 0 10px currentColor,
      0 0 18px currentColor,
      0 0 28px rgba(255,255,255,.10);
  }
  50%{
    transform: scale(1.15);
    filter: brightness(1.7) saturate(1.35);
    opacity: 1;
    box-shadow:
      0 0 14px currentColor,
      0 0 28px currentColor,
      0 0 54px currentColor,
      0 0 90px rgba(255,255,255,.12);
  }
}

/* pulse suave do ok */
@keyframes okPulse {
  0%, 100%{
    transform: scale(1);
    filter: brightness(1) saturate(1);
    opacity: .85;
    box-shadow:
      0 0 10px rgba(43,255,136,.20),
      0 0 18px rgba(43,255,136,.18);
  }
  50%{
    transform: scale(1.08);
    filter: brightness(1.25) saturate(1.10);
    opacity: 1;
    box-shadow:
      0 0 14px rgba(43,255,136,.26),
      0 0 26px rgba(43,255,136,.22),
      0 0 44px rgba(43,255,136,.18);
  }
}

/* Faz o dot “pegar” currentColor do background do estado */
.pill--busy { color: var(--warn); }
.pill--bad  { color: var(--bad); }
.pill--ok   { color: var(--ok);  }
.pill--idle { color: var(--c1);  }

.layout{
  width: 90%;
  margin: 18px auto 42px;
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:16px;
}

.panel{
  background: linear-gradient(180deg, rgba(12,18,38,.70), rgba(10,16,32,.55));
  border:1px solid rgba(26,42,80,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: min-content;
}

.panel--wide{ min-height: 520px; }

.panel_servicos{
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

.panel__header{
  padding:16px 16px 12px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(26,42,80,.7);
  background: rgba(7,10,16,.35);
}
.panel__title{
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
  text-transform:uppercase;
}
.panel__hint{ font-size:12px; color:var(--muted); }
kbd{
  padding: 2px 6px;
  border:1px solid rgba(26,42,80,.85);
  border-bottom-color: rgba(26,42,80,.55);
  border-radius: 8px;
  background: rgba(12,18,38,.55);
  color: var(--text);
}

.form{ padding:16px; display:flex; flex-direction:column; gap:14px; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }

.field{ display:flex; flex-direction:column; gap:6px; }
.field__label{ font-size:12px; color:var(--muted); }
.field__help{ font-size:11px; color:rgba(159,178,216,.85); }

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid rgba(26,42,80,.9);
  background: rgba(8,12,24,.65);
  color:var(--text);
  outline:none;
  box-shadow: 0 0 0 1px rgba(0,229,255,.06) inset;
}
.input:focus{
  border-color: rgba(0,229,255,.65);
  box-shadow: 0 0 0 3px rgba(0,229,255,.10);
}

.toggle{
  display:flex; align-items:center; gap:10px;
  user-select:none;
  cursor:pointer;
  color:var(--muted);
  font-size:13px;
}
.toggle input{ display:none; }
.toggle__ui{
  width:44px; height:26px;
  border-radius:999px;
  border:1px solid rgba(26,42,80,.9);
  background: rgba(8,12,24,.65);
  position:relative;
}
.toggle__ui::after{
  content:"";
  position:absolute;
  top:3px; left:3px;
  width:20px; height:20px;
  border-radius:999px;
  background: rgba(159,178,216,.85);
  box-shadow: 0 0 18px rgba(159,178,216,.20);
  transition: transform .18s ease, background .18s ease;
}

.toggle input:checked + .toggle__ui{
  border-color: rgba(255,61,242,.55);
  box-shadow: 0 0 0 3px rgba(255,61,242,.10);
}
.toggle input:checked + .toggle__ui::after{
  transform: translateX(18px);
  background: rgba(255,61,242,.95);
}
.toggle__text{ color:var(--text); opacity:.92; }

.toggle_switch{
  width:44px; height:26px;
  border-radius:999px;
  border:1px solid #00ffff;
  background: 00ffff;
   box-shadow: 0 0 3px #00ffff;
  position:relative;
}
.toggle_switch::after {
  background: #00ffff;
  box-shadow: 0 0 18px #00ffff;
  color: black;
  content: '@';
  align-content: center;
  text-align: center;
  margin-top: 5px;
}

.toggle input:checked + .toggle_switch::after{
  background: rgba(255,61,242,.95);
  box-shadow: 0 0 22px rgba(255,61,242,.25);
  color: black;
  content: 'ID';
  text-align: center;
  align-content: center;
}

.input_switch{
  display: flex;
  input{
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important ;
  }
  .toggle__ui{
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important ;
    height: 41px;
  }

  &:has(.switch_checkbox:checked) .input:focus{
    border-color: rgba(255,61,242,.55);
    box-shadow: 0 0 0 3px rgba(255,61,242,.10);
  }
}


.actions{ display:flex; gap:10px; justify-content: space-around;}

.box__header .field{
  width: 100%;
}

.btn{
    margin-top: 0px !important;
  border:1px solid rgba(26,42,80,.9);
  background: rgba(12,18,38,.55);
  color:var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .12s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(0,229,255,.45); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn:active{ transform: translateY(0); }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }

.btn--primary{
  background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(255,61,242,.14));
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 0 1px rgba(255,61,242,.10) inset;
}
.btn--danger{
  background: linear-gradient(135deg, rgba(255,77,109,.18), rgba(255,61,242,.10));
  border-color: rgba(255,77,109,.55);
}
.btn--ghost{
  background: rgba(12,18,38,.25);
}

.btn__icon{ opacity:.9; }

.statusbox{
  margin-top: 2px;
  padding:12px;
  border-radius: var(--radius2);
  border:1px solid rgba(26,42,80,.8);
  background: rgba(8,12,24,.55);
}
.statusbox__title{
  font-size:11px;
  letter-spacing:.12em;
  color: var(--muted);
  text-transform:uppercase;
  margin-bottom:8px;
}
.statusbox__msg{
  font-size:13px;
  line-height:1.35;
  padding:10px 10px;
  border-radius: 12px;
  border-left: 3px solid rgba(0,229,255,.85);
  background: rgba(12,18,38,.35);
}

.stats{
  padding: 14px 16px 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.stat{
  padding:12px;
  border-radius: var(--radius2);
  border:1px solid rgba(26,42,80,.75);
  background: rgba(8,12,24,.45);
}

.split_stat{
  display: flex;
  justify-content: space-around;
}

.stat__label{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.1em;
}
.stat__value{
  margin-top:6px;
  font-size:18px;
  font-weight:800;
}
.stat__value--accent{
  color: var(--ok);
  text-shadow: 0 0 18px rgba(43,255,136,.18);
}

.batchNav{
  padding: 12px 16px 14px;
  display:flex;
  gap:10px;
  align-items:center;
}
.spacer{ flex:1; }

.split{
  padding: 0 16px 16px;
  display:grid;
  grid-template-columns: .3fr 1fr;
  gap:12px;
}

.box{
  border-radius: var(--radius);
  border:1px solid rgba(26,42,80,.75);
  background: rgba(8,12,24,.35);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 320px;
}
.box__header{
  padding:12px 12px;
  border-bottom:1px solid rgba(26,42,80,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: rgba(7,10,16,.28);
}
.box__title{
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
  text-transform:uppercase;
}
.box__actions{ display:flex; gap:8px; }

.textarea{
  flex:1;
  width:100%;
  min-height: 0;
  padding:12px;
  border:0;
  outline:none;
  resize: none;
  color:var(--text);
  background: transparent;
  line-height:1.35;
  font-size:13px;
}
.textarea::placeholder{ color: rgba(159,178,216,.55); }

.footer{
  padding: 12px 16px 16px;
  border-top:1px solid rgba(26,42,80,.55);
  color: var(--muted);
  font-size:12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muted{ color: var(--muted); }

.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 999px;
  border:1px solid rgba(26,42,80,.9);
  background: rgba(12,18,38,.75);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
}
.toast--show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .desktop {
    display: none;
  }
}


.wrap_fake{
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#login_form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blink_me {
  animation: blinker .75s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#searchInfo{
  display: inline-grid;
}

#searchInfo span{
  text-align: center;
}

#tblPessoas{
  border: 1px solid rgba(26, 42, 80, .8);
  border-collapse: collapse;
  background: transparent;
}

#tblPessoas tbody tr:hover,
.consulta_link, .menu_btn{
  color: #00ffff;
  text-shadow: 
  0 0 10px #00ffff,
  0 0 20px #00ffff,
  0 0 40px #00ffff,
  0 0 80px #00ffff;
}

#tblPessoas tbody tr td span:hover,
.consulta_link:hover, .menu_btn:hover{
  color: #a916d5;
  cursor: pointer;
  text-shadow: 
  0 0 10px #a916d5,
  0 0 20px #a916d5,
  0 0 40px #a916d5,
  0 0 80px #a916d5;
}

#tblPessoas tbody tr td span:active,
.consulta_link:active, .menu_btn:active{
  color: red;
  cursor: pointer;
  text-shadow: 
    0 0 10px red,
    0 0 20px red,
    0 0 40px red,
    0 0 80px red;
}

.center{
  text-align: center;
  text-wrap: nowrap;
}




/******************/

.wrap_fake h1{
  font-size: 50px;
}

.cartola {
    margin-top: -35px;
    position: absolute;
    margin-left: -25px;
    rotate: 340deg;
    z-index: 9999;
}

x-sign {
  --interval: 1s;
  display: block;
  text-shadow: 
    0 0 10px var(--color1),
    0 0 20px var(--color2),
    0 0 40px var(--color3),
    0 0 80px var(--color4);
  will-change: filter, color;
  filter: saturate(60%);
  animation: flicker steps(100) var(--interval) .5s infinite;
}

x-sign:nth-of-type(1) {
  color: azure;
  --color1: azure;
  --color2: aqua;
  --color3: dodgerblue;
  --color4: blue;
}
/*
x-sign:nth-of-type(1) {
  color: red;
  --color1: red;
  --color2: red;
  --color3: red;
  --color4: red;
}
*/
@keyframes flicker {
  50% {
    color: white;
    filter: saturate(200%) hue-rotate(20deg);
  }
}
/*
.typing {
    overflow: hidden;
    animation: typing .5s steps(8, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 8ch; }
}
    */

/* Modal (cyber/dark) */
.mlodal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.mlodal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.modal__panel{
  position: relative;
  width: min(520px, calc(100% - 28px));
  border-radius: var(--radius);
  border: 1px solid rgba(26,42,80,.9);
  background: linear-gradient(180deg, rgba(12,18,38,.88), rgba(10,16,32,.74));
  box-shadow: var(--shadow);
  transform: translateY(8px) scale(.985);
  transition: transform .18s ease;
  overflow: hidden;
}

.mlodal.is-open .modal__panel{
  transform: translateY(0) scale(1);
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(26,42,80,.75);
  background: rgba(7,10,16,.35);
}

.modal__title{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

.modal__x{
  padding: 8px 10px;
  border-radius: 12px;
}

.modal__body{
  padding: 14px;
}

.modal__remember{
  justify-content: flex-start;
}

.modal__footer{
  display:flex;
  justify-content: space-between;
  gap:10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(26,42,80,.65);
}

.config{
  display:grid;
  gap: 16px;
  align-content: start;
}

summary{
  cursor: pointer; 
}

.panel__helper{
  font-weight: bold;
  transform: rotate(90deg);
}

details[open] .panel__helper{
  transform: rotate(-90deg);
}

#consulta_data{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px; /* linha / coluna */
}

.inativo{
  filter: grayscale(100%);
  pointer-events: none;   
  cursor: not-allowed; 
   opacity: 0.6;  
}

.semi_inativo{
  filter: sepia(1) saturate(8) hue-rotate(0deg) brightness(1.1);
  cursor: progress; 
   opacity: 0.6;  
}



/*  INSTAGRAM */

.show_insta_info{
  text-align: center;
}