:root {
  --gov-blue: #0b3d91;
  --gov-blue-dark: #082f6f;
  --gov-bg: #f5f7fb;
  --gov-card-radius: 16px;
}

body {
  font-family: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--gov-bg);
}

.gov-header {
  background: linear-gradient(90deg, var(--gov-blue), var(--gov-blue-dark));
  color: #fff;
}

.gov-title {
  font-weight: 700;
  line-height: 1.2;
}

.gov-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

.gov-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gov-nav {
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.gov-nav .nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.gov-nav .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.gov-card {
  border-radius: var(--gov-card-radius);
  border: 1px solid rgba(0,0,0,0.06);
}

.card-header {
  border-top-left-radius: var(--gov-card-radius) !important;
  border-top-right-radius: var(--gov-card-radius) !important;
}

.checkbox-grid {
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
}

.checkbox-box {
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
}

.gov-footer {
  background: transparent;
}

/* Improve list-group inside cards */
.list-group-item {
  border-left: 0;
  border-right: 0;
}

/* Badges */
.badge.text-bg-light {
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
}


/* Tiles pentru Capitole & Criterii */
.ref-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.ref-tile {
  --tile-bg: var(--gov-blue);
  position: relative;
  border-radius: 16px;
  background: var(--tile-bg);
  color: #fff;
  padding: 14px;
  min-height: 150px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ref-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}

.ref-tile-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.ref-tile-footer {
  position: relative;
  z-index: 1;
}

.ref-tile-code {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.ref-tile-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.15;
  opacity: 0.95;
}

a.ref-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  color: #fff;
}

/* Evidențiere pentru filtrul selectat */
.ref-tile.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 0 0 6px rgba(0,0,0,0.12);
}

/* Dashboard stat cards */
.stat-card {
  border-left: 6px solid var(--stat-accent, var(--gov-blue));
}

.stat-label {
  color: rgba(0,0,0,0.55);
  font-weight: 700;
  font-size: 0.85rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}


/* Preferință expert: Text mare */
body.text-mare { font-size: 18px; }
body.text-mare .table,
body.text-mare .form-control,
body.text-mare .form-select,
body.text-mare .form-label,
body.text-mare .btn { font-size: 1.05rem; }

/* Newsletter */
.newsletter-preview {
  line-height: 1.5;
}

.newsletter-preview a {
  color: var(--gov-blue);
  text-decoration: underline;
}
