/* Universal */

* {
}

/* By tag */

body {
  font-family: system-ui, sans-serif;
  background: #f5f6fa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

label {
  display: block;
  margin-top: 1rem;
}

input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
}

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

form.active {
  display: flex;
}

nav {
  display: flex;
  margin-bottom: 1rem;
}

nav button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: #eee;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

nav button:hover {
  background: #ddd;
}

nav button.active {
  background: #333;
  color: white;
}

button.submit {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

button.submit:hover {
  background: #004fd6;
}

/* By class */

.card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  background: #333;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.toast.success {
  background: #28a745;
}
.toast.error {
  background: #dc3545;
}
.toast.info {
  background: #333;
}

/* By id */
