/* assets/style.css - Futurista (gradiente azul escuro + neon + glass) */
:root{
  --bg0:#050a16;
  --bg1:#07142b;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --neon1:#00ffd5;
  --neon2:#32ff6a;
  --warn:#ffd84a;
  --bad:#ff4d6d;
  --good:#22c55e;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 700px at 10% 10%, rgba(0,255,213,.10), transparent 60%),
    radial-gradient(800px 600px at 90% 20%, rgba(50,255,106,.10), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{ color: var(--neon1); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:1180px; margin:0 auto; padding:28px 18px 60px; }
.topbar{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border:1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(0,255,213,.09), rgba(255,255,255,.05));
  border-radius:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: radial-gradient(circle at 30% 30%, var(--neon1), rgba(0,255,213,.0) 60%),
              radial-gradient(circle at 70% 70%, var(--neon2), rgba(50,255,106,.0) 60%),
              rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 6px rgba(0,255,213,.05), 0 0 30px rgba(0,255,213,.12);
}
.brand h1{ font-size:16px; margin:0; letter-spacing:.4px; }
.brand .sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,255,213,.40);
  background: rgba(0,255,213,.08);
}
.btn.primary{
  border-color: rgba(0,255,213,.55);
  background: linear-gradient(135deg, rgba(0,255,213,.18), rgba(50,255,106,.12));
}
.btn.danger{
  border-color: rgba(255,77,109,.55);
  background: rgba(255,77,109,.10);
}

.card{
  margin-top:18px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
.card .hd{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card .hd h2{ margin:0; font-size:14px; letter-spacing:.5px; }
.card .bd{ padding:16px; }

.grid{
  display:grid;
  gap:12px;
}
.kpis{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.kpi{
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding:12px 12px;
  background: rgba(0,0,0,.18);
}
.kpi .t{ color:var(--muted); font-size:12px; }
.kpi .v{ font-size:18px; margin-top:6px; letter-spacing:.3px; }
.kpi .s{ font-size:12px; margin-top:6px; color: rgba(255,255,255,.78); }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size:12px;
}

.form-row{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
@media (max-width: 980px){ .form-row{ grid-template-columns: 1fr; } }
label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
input[type="text"], input[type="password"], input[type="file"]{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
input[type="text"]:focus, input[type="password"]:focus{
  border-color: rgba(0,255,213,.45);
  box-shadow: 0 0 0 6px rgba(0,255,213,.08);
}
.hr{
  height:1px; background: rgba(255,255,255,.10);
  margin: 14px 0;
}

.notice{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
}
.notice.ok{ border-color: rgba(34,197,94,.40); }
.notice.warn{ border-color: rgba(255,216,74,.40); }
.notice.bad{ border-color: rgba(255,77,109,.40); }

.table-wrap{ overflow:auto; }
.small{ font-size:12px; color: var(--muted); }

/* margem cores */
.mg-good{ color: var(--good); font-weight:700; }
.mg-warn{ color: var(--warn); font-weight:700; }
.mg-bad{  color: var(--bad);  font-weight:700; }

/* DataTables adjustments */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  background: rgba(0,0,0,.25) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  padding: 6px 10px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button{
  border-radius: 10px !important;
}
