/* Assignments panel */
.tasks-panel {
  position: sticky;
  top: 105px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 30px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.add-task-button {
  width: 100%;
  background: var(--pastel-green);
  color: #256a35;
  border: 2px solid var(--pastel-green-border);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(143, 214, 154, 0.22);
}

.add-task-button:hover {
  transform: translateY(-2px);
}

.tasks-title {
  margin: 0 0 14px;
  font-size: 22px;
}
.tasks-cloud-status {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}


.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: var(--task-bg);
  border: 1px solid var(--task-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.04);
}

.task-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  color: var(--text);
}

.task-deadline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.task-responsible {
  color: #526079;
  font-size: 13px;
  margin: -4px 0 12px;
  line-height: 1.35;
}

.task-responsible strong {
  color: var(--text);
}

.task-remaining {
  color: #687589;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.done-button,
.delete-button {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
}

.done-button {
  background: #e8f4ff;
  color: #17456f;
}

.delete-button {
  background: var(--danger-bg);
  color: var(--danger);
}

.task-card.overdue {
  background: #fff1f2;
  border-color: #f3a8b4;
  box-shadow: 0 10px 24px rgba(232, 121, 121, 0.12);
}

.task-card.overdue .task-remain-line strong,
.task-card.overdue .task-remain-line {
  color: #9f2f3f;
}

.task-card.done {
  background: #e8f8ee;
  border-color: #9bd8a8;
  opacity: 1;
  box-shadow: 0 10px 24px rgba(32, 114, 69, 0.10);
}

.task-card.done h3 {
  color: #207245;
  text-decoration: line-through;
}

.task-card.done .task-deadline,
.task-card.done .task-remain-line,
.task-card.done .task-remain-line strong {
  color: #207245;
}

/* Notes */
.notes-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-line {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 14px;
  padding: 9px 11px;
  font-size: 13px;
  cursor: context-menu;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.03);
}

.note-text {
  display: block;
  color: var(--text);
  text-align: start;
  unicode-bidi: plaintext;
}

.note-line.completed .note-text {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--muted);
}

.note-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.complete-note-button,
.remove-note-button {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.complete-note-button {
  background: var(--green-light);
  color: var(--green-text);
}

.remove-note-button {
  background: var(--danger-bg);
  color: var(--danger);
}

.task-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.add-note-button {
  background: #eef6ff;
  color: #17456f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 12px;
}

.add-note-button:hover {
  background: #deefff;
}

.note-form {
  display: none;
  gap: 7px;
  margin-top: 10px;
}

.note-form.open {
  display: flex;
}

.note-form input {
  flex: 1;
  border: 1px solid var(--note-border);
  background: white;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.note-form input:focus {
  border-color: var(--pastel-blue-border);
  box-shadow: 0 0 0 4px rgba(207, 232, 255, 0.45);
}

.save-note-button,
.cancel-note-button {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: bold;
}

.save-note-button {
  background: #1f2937;
  color: white;
}

.cancel-note-button {
  background: #f1f3f7;
  color: var(--muted);
}

.empty-tasks {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

