:root {
  --brand-900: #0d4f8b;
  --brand-700: #2c8fd6;
  --accent: #86ccff;
  --bg-a: #f4faff;
  --bg-b: #dff1ff;
  --text: #16324d;
}

html {
  font-size: 15px;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
}

.bg-soft {
  background: radial-gradient(circle at 0 0, #f9fffe 0%, var(--bg-a) 45%, var(--bg-b) 100%);
}

.header-shell {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  box-shadow: 0 8px 24px rgba(13, 79, 139, 0.26);
}

.footer-shell {
  background: linear-gradient(120deg, var(--brand-900), #0b3f70);
}

.hero {
  background: linear-gradient(130deg, rgba(13, 79, 139, 0.96), rgba(44, 143, 214, 0.9));
  color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(10, 64, 114, 0.24);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(241, 178, 74, 0.24), transparent 28%),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(140deg, transparent 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.hero > .row {
  position: relative;
  z-index: 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(44, 143, 214, 0.14);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(9, 76, 136, 0.1);
}

.kpi-box {
  border-radius: 1rem;
  padding: 1.2rem;
  background: #fff;
  border-left: 6px solid var(--brand-700);
  box-shadow: 0 6px 20px rgba(13, 79, 139, 0.12);
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.btn-brand {
  background: var(--accent);
  border-color: var(--accent);
  color: #083052;
  font-weight: 600;
}

.btn-brand:hover {
  background: #a6dcff;
  border-color: #a6dcff;
  color: #07223c;
}

.home-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-quote {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.home-filter-card {
  position: relative;
}

.home-main-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid rgba(44, 143, 214, 0.18);
}

.home-main-photo-empty {
  display: grid;
  place-items: center;
  color: #5f748a;
  font-weight: 600;
  background: linear-gradient(135deg, #eef7ff, #e0f1ff);
}

.home-photo-shell {
  overflow: hidden;
  background: linear-gradient(135deg, #eef7ff, #dbeefe);
}

.home-gallery-photo {
  width: 100%;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid rgba(44, 143, 214, 0.15);
}

.home-gallery-photo-lg {
  height: 100%;
  min-height: 360px;
}

.home-gallery-photo-sm {
  height: 174px;
  object-fit: cover;
  object-position: center;
}

.home-gallery-photo-uniform {
  height: 360px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #eef7ff, #dbeefe);
}

.home-param-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 1px solid rgba(44, 143, 214, 0.2);
}

.home-filter-symbol {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-700), #6cb9f0);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(44, 143, 214, 0.22);
}

.home-foundation-card {
  position: relative;
  padding-top: 3.25rem !important;
}

.home-foundation-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(44, 143, 214, 0.3);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-doctrine-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 245, 243, 0.95)),
    radial-gradient(circle at top right, rgba(44, 143, 214, 0.08), transparent 32%);
}

.home-doctrine-mark {
  min-height: 12rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, var(--brand-900), var(--brand-700));
  color: #f3f7f7;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-doctrine-item {
  height: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 143, 214, 0.14);
}

.home-carousel {
  overflow: hidden;
}

.home-section-note {
  color: #5d7475;
  font-size: 0.96rem;
}

.home-event-card {
  border-top: 4px solid rgba(22, 100, 103, 0.25);
}

@media (max-width: 767.98px) {
  .hero {
    padding: 1.4rem;
  }

  .home-doctrine-mark {
    min-height: 8rem;
  }

  .home-main-photo {
    height: 220px;
  }

  .home-gallery-photo-lg,
  .home-gallery-photo-sm,
  .home-gallery-photo-uniform {
    height: 200px;
    min-height: 0;
  }

}

.reveal {
  animation: revealUp 0.6s ease both;
}

@keyframes revealUp {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.table-row-link {
  cursor: pointer;
}

.table-row-link:hover td {
  background-color: rgba(44, 143, 214, 0.08);
}

.voice-capture-btn.active {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.status-filter-toolbar .btn.active {
  box-shadow: inset 0 0 0 1px rgba(15, 61, 62, 0.18);
  font-weight: 600;
}

/* === Calendário Dashboard === */
.dashboard-calendar-card {
  overflow: hidden;
}

.dashboard-calendar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid #dde7ea;
}

.dashboard-calendar-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: #17324d;
}

.dashboard-calendar-nav {
  border: 0;
  background: transparent;
  color: #0d6efd;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.dashboard-calendar-nav:hover {
  color: #084298;
}

.dashboard-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-calendar-weekday {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a5568;
  text-transform: lowercase;
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-calendar-day {
  min-height: 140px;
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.dashboard-calendar-day.is-outside {
  background: #f8fafc;
  color: #9aa7b2;
}

.dashboard-calendar-day.is-today {
  border-color: #166467;
  box-shadow: inset 0 0 0 1px rgba(22, 100, 103, 0.2);
}

.dashboard-calendar-day-number {
  font-size: 1.45rem;
  font-weight: 600;
  color: #12263a;
  margin-bottom: 0.75rem;
}

.dashboard-calendar-day.is-outside .dashboard-calendar-day-number {
  color: #9aa7b2;
}

.dashboard-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dashboard-calendar-event {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.dashboard-calendar-event:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.dashboard-calendar-event-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-evt-particular {
  background-color: #fff3cd;
  color: #856404;
}

.cal-evt-particular-done {
  background-color: #d4edda;
  color: #155724;
}

.cal-evt-atrasado {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f1aeb5;
  animation: atraso-pulse 1.15s ease-in-out infinite;
}

@keyframes atraso-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.dashboard-calendar-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #495057;
}

.cal-legend {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.participante-fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.participante-foto-card {
  margin: 0;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.participante-foto-trigger {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.participante-foto-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.participante-foto-caption {
  font-size: 0.75rem;
  padding: 0.45rem 0.6rem;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participante-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.participante-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.participante-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 1100px);
  margin: 4vh auto;
  background: #0f172a;
  border-radius: 12px;
  padding: 2.5rem 3.25rem 1rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.participante-lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

.participante-lightbox-caption {
  color: #e2e8f0;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

.participante-lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.participante-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.9rem;
  line-height: 1;
}

.participante-lightbox-nav.prev {
  left: 12px;
}

.participante-lightbox-nav.next {
  right: 12px;
}

@media (max-width: 991.98px) {
  .dashboard-calendar-grid,
  .dashboard-calendar-weekdays {
    gap: 0.5rem;
  }

  .dashboard-calendar-day {
    min-height: 110px;
    padding: 0.65rem;
  }

  .dashboard-calendar-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-calendar-weekdays,
  .dashboard-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-calendar-weekday:nth-child(n+3) {
    display: none;
  }
}
