body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container {
    width: 100%;
    height: 100%;
    max-width: 600px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
}
h1, h2 {
    text-align: center;
    font-size: 28px;
    margin: 10px 0;
}
button {
    width: 100%;
    padding: 19px;
    margin: 13px 0;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #ad2529;
    color: white;
}
button:hover {
    background: #d32228;
}
.hidden {
    display: none;
}
.search-box {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.list {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0;
}

@media(min-width: 500px) {
  .input-group {
    flex-direction: row;
    justify-content: space-between;
  }
}

.input-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.input-item label {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 16px;
  color: #333;
}

.input-item input[type="date"],
.input-item select {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.input-item input[type="date"]:focus,
.input-item select:focus {
  outline: none;
  border-color: #ad2529;
  box-shadow: 0 0 5px rgba(173, 37, 41, 0.5);
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ad2529;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-content.hidden {
  display: none;
}

.dropdown-content button {
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: white;
}

.dropdown-content button:hover {
  background-color: #d32228;
}

.person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5px 20px 5px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}
.person input[type="checkbox"] {
    transform: scale(1.4);
    cursor: pointer;
}

.visitor-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.visitor-label {
  font-weight: bold;
  font-size: 1.5rem;
  color: #ad2529;
  margin-bottom: 5px;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  text-align: center;
}

.visitor-input {
  width: 100%;
  padding: 11px 12px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border 0.2s, box-shadow 0.2s;
}

.visitor-input:focus {
  border-color: #ad2529;
  box-shadow: 0 0 5px rgba(173,37,41,0.5);
  outline: none;
}

.visitor-btn {
  margin-top: 8px;
  padding: 15px 15px;
  background-color: #ad2529;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.visitor-btn:hover {
  background-color: #c83b3f;
}

.titulo {
  font-size: 30px;
  margin: 10px 0 70px 0;
}

.criarlista {
    margin: 50px 0 13px 0;
}

.relatorio {
    padding: 15px 19px;
    margin: 200px 0 13px 0;
}

.dataevento {
    margin: 13px 0 35px 0;
}

.confirmar {
    margin: 130px 0 13px 0;
}

.finalizar {
    margin: 110px 0 13px 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-buttons button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#confirmarFinalizar {
  background: #28a745;
  color: white;
}

.modal-buttons button:last-child {
  background: #dc3545;
  color: white;
}