body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  padding: 20px;
  margin: 0;
}

h1 {
  text-align: center;
  color: #1f2937;
  margin-bottom: 20px;
  font-size: 2rem;
}

.controls {
  text-align: center;
  margin-bottom: 15px;
}

.controls {
  display: flex;
  justify-content: space-between; /* Distribui os botões nos extremos */
  align-items: center;
  width: 100%;
  margin-bottom: 20px; /* Ajuste conforme necessário */
}

/* Estilos gerais para ambos os botões */
.controls button {
  width: 100px;
  height: 100px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  color: white;
}

/* Botão "voltar" - individual */
#prev-month {
  background-image: url('img/menor.png');
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  
  /* Aumenta o tamanho da imagem mantendo proporção */
  background-size: 60px 60px; /* Aumentei de 24px para 40px */
  
  /* Opcional: ajusta o padding se quiser que a imagem ocupe mais espaço */
  padding: 10px; /* Cria espaço interno ao redor da imagem */
}

/* Botão "avançar" - individual */
#next-month {
  background-image: url('img/maior-que.png');
  /* Posicionamento no canto direito */
  position: absolute;
  right: 20px; /* Distância da borda direita */
  top: 50%; /* Centraliza verticalmente */
  transform: translateY(-50%); /* Ajuste para centralizar */

  /* Aumenta o tamanho da imagem mantendo proporção */
  background-size: 60px 60px; /* Aumentei de 24px para 40px */
  
  /* Opcional: ajusta o padding se quiser que a imagem ocupe mais espaço */
  padding: 10px; /* Cria espaço interno ao redor da imagem */
}

/* Hover específico para cada botão */
#prev-month:hover {
  transform: translateY(-52%) scale(1.05); /* Efeito diferente */
}

#next-month:hover {
  transform: translateY(-52%) scale(1.05); /* Efeito diferente */
}

/* Container para posicionamento relativo */
.controls {
  position: relative;
  width: 100%;
  height: 100px; /* Altura do container */
}


.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;           /* gap menor em celular */
  max-width: 100%;    /* ocupa toda a largura */
  margin: 0 auto 20px auto;
}

.day-header {
  background: #60a5fa;
  color: white;
  text-align: center;
  padding: 12px 0;
  font-weight: bold;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day {
  background: white;
  min-height: 90px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.day:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.day:focus {
  outline: 3px solid #3b82f6;
}

.work {
  background: #fde68a;
  border-color: #facc15;
}

.day-number {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #1f2937;
}

.tag {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  background: transparent;
  padding: 2px 6px;
  border-radius: 6px;
}

.day.work {
    color: white;
    font-weight: bold;
}

.day.manha {
    background-color: rgb(230, 230, 101);
    color: black;
}

.day.tarde {
    background-color: rgb(91, 177, 248);
    color: white;
}

.day.noite {
    background-color: rgb(238, 79, 79);
    color: white;
}

.day.folga {
    background-color: rgb(76, 155, 76);
    color: white;
}

/* Modal simples */
  #dayModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  #dayModalContent {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 220px;
    text-align: center;
  }
  #dayModalContent select {
    width: 100%;
    padding: 5px;
    margin-top: 10px;
  }
  #dayModalContent button {
    margin: 10px 5px 0 5px;
    padding: 5px 10px;
  }

  /* Responsividade para telas pequenas */
@media screen and (max-width: 600px) {
  .day {
    min-height: 50px;
    padding: 4px;
    font-size: 0.85rem;
  }

  .day-number {
    font-size: 0.95rem;
  }

  .tag {
    font-size: 10px;
    bottom: 2px;
    left: 2px;
  }

  .day-header {
    font-size: 0.7rem;
    padding: 6px 0;
  }

  #prev-month, #next-month {
    width: 30px;
    height: 30px;
    background-size: 20px 20px;
  }
}