/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9fb;
  color: #333;
  padding: 2rem;
  line-height: 1.6;
}

h1, h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Form styling */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, select, button {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.mission-button.not-started {
  background-color: rebeccapurple;
  color: white;
}

.mission-button.in-progress {
  background-color: goldenrod;
  color: black;
}

.mission-button.completed {
  background-color: forestgreen;
  color: white;
}

#error-message {
  color: red;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
}

#success-message {
  color: green;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
}

/* Dashboard buttons */
.mission-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  gap: 15px;
}

.mission-button {
  flex: 1 1 200px;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  color: white;
  transition: background-color 0.3s ease;
  text-align: center;
  min-width: 180px;
}

.mission-button.pending {
  background-color: #9b59b6;
}

.mission-button.completed {
  background-color: #2ecc71;
}

.mission-button:hover {
  filter: brightness(1.1);
}

/* Mission page */
.mission-container {
  background: white;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mission-container h2 {
  margin-bottom: 1rem;
}

.mission-container p {
  margin-bottom: 2rem;
}

.upload-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.upload-error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .mission-button {
    flex-direction: column;
    align-items: center;
    width: 90%;
    text-align: center;
  }

  form {
    width: 90%;
    padding: 1.5rem;
  }
}
