
.assessment-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 24px auto;
}

.assessment-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 28px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.assessment-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.badge-subject {
  background-color: #93b4f8;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-subject p {
  margin: 0;
}

.card-title h3 {
  margin: 2px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

/* standard type and credits */
.assessment-details {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

.card-data-field p {
  margin: 0;
}

/* right side of card*/
.due-date-priority {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* due and priority */
.form-middle-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 115px;
}

/* due */
.due {
  background-color: #e4e5f7;
  border-radius: 2px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.due-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8b92d6;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.due input[type="date"] {
  background: transparent;
  border: none;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.priority-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 2px;
  border: none;
  font-weight: bold;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  outline: none;
}

/* priority colours */
.priority-low {
  background-color: #bad1fe;
  color: #1e293b;
}

.priority-medium {
  background-color: #8c9af1;
  color: #1e293b;
}

.priority-high {
  background-color: #393bbc;
  color: #e4edfa;
}

/* last column */
.form-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* checkbox */
.completed-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 2px;
  background-color: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.completed-checkbox:checked {
  background-color: #93b4f8;
  border-color: #93b4f8;
}

.completed-checkbox:checked::before {
  content: "✓";
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}

/* Botão Salvar (apenas o ícone azul claro) */
.save-btn {
  background: transparent;
  border: none;
  color: #93b4f8;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}

.save-btn:hover {
  color: #6168d2;
}

.save-btn .material-symbols-outlined {
  font-size: 24px;
}


/* mobile card */

@media (max-width: 768px) {
  .assessment-row-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 20px;
  }

  .assessment-info {
    width: 100%;
  }

  .assessment-details {
    flex-wrap: wrap;
    gap: 12px;
  }

  .due-date-priority {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
  }

  .form-middle-col {
    width: 100%;
    gap: 10px;
  }

  .due {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .due input[type="date"] {
    width: auto;
    margin: 4px auto 0 auto;
  }

  .priority-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-align-last: center;
  }

  .form-right-col {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
  }
}

#completed-assessments + .assessment-container .assessment-row-card{
  opacity: 0.7;
}

#completed-assessments + .assessment-container .assessment-row-card:hover {
  opacity: 1;
}
