* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 2rem;
  line-height: 1.6;
}

#root {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Task Form Styles */
form {
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

input,
textarea,
select {
  background-color: #333;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #5a9fd4;
  box-shadow: 0 0 0 2px rgba(90, 159, 212, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  background-color: #5a9fd4;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #4a8fc4;
}

button:active {
  background-color: #3a7fb4;
}

/* Task List Styles */
ul {
  list-style: none;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

li {
  background-color: #333;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

li:hover {
  background-color: #3a3a3a;
}

li:last-child {
  margin-bottom: 0;
}

li button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Loading and Empty States */
.loading {
  color: #999;
}

/* Sign In Form */
.sign-in-form {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}

.sign-in-form h1 {
  margin-bottom: 0.5rem;
}

.sign-in-form p {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

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

.sign-in-form input,
.sign-in-form select {
  width: 100%;
}

.sign-in-form button {
  width: 100%;
  margin-top: 0.5rem;
}

.sign-in-form button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.error {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Header with logout */
header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header button {
  background-color: #666;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

header button:hover {
  background-color: #555;
}
