/**
 * AI Link Product Register CSS v3.0
 */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-bg: #eef2ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --header-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--gray-50); color: var(--gray-900); line-height: 1.6; padding-top: var(--header-height); }
a { text-decoration: none; color: inherit; }

/* 메인 콘텐츠 */
.main-content { max-width: 1100px; margin: 0 auto; padding: 32px 24px 100px; }

/* 페이지 헤더 */
.page-header { text-align: center; margin-bottom: 32px; }
.page-title { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.page-subtitle { font-size: 1rem; color: var(--gray-600); margin-bottom: 12px; }
.page-meta { display: flex; justify-content: center; gap: 20px; }
.meta-item { font-size: 0.85rem; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.meta-item i { color: var(--success); }

/* 스텝 프로그레스 */
.step-progress { max-width: 500px; margin: 0 auto 40px; }
.step-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.step-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }
.step-labels { display: flex; justify-content: space-between; }
.step-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-400); }
.step-label.active { color: var(--primary); }
.step-label.completed { color: var(--success); }
.step-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--gray-200); border-radius: 50%; font-size: 0.75rem; font-weight: 600; }
.step-label.active .step-num { background: var(--primary); color: white; }
.step-label.completed .step-num { background: var(--success); color: white; }

/* 레이아웃 */
.register-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

/* 폼 영역 */
.form-area { display: flex; flex-direction: column; gap: 20px; }

/* 폼 섹션 */
.form-section { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; }

.section-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.section-icon { font-size: 1.5rem; }
.section-info { flex: 1; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.section-desc { font-size: 0.8rem; color: var(--gray-500); }
.section-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; }
.section-badge.required { background: #fef2f2; color: var(--error); }
.section-badge.recommend { background: #fef3c7; color: #d97706; }
.section-badge.optional { background: var(--gray-100); color: var(--gray-500); }

.section-body { padding: 20px; }

/* 접이식 섹션 */
.section-header.collapsible { cursor: pointer; }
.section-header.collapsible:hover { background: var(--gray-100); }
.section-toggle { color: var(--gray-400); transition: transform 0.2s; }
.form-section.collapsed .section-body { display: none; }
.form-section.collapsed .section-toggle { transform: rotate(-90deg); }

/* 폼 그룹 */
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-label.required::after { content: ' *'; color: var(--error); }
.label-hint { font-weight: 400; color: var(--gray-400); font-size: 0.8rem; }

.form-input, .form-textarea { width: 100%; padding: 12px 14px; font-size: 0.95rem; font-family: inherit; color: var(--gray-800); background: white; border: 1.5px solid var(--gray-300); border-radius: var(--radius); transition: all 0.2s; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.form-textarea { resize: vertical; min-height: 80px; }
.char-count { display: block; text-align: right; font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }

/* 카테고리 그리드 */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.category-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; }
.category-btn:hover { border-color: var(--gray-300); }
.category-btn.selected { background: var(--primary-bg); border-color: var(--primary); }
.cat-icon { font-size: 1.5rem; }
.cat-label { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); }
.category-btn.selected .cat-label { color: var(--primary); }

/* 도입 형태 */
.deployment-grid { display: flex; gap: 10px; }
.deploy-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; }
.deploy-btn:hover { border-color: var(--gray-300); }
.deploy-btn.selected { background: var(--primary-bg); border-color: var(--primary); }
.deploy-icon { font-size: 1.25rem; }
.deploy-label { font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.deploy-btn.selected .deploy-label { color: var(--primary); }

/* 이미지 업로드 */
.image-upload { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); transition: all 0.2s; }
.image-upload:hover, .image-upload.dragover { border-color: var(--primary); background: var(--primary-bg); }
.upload-content { padding: 32px; text-align: center; cursor: pointer; }
.upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-text { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 4px; }
.upload-text kbd { padding: 2px 6px; background: var(--gray-200); border-radius: 4px; font-size: 0.8rem; }
.upload-hint { font-size: 0.8rem; color: var(--gray-400); }

.image-previews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.image-previews:empty { display: none; }
.preview-item { position: relative; aspect-ratio: 4/3; background: var(--gray-100); border-radius: var(--radius); overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item:first-child::after { content: '대표'; position: absolute; bottom: 4px; left: 4px; padding: 2px 6px; background: var(--primary); color: white; font-size: 0.65rem; font-weight: 600; border-radius: 4px; }
.preview-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* 기능 입력 */
.feature-box { border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: 12px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 32px; }
.feature-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius-full); font-size: 0.85rem; }
.feature-tag button { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 0.9rem; padding: 0; }
.feature-tag button:hover { color: var(--error); }

.feature-input-row { display: flex; gap: 8px; }
.feature-input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; }
.feature-add { width: 36px; height: 36px; background: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.feature-add:hover { background: var(--primary-dark); }

.feature-suggests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-200); }
.suggest-label { font-size: 0.75rem; color: var(--gray-500); line-height: 26px; }
.suggest-btn { padding: 4px 10px; background: var(--gray-100); border: none; border-radius: var(--radius-full); font-size: 0.75rem; color: var(--gray-600); cursor: pointer; }
.suggest-btn:hover { background: var(--primary-bg); color: var(--primary); }

/* 가격 */
.price-row { display: flex; align-items: center; gap: 12px; }
.price-row .form-input { flex: 1; }
.price-sep { color: var(--gray-400); }

/* 도입 고객 */
.target-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.target-btn { padding: 8px 14px; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-full); font-size: 0.85rem; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.target-btn:hover { border-color: var(--primary); }
.target-btn.selected { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }

/* 인증 */
.cert-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-btn { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.cert-btn:hover { border-color: var(--gray-300); }
.cert-btn.selected { background: var(--success-bg); border-color: var(--success); color: var(--success); }

/* 토글 버튼 */
.toggle-btns { display: flex; gap: 10px; }
.toggle-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.toggle-btn:hover { border-color: var(--gray-300); }
.toggle-btn.selected { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }

/* 사이드바 */
.register-sidebar { position: sticky; top: calc(var(--header-height) + 24px); display: flex; flex-direction: column; gap: 16px; }

.sidebar-card { background: white; border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); }

/* 진행률 카드 */
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.progress-percent { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }

.progress-checklist { list-style: none; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 0.85rem; color: var(--gray-500); border-bottom: 1px solid var(--gray-100); }
.check-item:last-child { border-bottom: none; }
.check-item i { font-size: 0.5rem; }
.check-item.completed { color: var(--success); }
.check-item.completed i { font-size: 0.75rem; }
.check-hint { margin-left: auto; font-size: 0.7rem; color: var(--warning); }

/* 등록 버튼 카드 */
.submit-card { text-align: center; }
.submit-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.submit-btn:hover:not(:disabled) { background: var(--primary-dark); }
.submit-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
.submit-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }
.submit-reason { font-size: 0.75rem; color: var(--error); margin-top: 8px; display: none; }
.submit-btn:disabled + .submit-hint + .submit-reason { display: block; }

/* 팁 카드 */
.tips-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.tips-title i { color: var(--warning); }
.tips-list { list-style: none; font-size: 0.8rem; color: var(--gray-600); }
.tips-list li { padding: 6px 0; }

/* 모바일 하단 */
.mobile-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--gray-200); padding: 12px 16px; z-index: 100; }

/* 푸터 */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 24px; text-align: center; font-size: 0.85rem; }

/* 반응형 */
@media (max-width: 900px) {
  .register-layout { grid-template-columns: 1fr; }
  .register-sidebar { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 200px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-content { padding: 20px 16px 120px; }
  .register-sidebar { display: none; }
  .mobile-bottom { display: flex; align-items: center; gap: 16px; }
  .mobile-progress { font-size: 0.9rem; color: var(--gray-600); }
  .mobile-progress span { font-weight: 700; color: var(--primary); }
  .mobile-submit { flex: 1; padding: 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .mobile-submit:disabled { background: var(--gray-300); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .deployment-grid { flex-wrap: wrap; }
  .deploy-btn { flex: 1 1 calc(33% - 7px); }
  .image-previews { grid-template-columns: repeat(3, 1fr); }
  .step-text { display: none; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .image-previews { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================
   조달등록 UI 개선 스타일
   ============================================ */

/* 조달등록 아이템 확장 */
.procurement-item {
  grid-column: span 2;
}

/* 상태 선택 그리드 */
.procurement-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.procurement-status-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.procurement-status-btn:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.procurement-status-btn.selected {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.procurement-status-btn.selected .status-label {
  color: #0369a1;
  font-weight: 600;
}

.status-icon {
  font-size: 1.5rem;
}

.status-label {
  font-size: 0.85rem;
  color: #64748b;
}

/* 상세 영역 공통 */
.procurement-detail {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.procurement-detail.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  margin-top: 16px;
}

.detail-label:first-child {
  margin-top: 0;
}

.label-optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* 계약 유형 그리드 */
.procurement-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.type-btn:hover {
  border-color: #0ea5e9;
}

.type-btn.selected {
  border-color: #0ea5e9;
  background: #e0f2fe;
}

.type-icon {
  font-size: 1.25rem;
}

.type-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.type-btn.selected .type-name {
  color: #0369a1;
}

.type-desc {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* URL 입력 영역 */
.procurement-url-row {
  display: flex;
  gap: 8px;
}

.procurement-url-row .form-input {
  flex: 1;
}

.url-fetch-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.url-fetch-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.url-fetch-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.url-fetch-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.url-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
}

/* 조달 정보 입력 */
.procurement-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-field label {
  font-size: 0.75rem;
  color: #64748b;
}

/* 혜택 그리드 */
.procurement-benefits-grid {
  display: flex;
  gap: 10px;
}

.benefit-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.benefit-btn:hover {
  border-color: #f59e0b;
}

.benefit-btn.selected {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.benefit-icon {
  font-size: 1.25rem;
}

.benefit-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.benefit-btn.selected .benefit-name {
  color: #92400e;
  font-weight: 600;
}

/* 자동완성 표시 */
.auto-filled {
  position: relative;
}

.auto-filled::after {
  content: '✓ 자동완성';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #10b981;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .procurement-item {
    grid-column: span 1;
  }
  
  .procurement-status-grid {
    grid-template-columns: 1fr;
  }
  
  .procurement-type-grid {
    grid-template-columns: 1fr;
  }
  
  .procurement-benefits-grid {
    flex-direction: column;
  }
  
  .procurement-info-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   경쟁 우위 / 도입 기간 스타일
   ============================================ */

/* 예시 힌트 */
.criteria-example {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0f9ff;
  border-radius: 6px;
  font-size: 0.75rem;
}

.example-label {
  color: #0369a1;
  font-weight: 500;
}

.example-text {
  color: #64748b;
}

/* 도입 기간 버튼 */
.select-btn .period-icon {
  margin-right: 4px;
}

/* 도입 기간 선택 버튼 개선 */
.criteria-item .select-grid .select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* ============================================
   추천대상 한 줄 배치 + 예시 줄바꿈 수정
   ============================================ */

/* 추천대상 5개 버튼 한 줄로 */
.target-grid-wide {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.target-grid-wide .select-btn {
  flex: 1;
  min-width: auto;
  white-space: nowrap;
}

/* 모바일에서는 wrap */
@media (max-width: 768px) {
  .target-grid-wide {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .target-grid-wide .select-btn {
    flex: none;
  }
}

@media (max-width: 480px) {
  .target-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 예시 영역 한 줄로 */
.criteria-example {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f9ff;
  border-radius: 6px;
  font-size: 0.8rem;
  flex-wrap: nowrap;
}

.example-label {
  color: #0369a1;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.example-text {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 모바일에서 예시 줄바꿈 허용 */
@media (max-width: 600px) {
  .criteria-example {
    flex-wrap: wrap;
  }
  
  .example-text {
    white-space: normal;
  }
}

/* 자동완성 효과 */
.form-input.auto-filled {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  animation: autoFillPulse 0.5s ease-out;
}

@keyframes autoFillPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: none; }
}

/* 필드 힌트 */
.field-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
}

/* 필수 표시 */
.label-required {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
}

/* URL 입력 행 */
.url-input-row {
  display: flex;
  gap: 8px;
}

.url-input-row .form-input {
  flex: 1;
}

/* 추출 버튼 */
.url-extract-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

.url-extract-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.url-extract-btn:active {
  transform: translateY(0);
}

/* 토스트 메시지 */
.extract-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.extract-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   검색 키워드 섹션 스타일 (간소화)
   ============================================ */

/* 키워드 섹션 */
.keyword-section {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  margin-bottom: 24px;
}

.keyword-section .section-header {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  cursor: pointer;
  transition: all 0.2s;
}

.keyword-section .section-header:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

.keyword-section .section-title,
.keyword-section .section-desc {
  color: white;
}

.keyword-section .section-badge.optional {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* 접기/펼치기 토글 아이콘 */
.keyword-section .section-toggle {
  color: white;
  margin-left: auto;
  transition: transform 0.3s;
}

.keyword-section.collapsed .section-toggle {
  transform: rotate(-90deg);
}

/* 접힌 상태 */
.keyword-section.collapsed .section-body {
  display: none;
}

/* 간소화된 키워드 입력 박스 */
.keyword-box-simple {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 12px;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: tagPop 0.2s ease;
}

@keyframes tagPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.keyword-tag .remove-btn {
  background: rgba(255,255,255,0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: background 0.2s;
}

.keyword-tag .remove-btn:hover {
  background: rgba(255,255,255,0.5);
}

.keyword-input-row {
  display: flex;
  gap: 8px;
}

.keyword-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.keyword-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.keyword-add-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.keyword-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* 키워드 푸터 (카운터 + 힌트) */
.keyword-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

.keyword-counter {
  font-size: 0.8rem;
  color: #9333ea;
  font-weight: 500;
}

.keyword-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* 반응형 */
@media (max-width: 768px) {
  .keyword-input-row {
    flex-direction: column;
  }
  
  .keyword-add-btn {
    width: 100%;
    justify-content: center;
  }
  
  .keyword-footer {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}