/* header.css */

header {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
}

header.main {
    background-color: #a5c0fb;
}

header.admin-header {
    background-color: #ffeef7;
}

.header-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Completed Assessments */
.header-links {
  font-family: commissioner;
  color: #00267b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-links:hover {
    font-weight: bold;
}

/* Title */
.header-title {
    color: inherit;
    text-decoration: none;
}

.header-title h1 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-weight: 700;
    color: inherit;
}




.access-button {
    background-color: #323130;
    color: rgb(243, 238, 234);
    text-decoration: none;
    
    border: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    position: relative;
    text-align: center;
    

    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
}

/* mobile */
@media (max-width: 768px) {
  .header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    row-gap: 14px; /* Espaço entre a linha de cima e a linha de baixo */
    column-gap: 10px;
  }

  /* LINHA 1: Título na esquerda e Botão na direita */
  .header-title {
    order: 1;
  }

  .header-title h1 {
    font-size: 20px;
  }

  .access-button {
    order: 2;
    font-size: 12px;
    padding: 8px 12px;
    /* Empurra os próximos itens para a linha de baixo */
  }

  /* Força uma quebra de linha invisível logo após o botão de acesso */
  .header-wrapper::after {
    content: "";
    width: 100%;
    order: 2;
  }

  /* LINHA 2: Todas as outras infos juntas na mesma linha, sem borda */
  .header-links,
  .header-wrapper p {
    order: 3;
    font-size: 13px;
    margin: 0;
    text-align: center;
  }
}
