/* 환경탐구노트 스타일 */
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif; }

/* 활동지 카드 공통 */
.ws-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.ws-input, .ws-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.ws-input:focus, .ws-textarea:focus {
  border-color: #3da159;
  box-shadow: 0 0 0 3px rgba(61,161,89,0.15);
}
.ws-textarea { resize: vertical; min-height: 80px; }

.btn-primary {
  background: #3da159;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #2d8546; }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-secondary {
  background: white;
  color: #3da159;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid #3da159;
  cursor: pointer;
}
.btn-secondary:hover { background: #f0f9f2; }

.btn-ghost {
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-ghost:hover { background: #f3f4f6; }

.ai-btn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #fbbf24;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-btn:hover { background: linear-gradient(135deg, #fde68a, #fcd34d); }

.step-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
}
.step-item:hover { background: #f3f4f6; }
.step-item.active {
  background: #dbf0e0;
  color: #1d4429;
  font-weight: 600;
}
.step-item.completed {
  color: #2d8546;
}
.step-item.locked { color: #d1d5db; cursor: not-allowed; }
.step-item.locked:hover { background: transparent; }

/* 토스트 */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}
.toast.error { background: #dc2626; }
.toast.success { background: #16a34a; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 자동저장 표시 */
.save-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  background: white;
  border: 1px solid #e5e7eb;
  z-index: 100;
  display: none;
}
.save-indicator.show { display: block; }
.save-indicator.saving { color: #b45309; }
.save-indicator.saved { color: #16a34a; }

/* 키워드 태그 */
.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbf0e0;
  color: #1d4429;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  margin: 4px;
}
.keyword-tag button { background: transparent; border: none; cursor: pointer; color: #6b7280; }
.keyword-tag button:hover { color: #dc2626; }

/* 모달 */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-content {
  background: white; border-radius: 12px; padding: 24px;
  max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
}

/* 인쇄용 스타일 */
@media print {
  body { background: white !important; }
  .no-print { display: none !important; }
  .report-page { box-shadow: none !important; margin: 0 !important; padding: 0 !important; }
  @page { size: A4; margin: 2cm; }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; page-break-after: avoid; }
  h3 { font-size: 13pt; }
  body, p, li, td { font-size: 11pt; line-height: 1.6; }
  .page-break { page-break-before: always; }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .sidebar-desktop { display: none; }
  .sidebar-mobile { display: block; }
}
@media (min-width: 769px) {
  .sidebar-desktop { display: block; }
  .sidebar-mobile { display: none; }
}

/* 진행률 점 */
.progress-dots { display: inline-flex; gap: 4px; }
.progress-dot { width: 14px; height: 14px; border-radius: 50%; background: #d1d5db; }
.progress-dot.completed { background: #16a34a; }
.progress-dot.current { background: #fbbf24; }
