/* KON Portal — minimal stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #0a6cbc;
  --accent-dark: #084f8a;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #d1d5db;
  --error-bg: #fef2f2;
  --error-fg: #b91c1c;
  --success-bg: #f0fdf4;
  --success-fg: #15803d;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 52px;
  background: var(--accent);
  color: #fff;
}

header .brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .03em;
}

header nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  margin-left: 1rem;
  font-size: .9rem;
}

header nav a:hover { color: #fff; text-decoration: underline; }

/* ── Main content ── */
main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

/* ── Flash messages ── */
.flash {
  padding: .6rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.flash.error   { background: var(--error-bg);   color: var(--error-fg);   border-left: 3px solid var(--error-fg); }
.flash.success { background: var(--success-bg); color: var(--success-fg); border-left: 3px solid var(--success-fg); }
.flash.info    { background: #eff6ff;            color: #1e40af;           border-left: 3px solid #3b82f6; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 6px; overflow: hidden; }
th, td { padding: .55rem .9rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { background: #f1f5f9; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
tr:last-child td { border-bottom: none; }

/* ── Forms ── */
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--accent); }

button, .btn {
  display: inline-block;
  padding: .5rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); }
