:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #112036;
  --muted: #5d6b81;
  --primary: #0c5672;
  --primary-dark: #073a4f;
  --accent: #18a06a;
  --line: #d8e1ee;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff, #edf3fb);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.brand {
  display: grid;
  gap: 2px;
}
.brand strong { font-size: 1.2rem; color: var(--primary-dark); }
.brand span { font-weight: 600; color: var(--primary); }
.brand small { color: var(--muted); }

.layout {
  max-width: 1150px;
  margin: 18px auto 40px;
  padding: 0 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
  box-shadow: 0 10px 20px rgba(17, 32, 54, 0.05);
}

.login-card h1 { margin: 0 0 6px; }
.hint {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  border: 1px solid #bdd0e7;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
}
textarea { resize: vertical; }
.actions { display: flex; gap: 8px; }
.full { grid-column: 1 / -1; }
button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
}
button:hover { background: var(--primary-dark); }

.msg { min-height: 20px; color: #a12828; font-weight: 600; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tab {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #b7c9dd;
}
.tab.active {
  background: var(--primary);
  color: #fff;
}

.panel { display: none; margin-bottom: 12px; }
.panel.active { display: block; }
.panel-head h2 { margin: 0; }
.panel-head small { color: var(--muted); }

.list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid #d5e0ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}
.item h3 { margin: 0 0 6px; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}
.badge.pending { background: #fff4cf; color: #8e5d00; }
.badge.approved { background: #d8f8e8; color: #0d6f46; }
.badge.rejected { background: #fbd9d9; color: #8f1e1e; }

.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.session-bar button {
  padding: 8px 10px;
  border-radius: 8px;
}

.hidden { display: none !important; }

@media (max-width: 920px) {
  .form-grid.two { grid-template-columns: 1fr; }
}
