/* ChecklistView Component Styles */

.checklist-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1a1a1a;
  color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
}

.checklist-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ff6b35;
  flex: 1;
}

.checklist-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
}

.completion-badge {
  background: #ff6b35;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.completion-text {
  font-size: 14px;
  color: #999;
}

.checklist-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.checklist-close:hover {
  background: #3a3a3a;
  color: #fff;
}

.checklist-tabs {
  display: flex;
  background: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  overflow-x: auto;
}

.checklist-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.checklist-tab:hover {
  color: #fff;
  background: #3a3a3a;
}

.checklist-tab.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

.tab-count {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.7;
}

.checklist-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.checklist-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4CAF50;
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  transition: all 0.2s;
  cursor: move;
}

.checklist-item:hover {
  background: #333;
  border-color: #4a4a4a;
}

.checklist-item.dragging {
  opacity: 0.5;
}

.checklist-item.completed {
  opacity: 0.6;
}

.checklist-item.completed .item-label {
  text-decoration: line-through;
  color: #999;
}

.item-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #4CAF50;
}

.item-label {
  flex: 1;
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
  transition: background 0.2s;
}

.item-label:focus {
  background: #3a3a3a;
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-memory-pictures {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.checklist-memory-picture {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.checklist-memory-picture:hover {
  transform: scale(1.1);
  z-index: 10;
  position: relative;
}

.item-delete {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0;
}

.checklist-item:hover .item-delete {
  opacity: 1;
}

.item-delete:hover {
  background: #4a1a1a;
  color: #ff4444;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #666;
  font-style: italic;
}

/* Scrap Section */
.scrap-section {
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.scrap-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.scrap-display {
  position: relative;
}

.circular-progress {
  width: 150px;
  height: 150px;
  position: relative;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #3a3a3a;
  stroke-width: 8;
}

.progress-fill {
  fill: none;
  stroke: #ff6b35;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 600;
  color: #ff6b35;
}

.scrap-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scrap-btn {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrap-btn:hover {
  background: #3a3a3a;
  border-color: #ff6b35;
  color: #ff6b35;
}

.scrap-number-input {
  width: 80px;
  padding: 8px 12px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #fff;
  font-size: 18px;
  text-align: center;
  border-radius: 6px;
  outline: none;
}

.scrap-number-input:focus {
  border-color: #ff6b35;
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

.scrap-slider {
  width: 100%;
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.scrap-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ff6b35;
  cursor: pointer;
  border-radius: 50%;
}

.scrap-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ff6b35;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.checklist-footer {
  padding: 16px;
  background: #2a2a2a;
  border-top: 1px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.save-status {
  font-size: 12px;
  color: #999;
  min-width: 80px;
}

.save-status.saving {
  color: #ff9800;
}

.save-status.saved {
  color: #4CAF50;
}

.save-status.error {
  color: #ff4444;
}

.checklist-actions {
  display: flex;
  gap: 8px;
}

.btn-primary,
.btn-secondary {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #ff8555;
}

.btn-secondary {
  background: #3a3a3a;
  color: #fff;
}

.btn-secondary:hover {
  background: #4a4a4a;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .checklist-header {
    padding: 12px;
  }

  .checklist-title {
    font-size: 16px;
  }

  .checklist-tabs {
    font-size: 12px;
  }

  .checklist-tab {
    padding: 10px 12px;
  }

  .checklist-content {
    padding: 12px;
  }

  .checklist-item {
    padding: 10px;
  }

  .item-delete {
    opacity: 1;
  }

  .checklist-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .checklist-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

