:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #22d3ee;
  --secondary: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 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);
}

* { box-sizing: border-box; }

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; 
  background: var(--gray-50); 
  margin: 0; 
  padding: 0; 
  color: var(--gray-900);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header { 
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1rem 0;
}

.logo { 
  font-size: 1.75rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li {
  color: var(--text-light);
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 0.5rem;
  color: var(--gray-300);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.guest-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hidden {
  display: none !important;
}

.user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

/* 알림 벨 스타일 */
.notification-bell {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.notification-bell:hover {
  transform: scale(1.1);
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
  display: none;
}

.notification-dot.active {
  display: block;
}

/* user-info-inner 컨테이너 */
.user-info-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.user-info-inner:hover {
  background: var(--gray-50);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.user-name {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
}

.dropdown-icon {
  color: var(--gray-600);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.user-info.active .dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--gray-50);
}

.dropdown-menu button.logout {
  color: var(--danger);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.main {
  padding: 2rem 0 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.form-main {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.progress-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.progress-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.progress-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-number.active {
  background: var(--primary);
  color: white;
}

.step-number.completed {
  background: var(--success);
  color: white;
}

.step-label {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-label.active {
  color: var(--gray-900);
  font-weight: 600;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-900);
}

.form-label.required::after {
  content: '*';
  color: var(--danger);
  margin-left: 0.25rem;
}

.optional-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-select.ai-selected {
  border-color: var(--success);
  background-color: rgba(16, 185, 129, 0.05);
  transition: all 0.5s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 0.5rem;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--gray-50);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.upload-text {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--text-light);
}

.uploaded-files {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-remove {
  color: var(--danger);
  cursor: pointer;
  padding: 0.25rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.ai-suggestions {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.ai-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-description {
  opacity: 0.9;
  font-size: 0.95rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.tag.suggested {
  background: var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag.suggested:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.tag-remove {
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cert-checkbox {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.cert-checkbox:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.cert-checkbox input[type="checkbox"] {
  display: none;
}

.cert-checkbox input[type="checkbox"]:checked + .cert-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-md);
}

.cert-checkbox input[type="checkbox"]:checked ~ small {
  color: var(--primary);
  font-weight: 600;
}

.cert-checkbox:has(input:checked) {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}

.cert-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-checkbox small {
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* ============================================
   레퍼런스 시스템 스타일
   ============================================ */

.reference-section {
  background: linear-gradient(to bottom, rgba(6, 182, 212, 0.02), transparent);
  padding: 2rem;
  margin: 3rem -2.5rem 3rem -2.5rem;
  border-radius: 1rem;
}

.reference-importance-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid var(--primary-light);
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.importance-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.importance-content {
  flex: 1;
}

.importance-content strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.importance-levels {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.importance-levels .level {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.level.gold {
  background: linear-gradient(135deg, #fef3c7, #fde047);
  color: #92400e;
  border: 2px solid #fbbf24;
}

.level.silver {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  border: 2px solid #d1d5db;
}

.level.bronze {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #7c2d12;
  border: 2px solid #fb923c;
}

.level.normal {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.reference-add-form {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.registered-references {
  margin-top: 2rem;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.reference-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.empty-reference-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 1rem;
  color: var(--text-light);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-reference-state p {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.empty-reference-state small {
  font-size: 0.875rem;
  color: var(--text-light);
}

.reference-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reference-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gray-300);
  transition: all 0.3s ease;
}

.reference-card.high {
  border-color: var(--primary-light);
  background: linear-gradient(to right, rgba(6, 182, 212, 0.03), white);
}

.reference-card.high::before {
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
}

.reference-card.medium {
  border-color: var(--gray-300);
}

.reference-card.medium::before {
  background: var(--warning);
}

.reference-card.normal::before {
  background: var(--gray-400);
}

.reference-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reference-content {
  flex: 1;
}

.reference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reference-category {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.reference-card.high .reference-category {
  background: var(--primary);
  color: white;
}

.reference-score {
  padding: 0.25rem 0.75rem;
  background: var(--success);
  color: white;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.reference-institution {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.reference-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.reference-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reference-note {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 0.375rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.reference-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--gray-100);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--gray-200);
  transform: scale(1.1);
}

.btn-icon.delete {
  background: var(--danger);
  color: white;
}

.btn-icon.delete:hover {
  background: #dc2626;
}

.trust-preview {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
  border-radius: 1rem;
  margin-top: 2rem;
  border: 3px solid #fbbf24;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.preview-content {
  flex: 1;
}

.preview-content h4 {
  font-size: 1.1rem;
  color: #92400e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.preview-score {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.score-badge {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.score-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.score-points {
  font-size: 1.8rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1;
}

.score-level {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b45309;
}

.preview-message {
  font-size: 0.95rem;
  color: #78350f;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   체크리스트 모달 스타일
   ============================================ */

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.important-notice {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin: 1.5rem;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-content strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.notice-content p {
  margin: 0;
  color: #78350f;
  font-size: 0.875rem;
  line-height: 1.5;
}

.modal-section {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-section:last-of-type {
  border-bottom: none;
}

.modal-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #111827;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item label {
  flex: 1;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-item label strong {
  display: block;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.checkbox-item label small {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
}

.quality-score {
  margin: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
}

.score-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.score-icon {
  font-size: 1.25rem;
}

.score-header strong {
  font-size: 1rem;
  color: #075985;
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.score-item {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 0.75rem;
  align-items: center;
}

.item-label {
  font-size: 0.875rem;
  color: #0c4a6e;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: #bae6fd;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
  transition: width 0.5s ease;
  border-radius: 4px;
}

.item-score {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0c4a6e;
}

.total-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-top: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.total-score span:first-child {
  font-size: 0.875rem;
  color: #6b7280;
}

.total-score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0284c7;
}

.total-score-grade {
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  color: #075985;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.suggestions-box {
  margin: 1.5rem;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.suggestions-box.hidden {
  display: none;
}

.suggestions-box h4 {
  font-size: 0.9rem;
  color: #991b1b;
  margin: 0 0 0.75rem 0;
}

.suggestions-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #7f1d1d;
  font-size: 0.875rem;
}

.suggestions-box li {
  margin-bottom: 0.5rem;
}

.info-box {
  margin: 1.5rem;
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.info-box strong {
  display: block;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-box li {
  margin-bottom: 0.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  background: white;
}

.modal-actions .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-actions .btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.modal-actions .btn-secondary:hover {
  background: #e5e7eb;
}

.modal-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.modal-actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.modal-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 애니메이션 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast-notification {
  animation: slideInRight 0.3s ease !important;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .form-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-sidebar {
    position: static;
    order: -1;
  }
  .progress-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-main {
    padding: 1.5rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  .form-actions {
    flex-direction: column;
  }
  .user-name {
    display: none;
  }
  .reference-section {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.5rem;
  }
  .reference-importance-box {
    flex-direction: column;
    gap: 1rem;
  }
  .importance-icon {
    font-size: 2rem;
    text-align: center;
  }
  .importance-levels {
    gap: 0.5rem;
  }
  .importance-levels .level {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .reference-card {
    flex-direction: column;
    padding: 1rem;
  }
  .reference-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .reference-details {
    flex-direction: column;
    gap: 0.5rem;
  }
  .reference-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .trust-preview {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .preview-icon {
    font-size: 2.5rem;
    text-align: center;
  }
  .preview-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .score-badge {
    font-size: 2rem;
  }
  .score-points {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .reference-card {
    padding: 0.875rem;
  }
  .reference-institution {
    font-size: 1rem;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
/* ============================================
   레퍼런스 주요/일반 구분 스타일
   기존 register.css 파일 맨 아래에 추가
   ============================================ */

<style>
/* 주요/일반 섹션 구분 */
.premium-section,
.other-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary, #3b82f6);
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0;
}

.section-hint {
  font-size: 0.875rem;
  color: var(--text-light, #6b7280);
}

/* 주요 레퍼런스 카드 강조 */
.reference-card.premium-card {
  border: 2px solid var(--primary, #3b82f6);
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  position: relative;
}

.reference-card.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary, #3b82f6), #06b6d4);
  border-radius: 0.5rem 0.5rem 0 0;
}

/* 주요 레퍼런스 그리드 */
.premium-references {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}

/* 일반 레퍼런스 컴팩트 레이아웃 */
.other-references {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.other-references .reference-card {
  padding: 1rem;
  border: 1px solid var(--border, #e5e7eb);
}

/* 주요 레퍼런스 배지 */
.premium-badge-small {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--primary, #3b82f6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

/* 주요/일반 토글 버튼 */
.btn-toggle-premium {
  padding: 0.5rem;
  background: white;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 0.375rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

.btn-toggle-premium:hover {
  border-color: var(--primary, #3b82f6);
  background: #dbeafe;
  transform: scale(1.1);
}

.btn-toggle-premium.is-premium {
  background: var(--primary, #3b82f6);
  border-color: var(--primary, #3b82f6);
  color: white;
}

.btn-toggle-premium.is-premium:hover {
  background: #2563eb;
  transform: scale(1.1);
}

/* 레퍼런스 헤더 액션 영역 */
.reference-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 반응형 */
@media (max-width: 768px) {
  .premium-references,
  .other-references {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 애니메이션 */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 토스트 알림 */
.toast-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #10b981;
  color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  font-weight: 500;
}
</style>
/* ============================================
   AI 카테고리 분석 중 표시 스타일
   ============================================ */

/* AI 분석 중 인디케이터 */
.ai-analyzing {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: aiZoomIn 0.3s ease-in;
}

.ai-analyzing.show {
    display: flex;
}

/* AI 분석 완료 상태 (초록색) */
.ai-analyzing.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.success-icon {
    font-size: 20px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========================================
   인라인 AI 카테고리 메시지 스타일
   ======================================== */

/* 카테고리 필드 wrapper (select와 메시지를 나란히 배치) */
.category-field-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* select가 wrapper 안에 있을 때 flex-grow */
.category-field-wrapper .form-select {
    flex: 1;
    min-width: 200px;
}

/* 인라인 AI 메시지 기본 스타일 */
.ai-category-inline {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 분석 중 상태 (보라색) */
.ai-category-inline.analyzing {
    display: inline-flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    animation: aiSlideIn 0.3s ease-out;
}

/* 완료 상태 (초록색) */
.ai-category-inline.success {
    display: inline-flex;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    animation: aiSlideIn 0.3s ease-out;
}

/* 인라인 스피너 */
.ai-category-inline .inline-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 인라인 체크 아이콘 */
.ai-category-inline .inline-check {
    font-size: 16px;
    animation: successPop 0.5s ease-out;
}

/* 슬라이드 인 애니메이션 */
@keyframes aiSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .category-field-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .category-field-wrapper .form-select {
        width: 100%;
    }
    
    .ai-category-inline {
        width: 100%;
        justify-content: center;
    }
}

.ai-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes aiZoomIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.category-help-text .icon {
    font-size: 16px;
}

/* ============================================
   제품 등록 가이드 박스 (제품 수정 페이지 스타일과 일관성)
   ============================================ */

.registration-guide-box {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  animation: slideDown 0.4s ease-out;
}

.guide-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  animation: bounce 2s infinite;
}

.guide-content {
  flex: 1;
}

.guide-main {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.guide-sub {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.guide-sub strong {
  font-weight: 700;
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* bounce 애니메이션이 이미 있다면 이 부분은 중복이므로 제거 가능 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .registration-guide-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .guide-icon {
    font-size: 1.5rem;
  }
  
  .guide-main {
    font-size: 0.95rem;
  }
  
  .guide-sub {
    font-size: 0.85rem;
  }
}
/* ============================================
   🆕 FAQ 스타일 (파일 끝에 추가)
   ============================================ */

/* FAQ 검색 섹션 */
.faq-search-section {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  color: #666;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.clear-search-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: #333;
}

/* FAQ 입력 섹션 */
.faq-input-section {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.faq-add-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* FAQ 카드 */
.faq-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.faq-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.faq-card.editing {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.faq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.faq-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--background-light);
  color: #333;
}

.faq-actions {
  display: flex;
  gap: 0.5rem;
}

.faq-edit-btn,
.faq-delete-btn {
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.faq-edit-btn {
  background: #e3f2fd;
  color: #1976d2;
}

.faq-edit-btn:hover {
  background: #bbdefb;
}

.faq-delete-btn {
  background: #ffebee;
  color: #d32f2f;
}

.faq-delete-btn:hover {
  background: #ffcdd2;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.faq-answer {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  white-space: pre-line;
}

/* 빈 상태 */
.empty-faq-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-faq-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-faq-state p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.empty-faq-state small {
  font-size: 0.85rem;
  color: #aaa;
}

/* 검색 결과 없음 */
.no-search-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
}

.no-search-results .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* 수정 모드 표시 */
.faq-editing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* 반응형 */
@media (max-width: 768px) {
  .faq-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .faq-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .faq-add-actions {
    flex-direction: column;
  }
  
  .faq-add-actions button {
    width: 100%;
  }
}