/* Base reset and smooth font rendering */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #000;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  padding: 1rem;
}

.container {
  max-width: 480px;
  margin: auto;
  background-color: #121212;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: #ffffff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="date"],
input[type="text"],
input[type="number"],
select {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border: 2px solid #005fcc;
  background-color: #e5f0ff;
}

button {
  padding: 0.75rem;
  background-color: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00b383;
}

#statusMsg {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  color: #00b383;
}

/* Responsive Enhancements */
@media (min-width: 600px) {
  .container {
    padding: 2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  button {
    font-size: 1.05rem;
  }
}

/* Toast styles */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007e33; /* green by default */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 1000;
  font-weight: 500;
}

.toast.show {
  bottom: 2rem;
  opacity: 1;
  pointer-events: auto;
}

.toast.error {
  background-color: #b00020;
}
