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

.task-card {
  flex-grow: 0;
  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;
  gap: 16px;
}

.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 {
  margin: 16px 24px;  
  opacity: 0.7;
}

.task-info {
  flex: 1;
  display: flex;
  min-width: 0;
  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;
  word-break: break-word;
}

.task-stats {
  display: flex;
  flex-wrap: wrap;
  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 {
  flex-shrink: 0;
  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 {
  flex-grow: 0;
  margin-bottom: 16px;
  background-color: #F8F9FA;
  border: 1px solid #EFEFF4;
  border-radius: 16px;
  overflow: hidden;
}

.details-summary {
  width: 100%;
  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;
  gap: 8px;
}

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

.details-summary img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.operations-list {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.empty-operations-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #8E8E93;
  padding: 16px;
  text-align: center;
  gap: 8px;
}

.details-content {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding: 0 16px 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;
  gap: 8px;
}

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

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

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

.details-value {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  text-align: right;
  word-break: break-word;
}

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

.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);
}

/* Адаптивность для экранов 700px и меньше */
@media (max-width: 700px) {
  .task-card {
    padding: 10px;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .task-card.inactive {
    margin: 8px 12px;
  }
  
  .task-info {
    gap: 4px;
  }
  
  .task-meta {
    font-size: 12px;
  }
  
  .task-title {
    font-size: 14px;
  }
  
  .task-stats {
    gap: 8px;
  }
  
  .task-stat-item img {
    width: 14px;
    height: 14px;
  }
  
  .task-price-button {
    width: 100%;
    height: 36px;
    font-size: 14px;
    align-self: center;
  }
  
  .details-section {
    margin-bottom: 8px;
    border-radius: 10px;
  }
  
  .details-summary {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .details-summary img {
    width: 10px;
    height: 10px;
  }
  
  .details-content {
    margin-top: 8px;
    padding: 0 8px 8px;
  }
  
  .details-header {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .details-title {
    font-size: 14px;
  }
  
  .details-row {
    padding-bottom: 8px;
  }
  
  .details-label,
  .details-value {
    font-size: 12px;
  }
  
  .task-close-button-wrapper {
    margin-top: 16px;
  }
  
  .task-close-button,
  .completed-button {
    width: 90%;
    max-width: 200px;
    height: 56px;
    font-size: 15px;
    border-radius: 10px;
  }
}