*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  font-size: .875rem;
  background: #f1f3f4;
  color: #202124;
}

/* ── Topbar ── */
.topbar {
  background: #052c65;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #031d44;
}
.topbar-brand {
  text-decoration: none;
  padding-right: 24px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity .15s;
}
.topbar-brand:hover { opacity: .85; }
.topbar-nav { display: flex; gap: 2px; flex: 1; }
.topbar-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: #c9d8f5;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.topbar-nav a:hover  { background: rgba(255,255,255,.12); color: #fff; }
.topbar-nav a.active { background: rgba(255,255,255,.18); color: #fff; }
.topbar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-user {
  font-size: .8rem;
  color: #c9d8f5;
  background: rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 20px;
}
.topbar-logout {
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  transition: background .15s, box-shadow .15s;
}
.topbar-logout:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ── Page ── */
.page-wrap { padding: 24px 32px; }

/* ── Cards ── */
.card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  border-radius: 0 !important;
  padding: 14px 20px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .25px;
  color: #5f6368;
  text-transform: uppercase;
}
.card-body { background: #fff; padding: 20px; }

/* ── Tables ── */
.table { font-size: .875rem; margin-bottom: 0; }
.table thead th {
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
  border-top: none;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #5f6368;
  padding: 12px 16px;
}
.table tbody td { padding: 12px 16px; border-color: #e8eaed; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8f9fa; }

/* ── Form controls ── */
.form-control, .form-select {
  border-radius: 4px;
  font-size: .875rem;
  border-color: #dadce0;
  color: #202124;
}
.form-control:focus, .form-select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,.2);
}
.form-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: #5f6368;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* ── Badges ── */
.badge { border-radius: 12px; font-size: .72rem; font-weight: 500; letter-spacing: .2px; padding: 3px 10px; }
.bg-success   { background: #e6f4ea !important; color: #1e8e3e !important; }
.bg-danger    { background: #fce8e6 !important; color: #d93025 !important; }
.bg-warning   { background: #fef7e0 !important; color: #f29900 !important; }
.bg-secondary { background: #f1f3f4 !important; color: #5f6368 !important; }

/* ── Page headings ── */
h5.fw-bold { font-size: 1rem; font-weight: 500; color: #202124; }

/* ── Input group ── */
.input-group .btn { border-radius: 0 4px 4px 0; }
.input-group .form-control { border-radius: 4px 0 0 4px; }

/* ── Login ── */
body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-wrap {
  width: 448px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 48px 40px 36px;
}
.login-logo { font-size: 1.6rem; font-weight: 400; color: #202124; margin-bottom: 8px; letter-spacing: -.5px; }
.login-logo span { color: #1a73e8; font-weight: 700; }
.login-subtitle { font-size: .875rem; color: #5f6368; margin-bottom: 32px; }
.btn-signin {
  background: #1a73e8;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(60,64,67,.3);
}
.btn-signin:hover { background: #1558b0; box-shadow: 0 2px 8px rgba(26,115,232,.4); }
.alert-danger {
  background: #fce8e6;
  border: none;
  border-radius: 4px;
  color: #c5221f;
  font-size: .8rem;
  padding: 10px 14px;
}
