/* style.css */
:root{
  --bg:#0f1217;
  --panel:#141a22;
  --muted:#8ea0b6;
  --text:#e6eef8;
  --accent:#ffd54d;
  --accent-2:#93c5fd;
  --ok:#34d399;
  --warn:#f59e0b;
  --danger:#ef4444;
  --border: #223042;
}

*{box-sizing:border-box}

body{
  margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:linear-gradient(180deg, #0d1117, #0f1217);
  color:var(--text);
}

.container{
  max-width:1200px; margin:40px auto; padding:0 16px;
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

h1{
  margin:0 0 16px 0; font-size:28px; font-weight:700;
}
h2{ margin:16px 0 8px 0; font-size:18px; color:var(--muted) }

.grid{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:12px;
}
@media (max-width:900px){
  .grid{ grid-template-columns: repeat(6, 1fr); }
}
@media (max-width:600px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

.field{
  grid-column: span 3;
  display:flex; flex-direction:column; gap:6px;
}
.field.wide{ grid-column: span 6; }
.field.full{ grid-column: span 12; }
label{ font-size:12px; color:var(--muted); }
input[type="text"], input[type="date"], select{
  width:100%; padding:10px 12px; background:#0b0f14; color:var(--text);
  border:1px solid var(--border); border-radius:10px; outline:none;
}
input::placeholder{ color:#6b7f96; }

.actions{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;
}
button, .btn{
  background:var(--accent); color:#0b0f14; border:none; border-radius:10px; padding:10px 16px;
  font-weight:700; cursor:pointer;
}
.btn.secondary{ background:#1f2937; color:#dbeafe; border:1px solid var(--border); }
.btn.ghost{ background:transparent; color:var(--accent-2); border:1px dashed var(--border); }

.table-wrap{
  overflow:auto; margin-top:20px;
  border:1px solid var(--border); border-radius:12px;
}
table{ width:100%; border-collapse:collapse; min-width:800px; }
th, td{ padding:12px 14px; border-bottom:1px solid #1f2a37; }
th{ text-align:left; font-size:12px; letter-spacing:.02em; color:#93a4b8; background:#0b0f14; position:sticky; top:0; }
tr:hover td{ background:#0c1219; }

.badge{
  padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700;
}
.badge.M{ background:#1e293b; color:#c7d2fe; }
.badge.F{ background:#1e293b; color:#f9a8d4; }
.badge.N{ background:#1e293b; color:#a7f3d0; }

.meta{
  display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; color:var(--muted);
  font-size:14px;
}
.pagination{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
}
.page-btn{
  background:#0b0f14; color:#cfe1ff; border:1px solid var(--border);
  padding:8px 12px; border-radius:8px; text-decoration:none;
}
.page-btn.active{ background:var(--accent-2); color:#0b0f14; border-color:transparent; }

.kpi{
  display:flex; gap:16px; flex-wrap:wrap; margin:10px 0 0;
}
.kpi .pill{
  border:1px solid var(--border); background:#0b0f14; color:#cfe1ff; padding:6px 10px; border-radius:999px; font-size:12px;
}
