/* Dark mode with system theme, Android 12 Material You inspired */

:root {
  --primary-color-light: #4caf50; /* green */
  --primary-color-dark: #81c784; /* lighter green */
  --grey-color: #9e9e9e;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --text-light: #000000;
  --text-dark: #e0e0e0;
  --font-family: 'Roboto', 'Google Sans', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --text-color: var(--text-dark);
  }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: var(--bg-light);
    --text-color: var(--text-light);
  }
}

body {
  background-color: var(--bg);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
  padding: 1rem;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: var(--bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

h2 {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  margin: 0.8rem 0 0.3rem 0;
  font-weight: 500;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #999;
  border-radius: 10px;
  font-size: 1rem;
  background-color: var(--bg);
  color: var(--text-color);
  font-family: var(--font-family);
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color-light);
  box-shadow: 0 0 6px var(--primary-color-light);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: space-between;
}

button {
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background-color 2s ease;
  font-family: var(--font-family);
  color: var(--bg-light);
  background-color: var(--grey-color);
  user-select: none;
  flex: 1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button#submit-btn.enabled {
  background-color: var(--primary-color-light);
}

button#home-btn {
  background-color: #757575;
  color: var(--bg-light);
  transition: background-color 0.3s ease;
}

button#home-btn:hover {
  background-color: #616161;
}

#form-status {
  margin-top: 1rem;
  font-size: 1rem;
  min-height: 1.2rem;
  color: var(--primary-color-light);
  font-weight: 600;
}
