body {
  font-family: sans-serif;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f1f1;
}

details {
  position: relative;
  font-family: Arial, sans-serif;
}

details[open] ul {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;

  padding: 8px;
  min-width: 220px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);

  z-index: 10;

  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

/* Estiliza a barra de rolagem no Chrome */
details[open] ul::-webkit-scrollbar {
  width: 6px;
}

details[open] ul::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

details ul {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

details ul a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #2f2f2f;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease;
}

details ul a:hover {
  background-color: rgba(83, 82, 80, 0.10);
  color: #111;
}

details ul a:focus-visible {
  outline: 2px solid rgba(255, 105, 0, 0.45);
  outline-offset: 2px;
}

summary {
  font-weight: bold;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 50px;
}

h2 {
  font-size: 45px;
  text-align: center;
}

.extra-info {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  font-weight: bold;
}

.btn-addStudent {
  padding: 12px 24px;
  background-color: #27ae60;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-addStudent:hover {
  background-color: #219150;
  transform: translateY(-2px);
}

.btn-addStudent:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.4);
}

.btn-addStudent::before {
  content: "+";
  font-size: 18px;
  font-weight: bold;
}

/* === POP UP ADD STUDENT ===*/
.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 32px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  width: 90%;
  max-width: 420px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  animation: popupFadeIn 0.3s ease;
}

/* === POP UP DELETE STD ===*/
.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 32px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  width: 90%;
  max-width: 420px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  animation: popupFadeIn 0.3s ease;
}

/* POPUP DE CONFIRMAR DELETE*/

.confirm-popup .popup-content i {
  font-size: 42px;
  color: #ffb800;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

/* Texto do popup */
.popup-content p {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 24px;
  color: #54585a;
}

/* Botões popup confirmação */
.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.popup-buttons button {
  flex: 1;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Animações */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#btnConfirm {
  background-color: #b23b3b;
  color: white;
  box-shadow: 0 4px 10px rgba(178, 59, 59, 0.4);
}

#btnConfirm:hover {
  background-color: #7a2727;
  box-shadow: 0 6px 16px rgba(122, 39, 39, 0.6);
}

#btnCancel {
  background-color: #6c757d;
  color: white;
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

#btnCancel:hover {
  background-color: #54585a;
  box-shadow: 0 6px 16px rgba(84, 88, 90, 0.6);
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.popup-content .popup-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 24px;
  justify-content: space-between;
}

.popup-content h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

/* Estilo do formulário */
.frm-add-std {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frm-add-std label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.frm-add-std input[type="text"] {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.frm-add-std input[type="text"]:focus {
  outline: none;
  border-color: #27ae60;
}

/* Botão de adicionar */
.frm-add-std button[type="submit"] {
  background-color: #27ae60;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.frm-add-std button[type="submit"]:hover {
  background-color: #219150;
  transform: translateY(-1px);
}

/* Mensagem de retorno */
.message {
  margin-top: 12px;
  font-size: 14px;
  color: #e74c3c;
  text-align: center;
}

/* Botão de fechar */
.btn-close-popup {
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #f8d7da;
  /* vermelho suave */
  color: #721c24;
  /* vermelho escuro para o texto */
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-close-popup:hover {
  background-color: #f5c6cb;
  transform: scale(1.05);
}

.container {
  text-align: center;
}

.container-title {
  font-size: 30px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 35px;
}

footer {
  background-color: #54585a;
  color: #ecf0f1;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

footer .copyright p {
  font-size: 15px;
  color: #ecf0f1;
  margin: 0;
  font-weight: 300;
}

footer .copyright a {
  color: #f39c12;
  text-decoration: none;
}

footer .copyright a:hover {
  color: #e67e22;
  text-decoration: underline;
}

/* HEADER */
header {
  background-color: #ffffff;
  color: #000000;
  padding: 10px 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 99997;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NAV CONTAINER */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* LOGO */
nav img {
  width: 270px;
  transition: transform 0.5s ease-in-out;
  cursor: pointer;
}

nav img:hover {
  transform: scale(1.02);
}

/* MENU UL */
nav ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

/* MENU LI */
nav ul li {
  display: flex;
  align-items: center;
}

/* LINKS */
nav ul li a {
  color: #000;
  padding: 10px 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  background-color: #dfdfdf;
  color: #000000;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

/* Responsividade - Quando a tela for menor que 768px */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    /* Permite rolar horizontalmente */
    white-space: nowrap;
    /* Impede que o conteúdo ultrapasse a largura da célula */
  }

  th,
  td {
    padding: 10px;
  }

  th {
    font-size: 14px;
  }

  td {
    font-size: 12px;
  }
}

/* Estilo de aviso dentro da tabela */
.extra_info {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-weight: bold;
}

.extra_info i {
  margin-right: 10px;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  margin-top: 20px;
}

/* === TEXT AREA SECTION ===*/
.textarea-section {
  margin: 30px auto;
  max-width: 800px;
  padding: 0 20px;
}

.textarea-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 10px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

.textarea-section textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  font-size: 16px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  resize: vertical;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  resize: none;
}

.textarea-section textarea:focus {
  outline: none;
  border-color: #3498db;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.container select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 30px 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container select:focus {
  border-color: #3498db;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Estilo para os option */
.container select option {
  padding: 10px;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  font-family: "Segoe UI", sans-serif;
}

/* === BOTOES FINAL PARECER === */
.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.buttons button {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Confirmar parecer - verde suave */
.buttons button:nth-child(1) {
  background-color: #2ecc71;
  color: white;
}

.buttons button:nth-child(1):hover {
  background-color: #27ae60;
  transform: scale(1.05);
}

/* Devolver para correção - amarelo suave */
.buttons button:nth-child(2) {
  background-color: #f1c40f;
  color: #333;
}

.buttons button:nth-child(2):hover {
  background-color: #d4ac0d;
  transform: scale(1.05);
}

/* Gerar PDF - azul suave */
.buttons button:nth-child(3) {
  background-color: #3498db;
  color: white;
}

.buttons button:nth-child(3):hover {
  background-color: #2c80b4;
  transform: scale(1.05);
}

/* Estilo para o popup de feedback */
#popup-message {
  padding: 20px;
  background-color: #333;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
}

#popup-message.success {
  background-color: #4caf50;
}

#popup-message.error {
  background-color: #f44336;
}

/* TABELASS */
.table-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Cabeçalho */
thead tr:first-child th {
  background: #f7f9fc;
  font-size: 18px;
  font-weight: 600;
  padding: 20px;
  color: #2c3e50;
  border-bottom: 1px solid #e1e4e8;
}

thead tr:nth-child(2) th {
  background: #eef2f7;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px;
  color: #34495e;
  border-bottom: 1px solid #dee2e6;
}

/* Corpo */
tbody td {
  padding: 36px 20px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  text-align: center;
}

.td-du i {
  padding: 8px;
}

.td-du .fa-pen {
  color: rgba(30, 136, 229, 1);
  transition: color 0.3s ease;
}

.td-du .fa-pen:hover {
  color: rgba(30, 136, 229, 0.7);
  transform: scale(1.1);
}

.td-du .fa-trash {
  color: #b23b3b;
  transition: color 0.3s ease;
}

.td-du .fa-trash:hover {
  color: #7a2727;
  transform: scale(1.1);
}

.table-container table tbody td:first-child {
  max-width: 500px;
  word-break: break-word;
  white-space: normal;
}

.table-container table tbody td:last-child {
  text-align: center;
  vertical-align: middle;
}

.table-container-dashClass table tbody td:first-child {
  max-width: 500px;
  word-break: break-word;
  white-space: normal;
}

.table-container-dashClass tbody td:last-child {
  text-align: center;
  vertical-align: middle;
}

tbody tr:hover {
  background-color: #f8fbff;
}

/* Cabeçalho customizado com nota e ausência */
.header_table {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header_table>div {
  display: flex;
  flex-direction: column;
}

.header_table input[type="number"] {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 120px;
  margin-top: 4px;
}

.header_table label {
  font-size: 13px;
  color: #555;
}

/* Estilização dos inputs tipo radio */
.responses {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.responses input[type="radio"] {
  display: none;
}

.responses label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.responses input[type="radio"]:checked+label {
  background: linear-gradient(to right, #ff6900, #ffa800);
  color: white;
  border-color: #ccc;
}

.responses label span {
  pointer-events: none;
}

/* Responsividade básica */
@media (max-width: 768px) {

  thead tr:nth-child(2) th,
  tbody td {
    font-size: 14px;
    padding: 10px;
  }

  .header_table {
    flex-direction: column;
    align-items: flex-start;
  }

  .header_table input[type="number"] {
    width: 100%;
  }
}