@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap&#39");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(#2c3156, #1b1a33);
  background-repeat: no-repeat;
  color: white;
}

body .notes {
  color: white;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10vh;
  margin: 0;
  padding: 1em;
  background-color: white;
}

nav ul {
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul li {
  padding: 0 15px;
  font-size: 20px;
}

nav ul li a {
  color: #2c3156;
  text-decoration: none;
}

nav ul li a:hover {
  color: red;
}

nav ul li .logout:hover {
  color: white;
}

.logo {
  width: 170px;
}

.logo img {
  width: 100%;
}

.links {
  list-style: none;
  display: flex;
  gap: 1em;
}

.links li a {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  transition: background 0.3s;
}

.links li a:hover {
  background-color: #555;
  border-radius: 5px;
}

.altura {
  max-height: 100vh;
  min-height: 88vh;
}

/* Botão de ação */
.botao_acao {
  text-decoration: none;
  background-color: #b9ecdd;
  color: #000;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.botao_acao:hover {
  background-color: #91f1d4;
}

/* Ícone de menu hamburguer */
.hamburguer_btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-color: #2c3156;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.hamburguer_btn:hover,
.hamburguer_btn:focus-visible {
  background-color: #1b1a33;
}

/* Dropdown menu (oculto por padrão) */
.dropdown_menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 10vh;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 10px;
}

.dropdown_menu.open {
  display: flex;
  list-style: none;
}

.dropdown_menu li {
  padding: 10px;
  text-align: center;
}

.dropdown_menu li a {
  text-decoration: none;
  color: #FFF;
  display: block;
  padding: 10px;
  transition: background 0.3s;
}

.dropdown_menu li a:hover {
  background-color: #555;
  border-radius: 5px;
}

.secaoprincipal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 90vh;
}

.flex {
  display: flex;
}

.flex-item-1 {
  flex: 1;
}

.container {
  width: 100%;
}

.login-container {
  width: 100%;
  height: 90vh;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.login-container h3 {
  color: white;
}

.login-container form {
  width: min(400px, 100%);
  max-width: 100%;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-container{
  width: 100%;
  min-height: 87vh;
  padding: 0 2em;
}

.profile-container{
  width: 100%;
  min-height: 87vh;
  padding: 0 2em;
}

.table-min{
  min-height: 60vh;
}

.page-heading {
  flex-wrap: wrap;
  gap: .75rem;
}

.page-heading > * {
  margin-bottom: 0;
}

.responsive-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.menu-card {
  width: 100%;
  max-width: 500px;
  height: 90%;
  margin: 0 auto;
  cursor: pointer;
}

.table-responsive {
  max-width: 100%;
}

@media (max-width: 768px) {
  nav {
    min-height: 10vh;
    height: auto;
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: .5rem;
  }

  nav ul li {
    padding: 0 .5rem;
    font-size: 1rem;
  }

  nav ul li a {
    display: block;
    padding: .5rem 0;
  }

  nav.menu-open ul {
    display: flex;
  }

  .secaoprincipal {
    padding: 1rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .login-container {
    min-height: 90vh;
    height: auto;
  }

  .login-container form {
    padding: 1.25rem;
  }

  .news-container,
  .profile-container {
    padding: 0 1rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive table {
    min-width: 640px;
  }

  .table-responsive .notes-table {
    min-width: 0;
    display: block;
  }

  .notes-table thead {
    display: none;
  }

  .notes-table tbody,
  .notes-table tr,
  .notes-table td {
    display: block;
    width: 100%;
  }

  .notes-table tr {
    margin-bottom: 1rem;
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .5rem;
    background-color: rgba(255, 255, 255, .96);
  }

  .notes-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: .65rem .5rem;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 1px solid rgba(44, 49, 86, .12);
  }

  .notes-table td:last-child {
    border-bottom: 0;
  }

  .notes-table td::before {
    flex: 0 0 38%;
    color: #2c3156;
    font-weight: 600;
    text-align: left;
  }

  .notes-table td[data-label]::before {
    content: attr(data-label);
  }

  .notes-table .empty-cell {
    display: block;
    text-align: center;
  }

  .notes-table .empty-cell::before {
    display: none;
  }

  .notes-table .btn-group {
    margin-left: auto;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .links {
    display: none;
  }

  .botao_acao {
    display: none;
  }

  .hamburguer_btn {
    display: block;
  }
}