@charset "UTF-8";

/* Configurações globais */
* {
  margin: 0px;
  padding: 0px;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --formBordColor: 1px solid rgb(122, 122, 122);
  --boxShadowForForms: 1px 1px 3px rgba(0, 0, 0, 0.499);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-evenly;
  padding: 10px;
  padding-bottom: 0px;
  background-color: #145aa5;
}

header ul {
  display: flex;
  justify-content: space-between;
}

header > nav > ul a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

header > nav > ul a:hover {
  text-decoration: underline;
}

header > nav > ul li {
  font-size: 1.3em;
  align-items: center;
  padding: 40px;
  list-style-type: none;
}

/* Título principal */
h1 {
  font-size: 1.8em;
  background-color: #124a87;
  color: white;
  padding: 8px 0px 6px 50px;
  box-shadow: inset 0px 5px 7px #0e3d70;
}

main {
  margin-top: 30px;
  width: 100%;
  height: 100%;
}

#search-form {
  border: var(--formBordColor);
  box-shadow: var(--boxShadowForForms);
  height: 70px;
  flex-wrap: wrap;
  background-color: lightgray;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  width: 80%;
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  font-size: 0.8em;
}

input {
  border: none;
  padding: 10px;
}

#btn-reset,
#btn-submit {
  width: 50px;
  height: 50px;
  padding: 5px;
}

#btn-reset {
  border: 1px solid black;
  background: gray;
}

#btn-reset:active {
  background-color: rgb(89, 89, 89);
}

#btn-submit:active {
  background-color: #7fbdff;
}

#noResultContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 30px 0px 100px;
}

#noResultText {
  margin: 10px 0px;
  font-weight: 600;
}

#listaDosDiarios {
  width: 80%;
  margin: auto;
}

/* Alterado de #itemDiario para .itemDiario */
.itemDiario {
  box-shadow: var(--boxShadowForForms);
  margin: 30px 0px;
  list-style-type: none;
  border: var(--formBordColor);
  width: 100%;
}

/* Alterado de #itemDiario h2 para .itemDiario h2 */
.itemDiario h2 {
  padding: 7px;
  background-color: lightgray;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Permite que as tags quebrem a linha se não houver espaço */
  gap: 8px; /* Espaço entre o título e as tags */
}

/* A "caixinha" da tag */
.tag-box {
  display: inline-block;
  background-color: #145aa5; /* Azul do seu header */
  color: white;
  padding: 2px 10px;
  border-radius: 12px; /* Cantos levemente arredondados */
  font-size: 0.5em; /* Fonte menor que o título */
  font-weight: 600;
  text-transform: capitalize; /* Deixa a primeira letra de cada tag maiúscula */
}

/* Alterado de #itemData para .itemData */
.itemData {
  padding: 7px;
  border-top: var(--formBordColor);
  border-bottom: var(--formBordColor);
}

/* Alterado de #downloadContainer para .downloadContainer */
.downloadContainer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* E assim por diante para os filhos de downloadContainer */
.downloadContainer p,
.downloadContainer a {
  padding: 5px;
}

.downloadContainer a {
  text-decoration: none;
  color: red;
  font-weight: bold;
}

.downloadContainer a:hover {
  text-decoration: underline;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #145aa5;
  box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.437);
}

footer div {
  margin: 20px 0px;
  display: flex;
  justify-content: center;
  width: 100%;
}

footer article {
  margin-bottom: 20px;
}

footer p {
  color: white;
}

aside {
  font-size: 0.9em;
  text-align: center;
  padding: 5px;
  color: white;
  background-color: #0c3561;
}

.tituloFooter {
  font-weight: bold;
}

/* --- ESTILOS DO MENU HAMBURGER E NAVEGAÇÃO MÓVEL --- */

/* Esconde o botão hamburger em telas de desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger-menu .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/* Estilos para os botões de texto do formulário */
.form-buttons {
    display: flex;
    gap: 10px; /* Espaço entre os botões */
    align-items: flex-end; /* Alinha os botões na parte inferior */
}

#btn-reset,
#btn-submit {
 width: 100%;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

#btn-anterior,
#btn-proximo {
  width: 100px;
  height: 50px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;  
  background-color: #007bff; /* Azul */
  color: white; 
  border-radius: 4px; 
}

#btn-reset {
    background-color: #6c757d; /* Cinza */
    color: white;
}

#btn-submit {
    background-color: #007bff; /* Azul */
    color: white;
}