/* html-tasks.css — Redesigned with HTML Logo Colors (White + Orange) */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fefefe;
  color: #222;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1080px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 28px;
  color: #e44d26;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
  margin-bottom: 30px;
}

.task-list li {
  background: #fff5f2;
  border-left: 6px solid #e44d26;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.task-list li:hover {
  background-color: #ffe5dc;
  transform: translateY(-1px);
}

.editor-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#taskTitle {
  color: #e44d26;
  font-size: 1.5rem;
}

#codeEditor {
  width: 100%;
  height: 220px;
  border: 2px solid #ffd6c8;
  border-radius: 12px;
  padding: 16px;
  background: #fff7f4;
  font-family: monospace;
  font-size: 15px;
  resize: vertical;
  color: #333;
}

.btn-group {
  display: flex;
  gap: 12px;
}

button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.2s ease-in-out;
}

#validateBtn {
  background-color: #e44d26;
  color: #fff;
}

#validateBtn:hover {
  background-color: #d63e1e;
}

#markCompleteBtn {
  background-color: #fff;
  color: #e44d26;
  border: 2px solid #e44d26;
}

#markCompleteBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#markCompleteBtn:enabled:hover {
  background-color: #e44d26;
  color: white;
}

#resultMessage {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 8px;
}

.preview-card {
  margin-top: 20px;
  padding: 18px;
  background: #fffafa;
  border: 1px solid #ffd6c8;
  border-radius: 12px;
}

.preview-card h3 {
  margin-bottom: 12px;
  color: #e44d26;
  font-size: 1.2rem;
}

#previewFrame {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
}