/* =========================================
   Root Variables
========================================= */
:root {
  --header-bg-color: #5c0200;
  --header-text-color: #ffffff;
  --main-bg-color: transparent;
  --main-text-color: #ffffff;

  --scrollbar-thumb-color: #600000;
  --scrollbar-track-color: #600000;

  --footer-bg-color: #0b6a2c;
  --footer-text-color: #ffffff;

  --btn-template-bg-color: #ffd200;
  --btn-template-text-color: #a82000;

  --btn-template-2-bg-color: #a82000;
  --btn-template-2-text-color: #ffffff;

  --btn-template-3-bg-color: #810200;
  --btn-template-3-text-color: #ffffff;

  --text-custom-yellow: #ffd200;
  --text-custom-red: #a82000;
}

/* =========================================
   Global Reset & Base Layout
========================================= */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: url("/assets/img/background.png") no-repeat center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* =========================================
   Header & Footer
========================================= */
header {
  background-color: var(--header-bg-color);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--header-text-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  font-size: 12px;
  padding: 16px;
}

/* =========================================
   Page Wrapper
========================================= */
.page-wrapper {
  display: flex;
  flex-direction: column;
  font-family: "Titillium Web", sans-serif;
  height: calc(100vh - 70px);
  margin-top: 70px;
  overflow-y: auto;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
  scrollbar-width: thin;
}

/* ===========================
   NAVBAR BASE
=========================== */
.navbar {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  min-height: 70px;
  padding: 0;
  position: relative;
  z-index: 20;
}

/* Centered logo */
.navbar-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* Toggler buttons at edges on mobile */
.navbar-toggler.left {
  margin-right: auto;
}

.navbar-toggler.right {
  margin-left: auto;
}

/* Navbar toggler icons */
.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");
}

/* ===========================
   NAVBAR — FINAL DESKTOP STYLES
=========================== */
@media (min-width: 992px) {
  /* ----- Centered logo ----- */
  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80px; /* total width including padding around logo */
    display: flex;
    justify-content: center;
  }

  /* ----- Flex container for both nav groups ----- */
  .navbar-collapse.d-lg-flex {
    display: flex !important;
    align-items: center;
    width: 100%;
  }

  /* ----- Each menu stays in its own side ----- */
  .navbar-nav.me-auto,
  .navbar-nav.ms-auto {
    flex: 0 0 calc(50% - 40px); /* half of logo width (80/2) */
    display: flex;
    justify-content: center; /* centers links in each half */
    align-items: center;
    gap: 1.25rem; /* tighter spacing between links */
  }

  /* ----- Nav link styles ----- */
  .navbar-nav .nav-link {
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
    color: var(--header-text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
  }
}

/* ===========================
   NAVBAR — MOBILE COLLAPSES
=========================== */
.menu-collapse {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.075);
  background: var(--header-bg-color);
}

.menu-collapse .navbar-nav {
  width: 100%;
  text-align: center;
}

.menu-collapse .nav-link {
  color: var(--header-text-color);
  font-weight: bold;
  padding: 8px 0;
}

.menu-collapse .nav-link:hover {
  opacity: 0.85;
}

/* =========================================
   Banner Sections
========================================= */
.img-banner-1 {
  z-index: 2;
}

.img-banner-2 {
  height: 500px;
  margin-top: -70px;
  z-index: 1;
}

.banner-3 {
  margin-top: -100px;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .banner-3 {
    margin-top: -40px;
  }

  .img-topo-roleta,
  .img-topo-patrocinios {
    margin-bottom: -25px;
  }
}

.img-topo-roleta {
  background-image: url("/assets/img/topo_roleta.png");
  background-size: cover;
  height: 50px;
}

.img-topo-patrocinios {
  background-image: url("/assets/img/topo_patrocinios.png");
  background-size: cover;
  height: 50px;
}

/* =========================================
   Navbar Togglers (Light/Dark)
========================================= */
.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");
}

/* =========================================
   Footer Social Links
========================================= */
.link-midia {
  align-items: center;
  border: 2px solid var(--footer-text-color);
  border-radius: 50%;
  color: var(--footer-text-color);
  display: flex;
  font-size: 20px;
  justify-content: center;
  height: 30px;
  width: 30px;
}

/* =========================================
   Roleta Section
========================================= */
.span-roleta-titulo {
  color: #a82000;
  font-size: 64px;
  font-weight: bold;
  line-height: 60px;
  max-width: 500px;
}

.span-roleta-texto {
  color: #000;
  font-size: 36px;
  font-weight: bold;
  line-height: 36px;
  max-width: 500px;
}

a:has(> .span-roleta-rodape) {
  text-decoration: none;
}

.span-roleta-rodape {
  color: #a82000;
  font-size: 24px;
  font-weight: bold;
  max-width: 700px;
  text-decoration: underline;
}

/* =========================================
   Participar Section
========================================= */
.span-participar-titulo {
  color: #a82000;
}

.span-participar-etapa {
  width: calc(100% / 5);
}

.span-participar-etapa-title {
  color: #a82000;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.span-participar-etapa-texto {
  text-align: center;
}

.span-participar-subtitulo {
  color: #ffd200;
  font-weight: bold;
}

.span-participar-rodape {
  color: #a82000;
  font-size: 12px;
}

.span-participar-naosabe {
  color: #a82000;
  flex-basis: 50%;
  font-size: 24px;
  font-weight: bold;
  line-height: 25px;
}

/* =========================================
   Buttons
========================================= */
.btn-template-1 {
  background-color: var(--btn-template-bg-color);
  color: var(--btn-template-text-color);
}

.btn-template-1:hover {
  background-color: var(--btn-template-text-color);
  color: var(--btn-template-bg-color);
}

.btn-template-2 {
  background-color: var(--btn-template-2-bg-color);
  color: var(--btn-template-2-text-color);
}

.btn-template-2:hover {
  background-color: var(--btn-template-2-text-color);
  border-color: var(--btn-template-2-bg-color);
  color: var(--btn-template-2-bg-color);
}

.btn-template-3 {
  background-color: var(--btn-template-3-bg-color);
  border: 1px solid var(--btn-template-3-text-color);
  color: var(--btn-template-3-text-color);
}

.btn-template-3:hover {
  background-color: var(--btn-template-3-text-color);
  color: var(--btn-template-3-bg-color);
}

/* =========================================
   Utility Divs
========================================= */
.div-naosabe {
  background-color: #ffd200;
}

.div-etapas {
  gap: 20px;
}

.div-participar {
  gap: 10px;
}

/* =========================================
   Premios Section
========================================= */
.img-premios {
  max-height: 300px;
}

.s-banner {
  background-image: url("/assets/img/fundo_banner.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .s-banner {
    background-image: none;
  }
}

.s-premios .btn-template-3 span {
  color: var(--text-custom-yellow);
  font-weight: bold;
}

.lista-premios li {
  color: var(--text-custom-yellow);
  font-weight: bold;
}

/* =========================================
   Text Utilities
========================================= */
.text-custom-yellow {
  color: var(--text-custom-yellow);
}

.text-custom-red {
  color: var(--text-custom-red);
}

.fw-bold-custom {
  font-weight: 900 !important;
}

/* =========================================
   Font Sizes
========================================= */
.fs-24-custom {
  font-size: 24px;
}

.fs-20-custom {
  font-size: 20px;
}

/* =========================================
   Section Styles
========================================= */
.s-participar .etapa h3 {
  font-size: 48px !important;
}

.s-participar .etapa {
  font-size: 24px !important;
}

.s-vendedor .vendedor-left {
  font-size: 28px;
}

.vendedor-right {
  font-size: 24px;
}

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

.content:has(.section-login),
.content:has(.section-cadastro),
.content:has(.section-usuario),
.content:has(#sGanhadores) {
  flex-grow: 1;
}

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

/* =========================================
   Cards & Modals
========================================= */
.modal .modal-header {
  background: #750100;
  color: var(--header-text-color);
}

.card .card-header {
  background: #750100;
  color: var(--header-text-color);
  text-align: center;
}

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

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

.section-usuario .card.card-single .card-body,
.card.card-single .card-footer {
  background-color: #eeeeee;
  border: none;
}

/* =========================================
   Animations
========================================= */
.img-roleta {
  animation: rotate 2s linear infinite paused;
  transition: transform 1s ease-out;
}

.img-roleta:hover {
  animation-play-state: running;
  transform: rotate(-0.2turn);
}

@keyframes rotate {
  to {
    rotate: 1turn;
  }
}

/* =========================================
   Numeric Display
========================================= */
.number-display {
  font-family: monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .input-desktop-date {
    display: none;
  }
}

@media (min-width: 769px) {
  .input-mobile-text {
    display: none;
  }
}

.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 */
}

ul.nav-tabs {
  border-bottom: 0;
  border-top: 0;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

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

ul.nav-tabs .nav-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

ul.nav-tabs .nav-link:not(.active) {
  background-color: var(--header-text-color);
  border: 1px solid #dee2e6;
  color: var(--header-bg-color);
}

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

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

.overlay img {
  height: auto;
  margin-top: -70px;
  max-width: 200vh;
  width: 100%;
  zoom: 80%;
}
