:root{
  /* Background */
  --bg1:#071a2f;        /* deep blue */
  --bg2:#04111f;        /* darker blue */

  /* Cards & borders */
  --card: rgba(6, 28, 58, .72);
  --stroke: rgba(52, 211, 153, .28); /* green stroke */

  /* Text */
  --text:#e9f4ff;
  --muted:#a8c7e8;

  /* Accents */
  --accent1:#2563eb;    /* blue */
  --accent2:#22c55e;    /* green */
  --ok:#22c55e;
  --bad:#ef4444;
  --warn:#facc15;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(37,99,235,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.20), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:34px 18px 60px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

/* =========================
   LOGO + SNOW ICON
   ========================= */
.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 10px 30px rgba(37,99,235,.35);
  position:relative;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;
}

.logo::after{
  content:"";
  position:absolute;
  inset:-30%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,.35),
    transparent 55%
  );
  transform: rotate(20deg);
  z-index:1;
}

.snow{
  position:relative;
  z-index:2;
  font-size:20px;
  color:#ffffff;
  text-shadow:
    0 2px 6px rgba(0,0,0,.45),
    0 0 12px rgba(255,255,255,.35);
}

@media (prefers-reduced-motion: no-preference){
  .snow{
    animation: snowPulse 2.4s ease-in-out infinite;
  }
  @keyframes snowPulse{
    0%,100%{ opacity:.95; transform: scale(1); }
    50%{ opacity:1; transform: scale(1.08); }
  }
}

h1{
  font-size:20px;
  line-height:1.15;
  margin:0;
  letter-spacing:.2px;
}

.sub{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(6,20,38,.40);
  color:var(--muted);
  font-size:12px;
}

.card{
  background: linear-gradient(180deg, rgba(6,28,58,.75), rgba(6,28,58,.50));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  backdrop-filter: blur(10px);
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.spacer{ flex:1; }

label{
  font-size:12px;
  color:var(--muted);
  display:block;
  margin-bottom:6px;
}

input[type="text"],
input[type="search"]{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(6,20,38,.40);
  color:var(--text);
  outline:none;
}

input[type="text"]{ width:280px; max-width:100%; }
input[type="search"]{ width:260px; max-width:100%; }

/* BUTTON */
.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,.45);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color:#031425;
  font-weight:900;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.btn:hover{ filter:brightness(1.08); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.7; cursor:not-allowed; }

.status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-radius:16px;
  background: rgba(6,20,38,.40);
  border:1px solid var(--stroke);
  margin-top:14px;
  flex-wrap:wrap;
}

.badge{
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.4px;
}

.b-ok{
  background: rgba(34,197,94,.15);
  color:#bbf7d0;
}

.b-bad{
  background: rgba(239,68,68,.15);
  color:#fecaca;
}

.b-warn{
  background: rgba(250,204,21,.18);
  color:#fef3c7;
}

.b-unk{
  background: rgba(148,163,184,.15);
  color:#e5e7eb;
}

.kpis{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.kpi{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(6,20,38,.30);
  font-size:12px;
  color:var(--muted);
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.tableWrap{
  margin-top:14px;
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--stroke);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}

th, td{
  padding:12px 10px;
  font-size:13px;
  border-bottom:1px solid rgba(148,163,184,.18);
  white-space:nowrap;
}

th{
  background: rgba(6,20,38,.45);
  font-weight:900;
  position:sticky;
  top:0;
}

.nameCell{
  white-space:normal;
  min-width:320px;
}

.mini{ font-size:12px; color:var(--muted); }
.mono{ font-family: ui-monospace, monospace; }
.hint{ margin-top:10px; color:var(--muted); font-size:12px; }
