:root {
  --brand: #2563eb;
  --brand-dark: #17326b;
  --brand-accent: #fbbf24;
  --brand-soft: #eff6ff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-muted: #eef2ff;
  --border: #e5e7eb;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --sidebar-width: 292px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-dark);
}

.public-body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 42%, #f8fafc 100%);
}

.dashboard-body {
  background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 100%);
}

.auth-body {
  background: #eef3ff;
}

.public-navbar {
  background: rgba(23, 50, 107, 0.96);
  backdrop-filter: blur(10px);
}

.public-navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.public-navbar .nav-link:hover {
  color: #fff;
}

.brand-icon-mini {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.20), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.08), transparent 28%);
}

.hero-section__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.hero-badge,
.section-label,
.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-label,
.eyebrow-text {
  background: var(--brand-soft);
  color: var(--brand);
}

.hero-title {
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 45rem;
}

.hero-btn-primary,
.hero-btn-secondary {
  min-width: 12rem;
  font-weight: 700;
}

.hero-side-card {
  background: rgba(11, 18, 46, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-side-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.hero-side-item span {
  line-height: 1.45;
}

.hero-side-item i {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.35rem;
  padding: 1.15rem 1rem 0.95rem;
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.home-intro-band {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
  padding-bottom: 1rem;
}

.intro-card {
  padding: 1.65rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.intro-card__icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(251, 191, 36, 0.18));
  color: var(--brand);
}

.intro-card h5 {
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.intro-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.section-spacing {
  padding: 5.75rem 0;
}

.section-spacing--compact {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.alt-surface {
  position: relative;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0));
}

.alt-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 28%);
}

.section-heading {
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.8rem 0 0.9rem;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 0;
  line-height: 1.75;
}

.modern-carousel {
  position: relative;
}

.modern-carousel .carousel-indicators {
  margin-bottom: 1.4rem;
}

.modern-carousel .carousel-indicators [data-bs-target] {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
}

.modern-slide {
  min-height: 31rem;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: end;
}

.modern-slide__content {
  max-width: 40rem;
  margin: 2rem;
  padding: 2rem;
  color: #fff;
  border-radius: 1.6rem;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
}

.slide-kicker {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-slide__content h3 {
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modern-slide__content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.content-card,
.news-card,
.testimonial-card,
.panel-surface,
.metric-card,
.auth-surface,
.empty-state-card,
.admin-item-card,
.feature-box,
.profile-summary-box,
.demo-box,
.check-row,
.quick-action-tile,
.progress-ring-card,
.content-stat-box {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.45rem;
  box-shadow: var(--shadow-soft);
}

.content-card,
.news-card,
.testimonial-card {
  overflow: hidden;
  height: 100%;
}

.content-card__image,
.news-card__image {
  min-height: 12rem;
  background-position: center;
  background-size: cover;
}

.content-card__body,
.news-card__body {
  padding: 1.4rem;
}

.content-card__body h5,
.news-card__body h4,
.feature-box h6,
.panel-surface__header h4,
.page-heading {
  font-weight: 800;
}

.content-card__body p,
.news-card__body p,
.feature-box p,
.testimonial-quote,
.content-highlight,
.news-card__excerpt {
  color: var(--text-muted);
}

.content-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-highlight {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.content-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.content-card__body h5,
.news-card__body h4 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.content-card:hover,
.news-card:hover,
.testimonial-card:hover,
.intro-card:hover {
  transform: translateY(-4px);
  transition: 0.25s ease;
}

.testimonial-card {
  position: relative;
  padding: 1.5rem;
}

.testimonial-quote-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1rem;
}

.testimonial-quote {
  line-height: 1.75;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-cta-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.95));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.8rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.home-cta-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.home-cta-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.testimonial-card {
  padding: 1.4rem;
}

.testimonial-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.rating-stars {
  color: var(--brand-accent);
}

.news-card__excerpt {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.empty-state-card i {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.public-footer {
  background: #17326b;
}

.footer-label {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.dashboard-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar-panel {
  width: var(--sidebar-width);
  background: #17326b;
  color: #fff;
  padding: 1.4rem 1.15rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1030;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.brand-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.87rem;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  margin-bottom: 1.4rem;
}

.avatar-circle {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sidebar-section-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  transition: 0.2s ease;
}

.sidebar-link i {
  font-size: 1rem;
}

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

.dashboard-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-shell {
  padding: 1.5rem;
}

.page-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill--success {
  color: #166534;
  background: #dcfce7;
}

.status-pill--primary {
  color: #1d4ed8;
  background: #dbeafe;
}

.metric-card {
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.metric-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--brand);
  background: var(--brand-soft);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-value--sm {
  font-size: 1.1rem;
}

.panel-surface {
  padding: 1.4rem;
  height: 100%;
}

.panel-surface__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quick-action-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action-tile {
  text-decoration: none;
  color: inherit;
  padding: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.quick-action-tile i {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.quick-action-tile span {
  font-weight: 700;
}

.quick-action-tile small {
  color: var(--text-muted);
}

.quick-action-tile:hover {
  transform: translateY(-2px);
}

.content-stat-stack {
  display: grid;
  gap: 0.85rem;
}

.content-stat-box {
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-stat-box span {
  color: var(--text-muted);
}

.content-stat-box strong {
  font-size: 1.15rem;
}

.check-row {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modern-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-width: 1px;
}

.modern-table td,
.modern-table th {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.progress-ring-card {
  text-align: center;
  padding: 1.6rem 1rem;
}

.progress-ring-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.panel-card,
.stat-card,
.auth-card {
  border: 0;
  border-radius: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-section .panel-surface {
  overflow: hidden;
}

.auth-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
  font-size: 2rem;
}

.feature-box {
  padding: 1.15rem;
  height: 100%;
}

.feature-box i {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.profile-summary-box,
.demo-box {
  padding: 1rem;
}

.section-title {
  font-weight: 800;
  margin-bottom: 1rem;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(37, 99, 235, 0.5);
}

.btn {
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  border: 0;
}

.btn-warning {
  color: #1f2937;
}

.detail-list dt {
  color: var(--text-muted);
}

.detail-list dd {
  font-weight: 500;
}

.list-group-item {
  background: transparent;
}

.admin-item-card {
  padding: 1rem;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1199.98px) {
  .quick-action-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 991.98px) {
  .home-intro-band {
    margin-top: 0;
    padding-top: 1rem;
  }

  .modern-slide {
    min-height: 25rem;
  }

  .modern-slide__content {
    margin: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section__content {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero-stat-row,
  .quick-action-grid,
  .quick-action-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-panel {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar-panel.is-open {
    transform: translateX(0);
  }

  .dashboard-content {
    margin-left: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1025;
  }

  .sidebar-backdrop.is-visible {
    display: block;
  }
}


@media (max-width: 767.98px) {
  .hero-title {
    max-width: none;
  }

  .section-spacing {
    padding: 4rem 0;
  }

  .section-spacing--compact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .modern-slide {
    min-height: 22rem;
  }

  .home-cta-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-stat-row,
  .quick-action-grid,
  .quick-action-grid--three {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    padding: 1rem;
  }

  .page-shell {
    padding: 1rem;
  }

  .panel-surface,
  .metric-card,
  .auth-surface,
  .content-card,
  .news-card,
  .testimonial-card,
  .admin-item-card {
    border-radius: 1.2rem;
  }

  .hero-side-card,
  .modern-slide__content {
    padding: 1.4rem;
  }
}

/* Dashboard refinement */
.dashboard-body {
  background: #f4f7fb;
}

.sidebar-panel {
  background: #12306b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link {
  border: 1px solid transparent;
  font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sidebar-link--danger:hover {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(220, 38, 38, 0.16);
}

.dashboard-topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.page-shell {
  padding: 1.75rem;
}

.metric-card--glow {
  position: relative;
  overflow: hidden;
}

.metric-card--glow::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
}

.panel-surface {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
}

.panel-surface__header {
  margin-bottom: 1.4rem;
}

.table-shell {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.1rem;
  overflow: hidden;
}

.modern-table {
  --bs-table-bg: transparent;
}

.modern-table thead th {
  background: #f8fafc;
  color: #64748b;
}

.modern-table tbody tr {
  transition: background-color 0.18s ease;
}

.modern-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

.quick-action-tile,
.content-stat-box,
.check-row,
.progress-ring-card,
.feature-box,
.admin-item-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-action-tile:hover,
.admin-item-card:hover,
.content-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.quick-action-tile--static {
  cursor: default;
}

.quick-action-tile--static:hover {
  transform: none;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-item-card {
  padding: 1.1rem;
}

.modal-surface {
  border: 0;
  border-radius: 1.45rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.modal-surface .modal-header,
.modal-surface .modal-footer {
  background: transparent;
}

.modal-surface .form-control,
.modal-surface .form-select {
  min-height: 2.9rem;
}

.alert {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991.98px) {
  .management-grid {
    grid-template-columns: 1fr;
  }
}


.hero-inline-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero-side-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-side-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 34rem;
}

.section-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.modal-lg,
.modal-xl {
  --bs-modal-width: 880px;
}

.page-header-card {
  padding: 1.6rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
}

.profile-page-copy {
  max-width: 56rem;
  line-height: 1.75;
}

.page-header-actions {
  flex-shrink: 0;
}

.profile-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-badge-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.22));
}

.profile-insight-list {
  display: grid;
}

.profile-insight-item {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.profile-insight-label,
.mini-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.profile-insight-item strong,
.mini-stat-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.mini-stat-card {
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.mini-stat-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-section-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.2));
  color: var(--brand);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.progress-summary-card {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.98), rgba(29, 78, 216, 0.96));
  color: #fff;
}

.progress-summary-card .text-muted,
.progress-summary-card .profile-insight-label,
.progress-summary-card .mini-stat-label,
.progress-summary-card .survey-stat-row span {
  color: rgba(255, 255, 255, 0.76) !important;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-pill.is-success {
  color: #166534;
  background: #dcfce7;
}

.progress-pill.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.survey-progress-circle {
  width: 12rem;
  height: 12rem;
  margin: 0 auto;
  position: relative;
}

.progress-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle-track,
.progress-circle-value {
  fill: none;
  stroke-width: 10;
}

.progress-circle-track {
  stroke: rgba(255,255,255,0.16);
}

.progress-circle-value {
  stroke: #fff;
  stroke-linecap: round;
}

.survey-progress-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.survey-progress-text strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.survey-progress-text span {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.survey-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.survey-stat-row:last-child {
  border-bottom: 0;
}

.soft-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
}

.question-card {
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.15rem;
}

.question-label {
  font-size: 1rem;
}

.survey-choice-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.survey-choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  cursor: pointer;
}

.survey-choice-pill input {
  margin-top: 0;
}

.employment-switch-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

@media (max-width: 991.98px) {
  .page-header-card {
    padding: 1.25rem;
  }

  .form-section-heading {
    gap: 0.85rem;
  }

  .survey-progress-circle {
    width: 10.5rem;
    height: 10.5rem;
  }
}

.admin-detail-stack {
  display: grid;
  gap: 1rem;
}

.admin-detail-item,
.admin-info-card,
.answer-display,
.empty-state-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.15rem;
}

.admin-detail-item,
.admin-info-card {
  padding: 1rem 1.05rem;
}

.admin-detail-item span,
.admin-info-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.admin-detail-item strong,
.admin-info-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dark);
}

.admin-answer-card {
  border-radius: 1.25rem;
}

.answer-display {
  padding: 1rem 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.answer-display.is-empty {
  color: var(--text-muted);
  font-style: italic;
}

.empty-state-panel {
  padding: 2.25rem 1.5rem;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 1.25rem;
  color: var(--brand);
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.2));
}

.rating-progress-track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.rating-progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

@media (max-width: 991.98px) {
  .empty-state-panel {
    padding: 1.75rem 1.15rem;
  }
}

/* Final admin list page polish */
.filter-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.search-input-wrap .form-control {
  padding-left: 2.7rem;
}

.admin-list-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.admin-list-table td {
  vertical-align: middle;
}

.table-person-cell {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.table-person-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.22));
  color: var(--brand);
  font-weight: 800;
  flex-shrink: 0;
}

.table-person-avatar--blue {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(59, 130, 246, 0.22));
  color: #0369a1;
}

.table-person-avatar--indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(129, 140, 248, 0.25));
  color: #4338ca;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-pill--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.status-pill--muted {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.status-pill--info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.empty-state-simple {
  max-width: 32rem;
  margin: 0 auto;
}

.empty-state-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.35rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.22));
  color: var(--brand);
  font-size: 1.5rem;
}

@media (max-width: 991.98px) {
  .table-person-cell {
    align-items: flex-start;
  }
}


.proof-file-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.04);
}

.proof-file-card--admin {
    background: #fbfdff;
}

.construction-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.construction-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
}

.construction-meta-item--full {
    grid-column: 1 / -1;
}

.construction-meta-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .45rem;
}

.construction-section-card {
    border: 1px solid #e2e8f0;
}

.construction-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.construction-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.construction-empty {
    padding: 1rem 1.1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
}

.construction-question-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.construction-question-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.construction-question-top {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.construction-question-order {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    flex-shrink: 0;
}

.construction-question-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.construction-question-text {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .5rem;
}

.construction-help-text {
    color: #64748b;
    margin-bottom: .8rem;
}

.construction-options-block {
    border-top: 1px dashed #e2e8f0;
    margin-top: .85rem;
    padding-top: .85rem;
}

.construction-options-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: .6rem;
}

.construction-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.construction-option-chip {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: .9rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
    .construction-meta-grid {
        grid-template-columns: 1fr;
    }
}


/* Flat + compact dashboard theme */
:root {
  --sidebar-width: 248px;
}

.dashboard-body {
  background: #f5f7fb;
  font-size: 14px;
}

.dashboard-body .panel-surface,
.dashboard-body .metric-card,
.dashboard-body .table-shell,
.dashboard-body .quick-action-tile,
.dashboard-body .content-stat-box,
.dashboard-body .progress-ring-card,
.dashboard-body .feature-box,
.dashboard-body .admin-item-card,
.dashboard-body .profile-summary-box,
.dashboard-body .demo-box,
.dashboard-body .auth-surface,
.dashboard-body .modal-content,
.dashboard-body .card {
  border-radius: 0.9rem;
  box-shadow: none !important;
  border: 1px solid var(--border);
}

.dashboard-body .sidebar-panel {
  width: var(--sidebar-width);
  background: #183153;
  padding: 1rem 0.85rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.dashboard-body .sidebar-brand {
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.dashboard-body .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.dashboard-body .brand-title {
  font-size: 0.95rem;
}

.dashboard-body .brand-subtitle {
  font-size: 0.74rem;
}

.dashboard-body .sidebar-user-card {
  padding: 0.8rem;
  gap: 0.65rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}

.dashboard-body .avatar-circle {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.85rem;
}

.dashboard-body .sidebar-section-label {
  font-size: 0.68rem;
  margin-bottom: 0.55rem;
}

.dashboard-body .sidebar-nav {
  gap: 0.2rem;
}

.dashboard-body .sidebar-link {
  padding: 0.68rem 0.78rem;
  gap: 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.87rem;
}

.dashboard-body .sidebar-link i {
  font-size: 0.92rem;
}

.dashboard-body .dashboard-content {
  margin-left: var(--sidebar-width);
}

.dashboard-body .dashboard-topbar {
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0.8rem 1rem;
}

.dashboard-body .eyebrow-text {
  padding: 0.28rem 0.65rem;
  font-size: 0.66rem;
}

.dashboard-body .topbar-title {
  font-size: 1.05rem;
}

.dashboard-body .topbar-actions .btn,
.dashboard-body .dashboard-topbar .btn {
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem;
  border-radius: 0.65rem;
}

.dashboard-body .page-shell {
  padding: 1rem 1.1rem;
}

.dashboard-body .page-heading {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.dashboard-body .status-pill {
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
}

.dashboard-body .metric-card {
  padding: 0.95rem;
  gap: 0.75rem;
}

.dashboard-body .metric-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.dashboard-body .metric-label {
  font-size: 0.75rem;
}

.dashboard-body .metric-value {
  font-size: 1.5rem;
}

.dashboard-body .metric-value--sm {
  font-size: 0.95rem;
}

.dashboard-body .panel-surface {
  padding: 1rem;
  background: #ffffff;
}

.dashboard-body .panel-surface__header {
  margin-bottom: 1rem;
}

.dashboard-body .quick-action-grid,
.dashboard-body .content-grid,
.dashboard-body .stats-grid {
  gap: 0.75rem;
}

.dashboard-body .quick-action-tile {
  padding: 0.95rem;
  gap: 0.3rem;
  background: #ffffff;
}

.dashboard-body .quick-action-tile i {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
}

.dashboard-body .quick-action-tile span {
  font-size: 0.9rem;
}

.dashboard-body .quick-action-tile small {
  font-size: 0.76rem;
  line-height: 1.4;
}

.dashboard-body .content-stat-stack {
  gap: 0.65rem;
}

.dashboard-body .content-stat-box {
  padding: 0.8rem 0.9rem;
  background: #ffffff;
}

.dashboard-body .content-stat-box span {
  font-size: 0.78rem;
}

.dashboard-body .content-stat-box strong {
  font-size: 1rem;
}

.dashboard-body .progress-ring-card {
  padding: 1rem 0.9rem;
}

.dashboard-body .progress-ring-value {
  font-size: 2rem;
}

.dashboard-body .table-shell {
  border-radius: 0.9rem;
}

.dashboard-body .modern-table thead th {
  font-size: 0.72rem;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.dashboard-body .modern-table td,
.dashboard-body .modern-table th {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  font-size: 0.86rem;
}

.dashboard-body .form-label {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dashboard-body .form-control,
.dashboard-body .form-select,
.dashboard-body textarea.form-control {
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.87rem;
}

.dashboard-body .btn {
  font-size: 0.84rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  box-shadow: none !important;
}

.dashboard-body .btn-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
}

.dashboard-body .btn-warning {
  background: #fbbf24;
  border: 1px solid #fbbf24;
}

.dashboard-body .btn-outline-primary,
.dashboard-body .btn-outline-secondary,
.dashboard-body .btn-outline-danger,
.dashboard-body .btn-outline-light,
.dashboard-body .btn-light {
  border-width: 1px;
}

.dashboard-body .modal-header,
.dashboard-body .modal-body,
.dashboard-body .modal-footer {
  padding: 0.9rem 1rem;
}

.dashboard-body .quick-action-tile:hover,
.dashboard-body .admin-item-card:hover,
.dashboard-body .content-stat-box:hover,
.dashboard-body .feature-box:hover {
  transform: none;
  box-shadow: none !important;
}

@media (max-width: 991.98px) {
  :root {
    --sidebar-width: 248px;
  }

  .dashboard-body .dashboard-topbar {
    padding: 0.7rem 0.9rem;
  }

  .dashboard-body .page-shell {
    padding: 0.9rem;
  }
}


.auth-section--compact {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.auth-surface--compact {
  max-width: 430px;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-icon--compact {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-control {
  min-height: 42px;
  border-radius: 0.85rem;
  padding: 0.68rem 0.85rem;
  font-size: 0.95rem;
}

.auth-submit-btn {
  min-height: 42px;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--brand-dark);
}

/* Phase 6: compact announcement and communication UI */
.status-pill--danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.status-pill--soft {
  background: #f1f5f9;
  color: #475569;
}

.public-announcement-card,
.announcement-card,
.announcement-mini-card,
.announcement-detail-card {
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
}

.public-announcement-card {
  border-radius: 1.1rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.public-announcement-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.public-announcement-card h4 {
  font-size: 1.03rem;
  font-weight: 800;
}

.public-announcement-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.announcement-card {
  border-radius: 1rem;
  padding: 1.15rem;
}

.announcement-card--unread {
  border-left: 4px solid var(--brand);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.055), #fff 32%);
}

.announcement-card h4 {
  font-size: 1.04rem;
  font-weight: 800;
}

.announcement-mini-card {
  display: block;
  min-height: 100%;
  border-radius: 0.9rem;
  padding: 0.95rem;
  color: var(--text-dark);
  text-decoration: none;
}

.announcement-mini-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.announcement-mini-card strong {
  display: block;
  margin: 0.3rem 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.announcement-mini-card small {
  display: -webkit-box;
  color: var(--text-muted);
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.announcement-mini-card--unread {
  border-left: 3px solid var(--brand);
  background: #f8fbff;
}

.announcement-detail-card {
  border-radius: 1.1rem;
}

.announcement-body {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: normal;
}

/* Phase 7 compact analytics styling */
.chart-box {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 240px;
    overflow: hidden;
}

.chart-box-sm {
    height: 230px;
    min-height: 210px;
}

.analytics-chart {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}

.feedback-score-list {
    display: grid;
    gap: .75rem;
}

.score-row {
    padding: .65rem .75rem;
    border: 1px solid var(--border-color);
    border-radius: .65rem;
    background: #fff;
}

.score-track {
    height: 7px;
    background: #e9eef7;
    border-radius: 999px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #2563eb;
    border-radius: inherit;
}

.metric-card-flat {
    min-height: 80px;
}

.compact-label {
    font-size: .75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: .3rem;
}

@media (max-width: 767px) {
    .chart-box,
    .chart-box-sm {
        height: 240px;
    }
}

/* Phase 8: print-friendly report styling */
.print-report-body {
    background: #f5f7fb;
    color: #172033;
    font-size: 12px;
}
.print-report-wrapper {
    width: min(1120px, calc(100% - 32px));
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e4e8f0;
    padding: 28px;
}
.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
}
.print-report-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid #182033;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.print-org {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #475569;
}
.print-report-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 4px 0;
}
.print-report-header p {
    margin: 0;
    color: #64748b;
}
.print-meta-box {
    min-width: 230px;
    border: 1px solid #d8dee9;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    align-self: flex-start;
}
.print-meta-box strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.print-section {
    margin-top: 22px;
    break-inside: avoid;
}
.print-section h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #172033;
}
.print-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.print-summary-grid div {
    border: 1px solid #d8dee9;
    padding: 10px;
    background: #f8fafc;
}
.print-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
}
.print-summary-grid strong {
    display: block;
    font-size: 20px;
    color: #172033;
}
.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.print-table th,
.print-table td {
    border: 1px solid #d8dee9;
    padding: 7px 8px;
    vertical-align: top;
}
.print-table th {
    background: #eef2f7;
    color: #172033;
    font-weight: 800;
}
.print-table.compact {
    max-width: 520px;
}
@media print {
    @page { margin: 14mm; }
    .no-print { display: none !important; }
    .print-report-body { background: #fff; }
    .print-report-wrapper { width: 100%; margin: 0; padding: 0; border: 0; }
    .print-section { page-break-inside: avoid; }
}

/* Phase 9: audit/security page helpers */
.audit-description-cell {
    max-width: 360px;
    white-space: normal;
    line-height: 1.35;
}
code.small {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 6px;
    color: #334155;
}

/* Auth page feedback messages */
.auth-flash-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    z-index: 1080;
}
.auth-flash-container .alert {
    margin-bottom: .5rem;
}
