body {
  background-color: #f5f6fa;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Sidebar layout ────────────────────────────────────────────────────────── */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: #1a2535;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.sidebar-brand i {
  color: #60a5fa;
  font-size: 1.1rem;
}

.sidebar-nav {
  padding: 0.6rem 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-section {
  padding: 0.9rem 1.1rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 1.25rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-link:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.sidebar-link.active {
  color: #fff;
  background: rgba(96,165,250,0.15);
  border-left-color: #60a5fa;
  font-weight: 600;
}

.sidebar-link i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 4px 0;
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
  margin-top: auto;
}

#sidebarUser {
  padding: 6px 16px 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

.main-content {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.card {
  border-radius: 10px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
  white-space: nowrap;
}

.table td {
  font-size: 0.9rem;
}

/* ── Misc ───────────────────────────────────────────────────────────────────── */

.badge {
  font-size: 0.8rem;
}

code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #495057;
}

.table-warning td {
  background-color: #fff8e1 !important;
}

.table-danger td {
  background-color: #fdecea !important;
}

/* ── Notes page ─────────────────────────────────────────────────────────────── */

.note-text {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.95rem;
}
