* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f1419;
  color: #e6edf3;
  min-height: 100vh;
}
.center-screen { display: flex; align-items: center; justify-content: center; padding: 20px; }

/* Navbar */
.topnav {
  display: flex; align-items: center; gap: 10px;
  background: #161b22; padding: 12px 20px;
  border-bottom: 1px solid #30363d;
  position: sticky; top: 0; z-index: 10;
}
.topnav .brand { font-weight: 700; margin-right: 20px; }
.topnav a {
  color: #e6edf3; text-decoration: none; padding: 6px 12px;
  border-radius: 6px; font-size: 14px;
}
.topnav a:hover { background: #21262d; }
.topnav a.active { background: #1f6feb; }
.topnav a.logout { margin-left: auto; color: #f85149; }

/* Container */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
h1, h2 { margin: 18px 0 10px; }
h2 { font-size: 18px; color: #79c0ff; }

/* Card */
.card {
  background: #161b22; border: 1px solid #30363d;
  padding: 20px; border-radius: 10px; margin-bottom: 20px;
}
.auth-card { width: 340px; text-align: center; }
.auth-card h1 { font-size: 22px; margin-bottom: 20px; }

/* Grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 button { grid-column: span 2; }

/* Inputs */
input, select {
  width: 100%; padding: 10px 12px; margin: 6px 0;
  background: #0d1117; border: 1px solid #30363d;
  border-radius: 6px; color: #e6edf3; font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: #1f6feb; }

/* Buttons */
.btn {
  padding: 10px 16px; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: #21262d; color: #e6edf3; margin: 4px 2px;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn.primary { background: #1f6feb; }
.btn.success { background: #238636; }
.btn.warn    { background: #9e6a03; }
.btn.danger  { background: #da3633; }
.btn.sm      { padding: 5px 10px; font-size: 12px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; margin: 10px 0 25px; font-size: 14px; }
.tbl th, .tbl td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid #21262d;
}
.tbl th { color: #8b949e; background: #0d1117; font-weight: 600; }
.tbl tr:hover td { background: #161b22; }

/* Toast */
.toast {
  position: fixed; top: 20px; right: 20px;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  animation: slideIn 0.25s ease-out;
  z-index: 1000;
}
.toast.ok  { background: #238636; color: white; }
.toast.err { background: #da3633; color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Misc */
.msg { margin-top: 12px; font-size: 13px; color: #8b949e; }