/* Карточки задач */

.task-card {
  padding: 15px;
  margin-bottom: 16px;
  background-color: white;
  border: 1px solid #EFEFF4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.task-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.task-card.active {
  border-left: 5px solid #4318FF;
}

.task-card.inactive {
  opacity: 0.7;
}

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-meta {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
}

.task-title {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
}

.task-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.task-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-stat-item img {
  width: 16px;
  height: 16px;
}

.task-price-button {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  gap: 20px;
}

.task-price-button.active {
  background-color: #4318FF;
  color: white;
  text-decoration: none;
}

.task-price-button.inactive {
  background-color: #8E8E93;
  text-decoration: none;
}

.task-price-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2);
}

/* Детали задачи */

.details-section {
  width: 984px;
  margin-bottom: 16px;
  background-color: #F8F9FA;
  border: 1px solid #EFEFF4;
  border-radius: 16px;
  overflow: hidden;
}

.details-summary {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: #F8F9FA;
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  user-select: none;
  list-style: none;
}

.details-summary::-webkit-details-marker {
  display: none;
}


.operations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.details-content {
  width: 984px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
  margin-top: 16px;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #F8F9FA;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}

.details-title {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}

.details-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F0F0;
}

.details-label {
  font-size: 14px;
  color: #8E8E93;
}

.details-value {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
}

/* Кнопка закрытия задачи */

.task-close-button {
  width: 250px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4318FF;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.task-close-button:hover {
  background-color: #3a14e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.3);
}

.task-close-button-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-top: 32px;
  justify-content: center;
}

/* Кнопка завершения (стилизованная) */

.completed-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 12px;
  background-color: #4318FF;
  width: 250px;
  height: 80px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  justify-content: center;
}

.completed-button:hover {
  background-color: #3a14e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.3);
}
