/* PRISA Intranet - Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --prisa-primary: #0b5ed7; /* bootstrap primary fallback */
  --prisa-bg: #f6f8fc;
  --prisa-card: #ffffff;
  --prisa-text: #0f172a;
  --prisa-muted: #64748b;
  --prisa-border: rgba(15, 23, 42, .08);
  --prisa-shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --prisa-radius: 18px;
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(11,94,215,.10), transparent 60%),
              radial-gradient(1000px 700px at 90% 0%, rgba(99,102,241,.10), transparent 55%),
              var(--prisa-bg);
  color: var(--prisa-text);
}

.navbar.bg-primary{
  background: linear-gradient(90deg, #0b5ed7, #4f46e5) !important;
  box-shadow: 0 8px 24px rgba(2,6,23,.12);
}

.navbar-brand span{
  letter-spacing: .2px;
}

main.container{
  max-width: 1180px;
}

.card{
  background: var(--prisa-card);
  border: 1px solid var(--prisa-border);
  box-shadow: var(--prisa-shadow);
  border-radius: var(--prisa-radius);
}

.table{
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--prisa-border);
}
.table thead th{
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  border-bottom: 1px solid var(--prisa-border);
}
.table tbody tr:hover{
  background: #f8fafc;
}

.btn{
  border-radius: 12px;
  font-weight: 600;
}
.btn-primary{
  box-shadow: 0 10px 18px rgba(11,94,215,.22);
}
.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger{
  border-width: 1px;
}

.badge{
  border-radius: 999px;
  font-weight: 600;
  padding: .35rem .6rem;
}

.form-control, .form-select{
  border-radius: 12px;
  border-color: rgba(15,23,42,.12);
}
.form-control:focus, .form-select:focus{
  box-shadow: 0 0 0 .25rem rgba(79,70,229,.15);
  border-color: rgba(79,70,229,.45);
}

.small, .text-muted{
  color: var(--prisa-muted) !important;
}

/* subtle section header */
.section-title{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:700;
}
.section-dot{
  width:10px;height:10px;border-radius:999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(255,255,255,.15);
}

/* avatar */
.avatar{
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:12px;
}

/* Sidebar + dark mode polish */
.list-group-item{
  border: 0;
  border-radius: 14px !important;
  margin-bottom: 6px;
  font-weight: 600;
  padding: .70rem .85rem;
}
.list-group-item i{opacity:.85}
.list-group-item.active{
  background: linear-gradient(90deg, rgba(11,94,215,.12), rgba(79,70,229,.12));
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.20);
}

[data-bs-theme="dark"] body{
  background: radial-gradient(1200px 700px at 15% -10%, rgba(11,94,215,.20), transparent 60%),
              radial-gradient(1000px 700px at 90% 0%, rgba(99,102,241,.18), transparent 55%),
              #0b1220;
  color: #e2e8f0;
}
[data-bs-theme="dark"] .card{
  background: rgba(15,23,42,.78);
  border-color: rgba(148,163,184,.10);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}
[data-bs-theme="dark"] .table{
  background: rgba(15,23,42,.78);
  border-color: rgba(148,163,184,.10);
}
[data-bs-theme="dark"] .table thead th{
  background: rgba(148,163,184,.10);
  color: #e2e8f0;
  border-bottom-color: rgba(148,163,184,.10);
}
[data-bs-theme="dark"] .table tbody tr:hover{
  background: rgba(148,163,184,.06);
}
[data-bs-theme="dark"] .text-muted{
  color: rgba(226,232,240,.70) !important;
}
[data-bs-theme="dark"] .list-group-item{
  background: transparent;
  color: #e2e8f0;
}
[data-bs-theme="dark"] .list-group-item.active{
  background: linear-gradient(90deg, rgba(11,94,215,.22), rgba(79,70,229,.18));
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.14);
}
