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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

main {
  background: white;
  padding: 20px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  margin-bottom: 15px;
}

.hidden {
  display: none;
}

.setup-screen, .message-box {
  text-align: center;
  padding: 40px 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.task-info {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 15px;
}

.label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.description p {
  line-height: 1.8;
  font-size: 18px;
}

.message-box {
  color: #7f8c8d;
  padding: 50px 20px;
}

.message-box h2 {
  color: #34495e;
  margin-bottom: 15px;
}

/* Animation for new task */
.task-details {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .task-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Answer section styles */
.answer-section {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.answer-form-container {
  width: 100%;
}

.answer-form {
  width: 100%;
}

.answer-form .form-group {
  margin-bottom: 20px;
}

.answer-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.answer-form .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
}

.answer-form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.answer-form .submit-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.answer-form .submit-btn:hover {
  background-color: #27ae60;
}

.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: bold;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Admin styles for answer display */
.task-answers {
  margin-top: 20px;
  padding: 15px;
  background-color: #eaf7fd;
  border-radius: 4px;
  border-left: 4px solid #3498db;
}

.task-answers h5 {
  color: #2980b9;
  margin-bottom: 10px;
}

.task-answers ol {
  padding-left: 20px;
}

.task-answers li {
  margin-bottom: 5px;
} 