/* ======== LAYOUT GERAL ======== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* ======== TÍTULO ======== */
h1 {
    margin-bottom: 5px;
    color: #111;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
}

#titulo {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 20px;
    display: block;
    color: #222;
}

/* ======== NAVEGAÇÃO ======== */
#navegacao {
    margin: 15px 0 25px;
    font-size: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#navegacao label {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

#navegacao select,
#navegacao input {
    padding: 6px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#navegacao select:focus,
#navegacao input:focus {
    border-color: #3a8dde;
    box-shadow: 0 0 4px rgba(58, 141, 222, 0.5);
    outline: none;
}

/* Botões extras (se precisar futuramente) */
#navegacao button {
    background: #3a8dde;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 15px;
}

#navegacao button:hover {
    background: #3276c5;
}

/* ======== CALENDÁRIO ======== */
#calendario {
    display: grid;
    grid-template-columns: repeat(10, 100px);
    /* 10 dias por semana */
    grid-auto-rows: 100px;
    /* altura fixa dos quadrados */
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

/* Cabeçalho da semana (Dia 1 até Dia 10) */
.cabecalho-dia {
    text-align: center;
    font-weight: bold;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 0;
    font-size: 14px;
}

/* Quadrados dos dias */
.dia {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: right;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.dia:hover {
    background: #f7f7f7;
}

/* Eventos dentro do dia */
/* Eventos dentro do dia */
.evento {
    display: block;
    width: 100%;
    height: 18px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

/* Botão */
#toggle-menu {
    background: #1a1a1a;
    color: #eee;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Fundo escuro transparente */
.menu-modal {
    display: none;
    /* oculto por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: flex-start;
    align-items: stretch;
}

/* Conteúdo lateral */
.menu-conteudo {
    background: #1a1a1a;
    color: #eee;
    width: 300px;
    max-width: 80%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

/* Estilo da lista */
.menu-conteudo h2 {
    margin-top: 0;
    color: #f54242;
}

.menu-conteudo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-conteudo li {
    margin: 6px 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 5px;
    background: #222;
    transition: background 0.2s;
}

.menu-conteudo li:hover {
    background: #333;
}

.dia {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: right;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    /* cor base */
    background-repeat: no-repeat;
    background-position: center 70%;
    /* posição central baixa */
    transition: background-color 0.2s;
}

/* ======== MODAL ======== */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-conteudo {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#modal h2 {
    margin-top: 0;
    color: #3a8dde;
}
#legenda {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 20px;          /* ícone compacto */
  max-height: 20px;     /* fechado por padrão */
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 1500;
}

#legenda:hover {
  width: 260px;         /* expande na horizontal */
  max-height: 300px;    /* expande na vertical */
}

.icone-info {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
}

#legenda ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}

#legenda li {
  margin: 6px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.marcador {
  display: inline-block;
  width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}
.marcador.estrela { color: gold; }
.marcador.definidor { color: crimson; }
.marcador.unico { color: black; }
.marcador.lua { color: #3a8dde; }

.marcador {
  display: inline-block;
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.marcador.estrela {
  color: gold;
}

.marcador.definidor {
  color: crimson;
}

.marcador.unico {
  color: black;
}

.marcador.lua {
  font-size: 16px;
  color: #3a8dde;
}


#modal-eventos {
    list-style: disc;
    padding-left: 20px;
}

#fechar {
    cursor: pointer;
    float: right;
    color: crimson;
    font-size: 20px;
    font-weight: bold;
}

#fechar:hover {
    color: #ff5555;
}

#busca-container {
  margin: 20px 0;
  width: 100%;
  position: relative; /* mantém a lista colada ao input */
}

#busca {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 25px; /* deixa arredondada */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  outline: none;
}

#busca:focus {
  border-color: #3a8dde;
  box-shadow: 0 0 6px rgba(58, 141, 222, 0.5);
}

#resultados-busca {
  margin-top: 8px;
  list-style: none;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  max-height: 250px;      /* limite de altura */
  overflow-y: auto;       /* scroll vertical se passar do limite */
  position: absolute;     /* flutua abaixo do input */
  width: 100%;            /* acompanha a largura da barra */
  z-index: 2000;          /* fica acima do calendário */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#resultados-busca li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

#resultados-busca li:hover {
  background: #f0f0f0;
}






