:root {
  --ink: #10192b;
  --navy: #16223f;
  --navy-light: #1f2f54;
  --teal: #0f8b8d;
  --teal-dark: #0b6b6d;
  --amber: #d98c0f;
  --red: #c0392b;
  --paper: #f5f7fa;
  --card: #ffffff;
  --border: #e3e7ee;
  --text-muted: #6b7688;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
}

/* ---------- Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--navy);
  color: #cdd6e6;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 1030;
}
.app-sidebar .brand {
  padding: 20px 18px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: .2px;
}
.app-sidebar .brand small { display:block; font-weight:400; font-size:.72rem; color:#8fa0c2; margin-top:2px; }

.app-sidebar .nav-link {
  color: #b9c4da;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-sidebar .nav-link.active {
  background: var(--navy-light);
  color: #fff;
  border-left-color: var(--teal);
  font-weight: 600;
}
.app-sidebar .nav-link .badge { margin-left: auto; }
.app-sidebar .nav-section-label {
  padding: 16px 18px 6px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6f7f9e;
}

.app-main { margin-left: 232px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.app-topbar h1 { font-size: 1.15rem; margin: 0; font-weight: 700; }

.app-content { padding: 22px 24px 40px; flex: 1; }

@media (max-width: 900px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
}

/* ---------- Cards / stat tiles ---------- */
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  height: 100%;
}
.stat-tile .stat-value { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-tile .stat-label { color: var(--text-muted); font-size: .82rem; margin-top: 6px; }
.stat-tile .stat-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,139,141,.1); color: var(--teal); font-size: 1.1rem; margin-bottom: 10px;
}

.card { border: 1px solid var(--border); border-radius: 10px; }
.card-header { background: var(--card); border-bottom: 1px solid var(--border); font-weight: 600; }

.table thead th {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { vertical-align: middle; }

.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }

.badge-pending { background: var(--amber); color: #fff; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #1a2947 55%, var(--teal-dark) 100%);
}
.login-card {
  background: var(--card);
  border-radius: 12px;
  padding: 36px 34px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(10,16,30,.35);
}
.login-card .brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}

.form-label { font-weight: 600; font-size: .85rem; }
.text-muted-sm { color: var(--text-muted); font-size: .8rem; }

.resume-link { color: var(--teal-dark); font-weight: 600; }

.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-light); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
}
