body {
  margin: 0;
  padding: 20px;
  background-color: #11161c;
  color: #e7edf3;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.form-panel {
  width: 320px;
  flex-shrink: 0;
}

.form-panel form {
  background-color: #1b222b;
  padding: 20px;
  border-radius: 6px;
  position: sticky;
  top: 20px;
}

.tasks-panel {
  flex: 1;
  background-color: #151b22;
  border-radius: 6px;
  padding: 20px;
  height: calc(100vh - 100px);
  overflow-y: auto;
}

input,
select,
textarea,
button {
  font: inherit;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #364250;
  border-radius: 4px;
  background-color: #0f1419;
  color: #e7edf3;
}

form textarea {
  min-height: 90px;
  resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #f0b429;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#submit-btn,
#cancel-btn,
.edit-btn,
.delete-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#submit-btn {
  background-color: #f0b429;
  color: #11161c;
}

#cancel-btn {
  background-color: #3a4654;
  color: #e7edf3;
}

.edit-btn {
  background-color: #2f6fed;
  color: white;
  margin-right: 8px;
}

.delete-btn {
  background-color: #a83232;
  color: white;
}

#task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-element {
  background-color: #1b222b;
  border-left: 5px solid #5b6b7c;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.task-element h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: white;
}

.task-element p {
  margin: 6px 0;
  color: #c7d0d9;
}

.task-element strong {
  color: white;
}

.task-element.priority-high {
  border-left-color: #d64545;
}

.task-element.priority-medium {
  border-left-color: #f0b429;
}

.task-element.priority-low {
  border-left-color: #32c766;
}

.task-actions {
  margin-top: 12px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .form-panel {
    width: 100%;
  }

  .form-panel form {
    position: static;
  }

  .tasks-panel {
    width: 100%;
    height: auto;
    overflow-y: visible;
  }
}