/* ============================================================
   UNIHR — Tema (paleta em tons de azul)
   ============================================================ */
:root {
  --unihr-navy:      #0b2545;  /* sidebar / topo escuro */
  --unihr-navy-2:    #13315c;
  --unihr-blue:      #1e5bb8;  /* primária */
  --unihr-blue-600:  #1a4f9f;
  --unihr-blue-300:  #5b8fd9;
  --unihr-sky:       #e8f1fb;  /* fundos suaves */
  --unihr-bg:        #f4f7fb;
  --unihr-text:      #1c2b3a;
  --unihr-muted:     #6b7c93;
}

body {
  background: var(--unihr-bg);
  color: var(--unihr-text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* --- Botões / primária --- */
.btn-primary {
  background: var(--unihr-blue);
  border-color: var(--unihr-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--unihr-blue-600);
  border-color: var(--unihr-blue-600);
}
.text-primary { color: var(--unihr-blue) !important; }
a { color: var(--unihr-blue); }

/* --- Marca --- */
.unihr-brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.unihr-brand span { color: var(--unihr-blue-300); }

/* ============================================================
   Login
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--unihr-navy) 0%, var(--unihr-blue) 100%);
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(11, 37, 69, .35);
}
.login-card .card-header {
  background: var(--unihr-navy);
  border-radius: 14px 14px 0 0;
  text-align: center;
  padding: 1.5rem;
}

/* ============================================================
   Layout autenticado (sidebar + topbar)
   ============================================================ */
.unihr-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--unihr-navy);
  color: #cdd9ea;
  padding: 0;
  overflow-y: auto;
}
.unihr-sidebar .brand-box {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.unihr-sidebar .nav-link {
  color: #cdd9ea;
  padding: .7rem 1.25rem;
  border-left: 3px solid transparent;
}
.unihr-sidebar .nav-link:hover {
  background: var(--unihr-navy-2);
  color: #fff;
}
.unihr-sidebar .nav-link.active {
  background: var(--unihr-navy-2);
  color: #fff;
  border-left-color: var(--unihr-blue-300);
}

.unihr-main {
  margin-left: 240px;
  min-height: 100vh;
}
.unihr-topbar {
  background: #fff;
  border-bottom: 1px solid #e3e9f2;
  padding: .75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.unihr-content { padding: 1.5rem; }

/* --- Cards de indicadores --- */
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11,37,69,.06);
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--unihr-navy); }
.stat-card .stat-label { color: var(--unihr-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--unihr-sky);
  color: var(--unihr-blue);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .unihr-sidebar { width: 100%; height: auto; position: static; }
  .unihr-main { margin-left: 0; }
}

/* ============================================================
   Certificado (página imprimível)
   ============================================================ */
.certificado {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
}
.certificado-borda {
  border: 3px solid var(--unihr-blue);
  outline: 1px solid var(--unihr-blue-300);
  outline-offset: 6px;
  border-radius: 6px;
  padding: 48px 56px;
}

@media print {
  .d-print-none { display: none !important; }
  body { background: #fff; }
  .certificado-borda { box-shadow: none; }
  @page { size: A4 landscape; margin: 12mm; }
}
