.bg-purple {
  background-color: #6f42c1 !important;
  color: #fff;
}

.sidebar {
  background: #0f172a;
  color: #94a3b8;
  width: 248px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem 0.75rem;
  text-decoration: none;
}

.sidebar-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.sidebar-hr {
  border-color: #1e293b;
  margin: 0.5rem 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 2px;
}
.sidebar-nav .nav-link i {
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.sidebar-nav .nav-link.active {
  background: #1e3a5f;
  color: #60a5fa;
  font-weight: 600;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
}
.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a5f;
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  background: #f8fafc;
  min-height: 100vh;
}

.card {
  border-radius: 12px !important;
}

.shadow-sm {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07) !important;
}

.table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-color: #e8edf3;
}
.table td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: #f1f5f9;
}

.table-light th {
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

.table-hover > tbody > tr:hover > * {
  background-color: #f0f7ff !important;
}

.form-control,
.form-select {
  border-color: #e2e8f0;
  border-radius: 8px;
}
.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control-sm,
.form-select-sm {
  border-radius: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.btn {
  border-radius: 8px;
}

.btn-sm {
  border-radius: 6px;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
}
.btn-outline-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

h1.h3,
h1.h4 {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.nav-tabs {
  border-bottom: 1px solid #e2e8f0;
}
.nav-tabs .nav-link {
  color: #64748b;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-radius: 0;
}
.nav-tabs .nav-link:hover {
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}
.nav-tabs .nav-link.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

.kpi-card {
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}
.kpi-card:hover {
  border-left-color: var(--bs-primary);
}

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

.section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 700;
}

.ilist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ilist-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  margin: 0 -0.5rem;
  border-radius: 10px;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}
.ilist-item:hover {
  background: #f8fafc;
}

.ilist-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.ilist-icon.green {
  background: #dcfce7;
  color: #16a34a;
}
.ilist-icon.blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.ilist-icon.yellow {
  background: #fef9c3;
  color: #a16207;
}

.ilist-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilist-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-pill {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
}
.date-pill.upcoming {
  background: #dbeafe;
  color: #1d4ed8;
}
.date-pill.active {
  background: #dbeafe;
  color: #1d4ed8;
}
.date-pill.done {
  background: #dcfce7;
  color: #16a34a;
}

.report-md h1, .report-md h2, .report-md h3, .report-md h4 {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.report-md h1 { font-size: 1.1rem; }
.report-md h2 { font-size: 1rem; }
.report-md h3, .report-md h4 { font-size: 0.95rem; }
.report-md ul, .report-md ol { padding-left: 1.25rem; margin-bottom: 0.5rem; }
.report-md li { margin-bottom: 0.15rem; }
.report-md p { margin-bottom: 0.5rem; }
.report-md p:last-child { margin-bottom: 0; }
.report-md > :first-child { margin-top: 0; }
