@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

body { font-family: 'Noto Sans KR', sans-serif; }
.matrix-cell { transition: all 0.2s ease; }
.matrix-cell:hover { transform: scale(1.05); }
.bar-animate { transition: width 0.5s ease-out; }
.theory-card { transition: all 0.3s ease; }
.theory-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tab-active { border-bottom: 2px solid #3b82f6; color: #2563eb; background: #eff6ff; }
.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.radar-label { font-size: 11px; fill: #374151; font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px #3b82f6; border-color: #3b82f6; }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease-in;
}
.modal-content {
  background: white; border-radius: 12px; padding: 24px;
  max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 20px; height: 20px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Line clamp for text truncation */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
