/* --- Configurações Gerais --- */
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /* Font Sizes */
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.5rem;
  --h5-font-size: 1.25rem;
  --h6-font-size: 1rem;
  --li-font-size: 1rem;

  /* Colors */
  --color-01: #608ac7d0;
  --color-02: #5c6bb2e0;
  --color-03: #80c88a;
  --color-04: #c1da6d;
  --color-05-contrast: #5c6bb2;
  --color-06-contrast: #a674b2;
  --color-07-contrast: #cc068ad0;
  --color-08-contrast: #d52727e0;
  --main-text-dark-color: #626677;

  /* Gradients */
  --gradient-01: linear-gradient(135deg, var(--color-01), var(--color-02));
  --gradient-02: linear-gradient(135deg, var(--color-03), var(--color-04));
  --gradient-03: linear-gradient(45deg, var(--color-02), var(--color-04));
  --gradient-04: linear-gradient(
    45deg,
    var(--color-05-contrast),
    var(--color-06-contrast)
  );
  --gradient-05: linear-gradient(
    135deg,
    var(--color-07-contrast),
    var(--color-08-contrast)
  );
  --gradient-06: linear-gradient(135deg, var(--color-04), var(--color-03));
  --gradient-06: linear-gradient(135deg, var(--color-04), var(--color-03));
  --gradient-07: linear-gradient(135deg, var(--color-01), var(--color-03));

  /* Layout */
  --grid-gap: 2rem;
  --container-padding: 1rem 0rem 1rem 0rem;
}

/* Estilos da tabela antiga */
/* body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 60px auto 0 auto;
}

h1.main-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
  padding: 10px;
  font-weight: bold;
  color: #80c88a;
}

.main-tabs {
  text-align: center;
  margin-bottom: 25px;
}

.main-tabs button {
  background-color: #e9ecef;
  color: #495057;
  border: none;
  padding: 15px 30px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s;
}

.main-tabs button:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

#geopublica-main-btn.active {
  background-color: #608ac7d0;
  color: white;
}
#sotm-main-btn.active {
  background-color: #80c88a;
  color: white;
}

.main-content {
  display: none;
}
.main-content.active {
  display: block;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

--- Abas Secundárias (Dias do Evento) ---
.secondary-tabs {
  text-align: center;
  margin-bottom: 0;
}
.secondary-tabs button {
  border: 1px solid #dee2e6;
  padding: 10px 20px;
  margin: 2px 2px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  position: relative;
  bottom: -2px;
  transition: background-color 0.2s;
}
.secondary-tabs button.active {
  background-color: #fff;
}

.secondary-content {
  display: none;
  background-color: #fff;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
}
.secondary-content.active {
  display: block;
}

--- Estilos Específicos para GEOPUBLICA (Azul) ---
#geopublica-content .secondary-tabs button {
  background-color: #e7f0f7;
  color: #608ac7d0;
}

#geopublica-content th {
  background-color: #608ac7d0;
  color: white;
  padding: 12px;
  text-align: center;
}
#geopublica-content td {
  padding: 12px;
  text-align: center;
}

--- Estilos Específicos para SOTM (Verde) ---
#sotm-content .secondary-tabs button {
  background-color: #e8f5e9;
  color: #80c88a;
}

#sotm-content th {
  background-color: #80c88a;
  color: white;
  padding: 12px;
  text-align: center;
}
#sotm-content td {
  padding: 12px;
  text-align: center;
}

#sotm-content td .event-title,
#sotm-content td strong {
  font-weight: bold;
}

--- Estilos Gerais de Conteúdo (Tabelas e Listas) ---
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th,
td {
  border: 1px solid #dee2e6;
  padding: 12px;
  vertical-align: top;
}

th {
  text-align: center;
}

.secondary-content.active table {
  border-top: none;
}
td.time-column {
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  width: 80px;
}
td {
  text-align: left;
}

.details {
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}
ul.speaker-list {
  list-style: none;
  padding-left: 0;
  margin: 5px 0 0 0;
}
ul.speaker-list li {
  margin-bottom: 5px;
}
.centered-event {
  text-align: center;
  font-weight: 500;
  vertical-align: middle;
} */

/* --- ESTILO DE COR PARA OS BOTÕES DE NAVEGAÇÃO CRUZADA ---

#geopublica-content .secondary-tabs .sotm-link-btn {
  background-color: #e8f5e9;
  color: #80c88a;
}

#sotm-content .secondary-tabs .geopublica-link-btn {
  background-color: #e7f0f7;
  color: #608ac7d0;
} */

/* Estilo da nova tabela de programação geopública + sotm */
.mobile-titule {
  font-family: "Fira Sans", sans-serif;
  font-size: 24px;
  color: #333333;
  margin-bottom: 20px;
}

#dia4 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.programacao-section {
  margin-top: 50px;
  padding: 50px;
  font-family: "Fira Sans", sans-serif;
}

.scrollable {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tabs {
  display: flex;
  margin-bottom: 0;
}

.tab-button {
  padding: 10px 24px;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 2px;
  box-shadow: unset;
  border-radius: 5px 5px 0px 0px;
  color: #757575;
  background: #ebeced;
  transition: background 0.2s, color 0.2s;
}

.tab-button.active {
  color: #fcfafa;
  background: var(--color-01);
}

.tab-content {
  margin-top: 0;
}

.table-programming {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  background: #fff;
}

.table-programming th,
.table-programming td {
  border: 1px solid #e0e0e0;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
}

.table-programming th.text-center,
.table-programming td.text-center {
  text-align: center;
}

.tabsections03 th {
  font-weight: bold;
  font-family: "Fira Sans", sans-serif;
  color: #fcfafa;
  background: var(--gradient-04);
}

#tabhead {
  font-weight: bold;
  font-family: "Fira Sans", sans-serif;
  color: #fcfafa;
  background: var(--gradient-01);
  font-size: 1rem;
}

.tabsections {
  font-weight: bold;
  font-family: "Fira Sans", sans-serif;
  color: #fcfafa;
  background: var(--gradient-01);
}

.tabsections02 {
  font-weight: bold;
  font-family: "Fira Sans", sans-serif;
  color: #fcfafa;
  background: var(--gradient-02);
}
.tabsections03 {
  font-weight: bold;
  font-family: "Fira Sans", sans-serif;
  color: #fcfafa;
  background: var(--gradient-04);
}

.td-bold {
  font-weight: bold;
}

.palestrantes strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  color: var(--main-text-dark-color);
  font-weight: bold;
}

.palestrantes small {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--main-text-dark-color);
}

/*Configurações dos botões da programação*/

.button-geopublica,
.button-state-of-map {
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  margin: 0px 10px 10px 0px;
  border: 1px solid #757575;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: white;
  color: black;
}

.button-geopublica:hover,
.button-geopublica.active {
  background: var(--gradient-04);
  color: white;
}

.button-geopublica:hover {
  transform: scale(1.05);
}

.button-state-of-map:hover,
.button-state-of-map.active {
  background: var(--gradient-02);
  color: white;
}

.button-state-of-map:hover {
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .container {
    padding: 5px;
  }

  .table-programming th,
  .table-programming td {
    font-size: 0.95rem;
    padding: 8px 4px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  /*.table-programming th, .table-programming td { font-size: 0.85rem; padding: 6px 2px; }*/
}

/* --- ESTILOS GERAIS DO COMPONENTE PRELIMINAR --- */
.prelim-container {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.prelim-title {
  text-align: center;
  font-size: 2.2em;
  border-top: 2px solid #dee2e6;
  padding: 20px;
  margin-bottom: 25px;
  color: #333333;
}

/* --- ABAS PRINCIPAIS (GeoPublica / SotM) --- */
.prelim-main-tabs {
  text-align: center;
  margin-bottom: 25px;
}

.prelim-main-tabs button {
  background-color: #e9ecef;
  color: #495057;
  border: none;
  padding: 15px 30px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s;
}

.prelim-main-tabs button:hover {
  transform: translateY(-2px);
}
.prelim-main-tabs button.active {
  color: white;
}

/* --- ABAS SECUNDÁRIAS (Dias) --- */
.prelim-secondary-tabs {
  text-align: center;
  margin-bottom: 0;
}

.prelim-secondary-tabs button {
  padding: 10px 20px;
  margin: 0 2px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  position: relative;
  bottom: -2px;
  border: 1px solid #dee2e6;
  transition: background-color 0.2s;
}
.prelim-secondary-tabs button.active {
  background-color: #fff;
}

/* --- BLOCOS DE CONTEÚDO --- */
.prelim-main-content {
  display: none;
}
.prelim-main-content.active {
  display: block;
  animation: prelim-fadeIn 0.5s;
}

.prelim-secondary-content {
  display: none;
  background-color: #fff;
  padding: 30px;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
}
.prelim-secondary-content.active {
  display: block;
}

@keyframes prelim-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- TEMA GEOPUBLICA (AZUL) --- */
#prelim-geopublica-btn.active {
  background: var(--gradient-04);
}

.prelim-geopublica-theme .prelim-secondary-tabs button {
  background-color: #e7f0f7;
  color: var(--color-02);
}

.prelim-geopublica-theme .prelim-content-title {
  background: var(--gradient-04);
  color: white;
}

.blocos {
  font-weight: bold;
}

/* --- TEMA SOTM (VERDE) --- */
#prelim-sotm-btn.active {
  background: var(--gradient-02);
}

.prelim-sotm-theme .prelim-secondary-tabs button {
  background-color: #e8f5e9;
  color: var(--color-03);
}

.prelim-sotm-theme .prelim-content-title {
  background: var(--gradient-02);
  color: white;
}

/* --- ESTILOS DO CONTEÚDO INTERNO (LISTAS E TÍTULOS) --- */
.prelim-content-title {
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3em;
}
.prelim-secondary-content h3 {
  text-align: left;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
.prelim-presentation-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}
.prelim-presentation-list li {
  background-color: #fdfdfd;
  border-bottom: 1px solid #eee;
  padding: 12px;
  text-align: left;
}

/* --- ESTILO DE COR PARA OS BOTÕES DE NAVEGAÇÃO DA GRADE PRELIMINAR --- */

#prelim-sotm-content .prelim-secondary-tabs .prelim-geopublica-link-btn {
  background-color: #e7f0f7;
  color: var(--color-02);
}

#prelim-geopublica-content .prelim-secondary-tabs .prelim-sotm-link-btn {
  background-color: #e8f5e9;
  color: var(--color-03);
}
