:root {
  --header-bg-color: #03a688;
  --header-text-color: #ffffff;
  --main-bg-color: linear-gradient(to right, #03588c, #027368);
  --main-text-color: #ffffff;
  --scrollbar-thumb-color: #03588c;
  --scroolbar-track-color: #027368;
  --footer-bg-color: #03a688;
  --footer-text-color: #ffffff;

  --card-etapa-bg-color: #03a688;
  --card-etapa-text-color: #fff;
}

a {
  text-decoration: none;
}

small {
  font-size: 14px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--main-bg-color);
  color: var(--main-text-color);
  display: flex;
  flex-direction: column;
  font-family: Onest;
  font-size: 14px;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
}

.btn {
  border-radius: 15px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  margin-top: 70px;
  overflow-y: auto;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scroolbar-track-color);
  scrollbar-width: thin;
}

.topbar {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.topbar .navbar-offset-1 {
  margin: 0 8.33333333%;
}

.topbar .navbar-offset-2 {
  margin: 0 16.66666667%;
}

.topbar .navbar-brand {
  align-items: center;
  display: flex;
  height: 70px;
}

.topbar .navbar-brand img {
  max-height: 50px;
}

.topbar .top-navbar {
  min-height: 70px;
  padding: 0;
}

.topbar .top-navbar #navbarNav {
  flex-direction: row-reverse;
  padding-bottom: 15px;
  padding-top: 15px;
}

.topbar .top-navbar .navbar-nav {
  align-items: center;
  gap: 10px;
}

.topbar .top-navbar .nav-item {
  align-items: center;
  display: flex;
  height: 40px;
  padding: 0 8px;
  border-radius: 20px;
}

.topbar .top-navbar .nav-item:hover:not(:has(.btn)) {
  background: var(--header-text-color);
  transition: all 1s ease;
}

.topbar .top-navbar .nav-link {
  color: var(--header-text-color);
  font-size: 1rem;
  padding: 10px 8px;
}

.topbar .top-navbar .nav-item:hover:not(:has(.btn)) .nav-link {
  color: var(--header-bg-color);
}

.topbar .top-navbar .nav-link.active {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.content {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 80px;
  justify-content: center;
  width: 100%;
}

.content section {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.content section h2,
.content section h3 {
  font-weight: 700;
  margin-bottom: 0;
}

.footer {
  align-items: center;
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 20px;
  min-height: 150px;
}

.modal .modal-header {
  background: var(--header-bg-color);
  color: var(--header-text-color);
}

.card .card-header {
  background: var(--header-bg-color);
  color: var(--header-text-color);
}

.modal .modal-footer,
.card .card-footer {
  background-color: #ffffff;
  border: 0;
}

.card {
  border-radius: 15px;
  border: 0;
}

.card-header:first-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card:not(:has(.card-footer)) .card-body,
.card-footer:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.card-title {
  margin: 0;
}

.navbar-light .navbar-toggler {
  border: 1px solid rgba(0, 0, 0, 1);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 1);
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.section-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.section-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

.section-item {
  display: grid;
  width: calc(100% / sibling-count());
}

.section-link {
  align-items: center;
  display: flex;
  justify-content: center;
}

.section-banner .container-fluid {
  padding: 0;
  width: 100%;
}

.section-participar .section-link {
  font-size: 20px;
  padding: 12px 20px;
}

.alert-campanha {
  font-size: 36px;
  font-weight: 700;
}

.card.card-single {
  margin: 20px 0;
}

.card.card-single .card-body,
.card.card-single .card-footer {
  background-color: #eeeeee;
  color: #000000;
}

.number-display {
  font-family: monospace;
  font-variant-numeric: tabular-nums;
}

@media only screen and (max-width: 1199px) {
  .topbar .navbar-offset-1,
  .topbar .navbar-offset-2 {
    margin: 0;
  }
}

@media (max-width: 768px) {
  content section.section-patrocinadores small {
    font-size: 10px;
  }

  .footer {
    flex-direction: column;
  }

  .card-container {
    flex-direction: column;
  }
  .card {
    height: auto;
  }
  .input-desktop-date {
    display: none;
  }

  .section-row {
    flex-wrap: wrap;
  }

  .section-item {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .content > section h2 {
    font-size: 40px;
  }

  .card-container > .col-md-4 {
    flex: 0 0 auto;
    width: calc(33.33333333% - (2 * 20px / 3));
  }
  .input-mobile-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .content > section h2 {
    font-size: 30px;
  }
}

.dataTable {
  border-collapse: separate; /* Important for border-radius to work */
  border-spacing: 0; /* Removes space between cells for a continuous border */
  border-radius: 10px; /* Adjust the value for desired roundness */
  overflow: hidden; /* Ensures content within cells respects the rounded corners */
}

.nav-tabs {
  gap: 2px;
}

.nav-tabs .nav-link {
  background-color: var(--header-text-color);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  color: var(--header-bg-color);
}

.nav-tabs .nav-link.active {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
}

.nav-tabs .nav-link:not(.active):hover {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
}

.tab-content {
  background-color: #eee;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.nav-tabs .nav-link:hover img,
.nav-tabs .nav-link.active img {
  filter: invert(100%);
}
.nav-tabs .nav-link img {
  height: 20px;
}

.assistente-icon path {
  fill: currentColor;
}

/* CARROUSEL ETAPAS */
#etapasCarousel .card-etapa {
  display: flex;
  flex-direction: column;
}

/* Espaço entre os slides do carrossel */
#etapasCarousel .carousel-item {
  padding-left: 8px;
  padding-right: 8px;
}

#etapasCarousel .card-etapa {
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Make body fill remaining space so cards equalize */
.carousel-item .card-body {
  flex-grow: 1;
}

.carousel-inner {
  transition: height 0.3s ease;
}

/* Base indicator */
.carousel-indicators [data-bs-target] {
  background-color: var(--card-etapa-text-color); /* same as card border */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.35;
  border: none;
  transition: opacity 0.3s ease, width 0.3s ease;
}

/* Active indicator */
.carousel-indicators .active {
  opacity: 1;
  width: 28px;
  border-radius: 6px;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 40px;
  color: var(--card-etapa-text-color);
}

/* Wrapper fixo */
.cookie-floating-btn-circle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1080;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  border-radius: 50%;
  background: var(--header-bg-color);
  color: var(--header-text-color);

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}

/* Efeito hover */
.cookie-floating-btn-circle:hover {
  background: var(--header-text-color);
  border-color: var(--header-bg-color);
  color: var(--header-bg-color);

  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Deixa o SVG suave */
.cookie-icon {
  transition: transform 0.2s ease;
}

.cookie-floating-btn-circle:hover .cookie-icon {
  transform: scale(1.05);
}

.cookie-floating-btn-circle:hover {
  transform: translateY(-5px);
}
