/* ==========================
   Estilo base
========================== */
body {
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 20px;
}

nav {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* permite quebrar linhas em telas pequenas */
}

button {
  padding: 10px 15px;
  cursor: pointer;
}

.tab {
  display: none;
}

.active {
  display: block;
}

.color-option {
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ccc;
  display: inline-block;
  margin: 5px;
}

input, select {
  padding: 8px;
  margin: 5px 0;
  width: 100%; /* ocupa toda a largura em mobile */
  max-width: 300px; /* limite em telas grandes */
  box-sizing: border-box;
}

#eventList {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  max-width: 500px;
}

.event-item {
  margin-bottom: 5px;
}

/* ==========================
   Responsividade
========================== */

/* Telas até 768px (tablets e celulares) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  input, select, button {
    width: 100%;
    max-width: none;
  }

  #eventList {
    max-width: 100%;
  }

  .color-option {
    width: 30%;
    text-align: center;
  }
}

/* Telas muito pequenas (até 480px) */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h2 {
    font-size: 1.5em;
  }

  input, select, button {
    font-size: 14px;
    padding: 6px;
  }

  .color-option {
    width: 45%;
    margin: 3px 0;
  }
}
