/* css/activities.css */

/* The activity list scrolls with the editor panel (no inner scroll box),
   so the filter bar can stay pinned above it. */

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 30px;
  background-color: white;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #165C7D;
}

.filter-btn:hover {
  background-color: #f0f7fa;
  border-color: #94B7BB;
}

.filter-btn.active {
  background-color: #009FDF;
  color: white;
  border-color: #009FDF;
  font-weight: 500;
}

/* Duration badges */
.duration-title {
  font-size: 0.9rem;
  color: #555;
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.quick-title {
  color: var(--quick-color, #4CAF50);
}

.medium-title {
  color: var(--medium-color, #2196F3);
}

.extended-title {
  color: var(--extended-color, #9C27B0);
}

.duration-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.quick-badge {
  background-color: var(--quick-color, #4CAF50);
}

.medium-badge {
  background-color: var(--medium-color, #2196F3);
}

.extended-badge {
  background-color: var(--extended-color, #9C27B0);
}

/* Activity Cards */
.activity-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #94B7BB;
}

.activity-card.selected {
  box-shadow: 0 0 0 2px #009FDF, 0 4px 10px rgba(0,0,0,0.1);
}

.activity-card-header {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
}

.activity-duration-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
}

.duration-quick {
  background-color: var(--quick-color, #4CAF50);
}

.duration-medium {
  background-color: var(--medium-color, #2196F3);
}

.duration-extended {
  background-color: var(--extended-color, #9C27B0);
}

.activity-card-body {
  padding: 15px;
  flex-grow: 1;
}

.activity-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #003D4C;
  font-size: 0.95rem;
}

.activity-description {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.activity-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: #f0f0f0;
  color: #555;
}

.activity-card-footer {
  padding: 10px 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
}

/* Add/Remove buttons */
.add-activity-btn {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.add-activity-btn.btn-outline-primary {
  color: #009FDF;
  border-color: #009FDF;
}

.add-activity-btn.btn-success {
  background-color: #6CC24A;
  border-color: #6CC24A;
}

/* Custom Activity Form */
.custom-activity-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}

.custom-activity-form {
  background-color: #f0f7fa;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid rgba(148, 183, 187, 0.3);
}

/* Selected Activities list */
.selected-activities-container {
  background-color: #f0f7fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(148, 183, 187, 0.3);
}

.selected-activity-card {
  background-color: white;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

.selected-activity-card:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.selected-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 12px;
  flex-shrink: 0;
}

.selected-activity-details {
  flex-grow: 1;
}

.selected-activity-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #003D4C;
}

.selected-activity-info {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 15px;
}

.selected-activity-actions {
  display: flex;
  gap: 5px;
}

.remove-activity-btn {
  padding: 3px 6px;
  font-size: 0.8rem;
  color: #dc3545;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.remove-activity-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.drag-handle {
  cursor: move;
  color: #aaa;
  padding: 0 5px;
  margin-right: 5px;
  transition: all 0.2s ease;
}

.drag-handle:hover {
  color: #777;
}

.total-duration {
  background-color: #165C7D;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
}

/* Activity Combinations */
.activity-combinations {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}

.combination-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.combination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #94B7BB;
}

.combination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.combination-title {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  color: #003D4C;
}

.combination-duration {
  background-color: #f0f0f0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #165C7D;
}

.combination-activities {
  margin-bottom: 15px;
}

.combination-activity {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid #eee;
}

.combination-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.combination-activity-details {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combination-activity-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #165C7D;
}

.combination-activity-duration {
  font-size: 0.8rem;
  color: #666;
}

.use-combination-btn {
  width: 100%;
  font-size: 0.9rem;
  border-radius: 30px;
  padding: 6px 12px;
  color: #009FDF;
  border-color: #009FDF;
  transition: all 0.2s ease;
}

.use-combination-btn:hover {
  background-color: #009FDF;
  color: white;
}

.combination-note {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-top: 8px;
  padding: 5px 0;
}

/* Activity Empty State */
.activity-empty-state {
  display: none;
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .activity-card .card-body {
    padding: 12px;
  }
  
  .selected-activity-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .combination-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .combination-duration {
    margin-top: 5px;
  }
}

/* Nord Highlight */
.activity-card.nord-recommended {
  border: 1px solid #165C7D;
  position: relative;
}

.nord-recommended-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #165C7D;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
  z-index: 1;
}