/* AI 역량 진단 플랫폼 커스텀 스타일 */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 부드러운 전환 효과 */
.tab-content {
  animation: fadeIn 0.3s ease-in;
}

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

/* 네비게이션 버튼 호버 효과 */
.nav-btn {
  transition: all 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 채팅 컨테이너 */
#chat-container {
  scroll-behavior: smooth;
}

/* 카드 호버 효과 */
.hover\:shadow-lg {
  transition: box-shadow 0.3s ease;
}

/* 로딩 애니메이션 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* 응답 버튼 선택 애니메이션 - 강화된 버전 */
@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 선택된 버튼 글로우 효과 */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

/* 응답 버튼 기본 스타일 */
.response-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.response-btn:active {
  transform: scale(0.95) !important;
}

.response-btn:focus {
  outline: none;
}

/* 선택되지 않은 버튼 기본 상태 */
.response-btn.unselected-btn {
  background: white;
  border-color: rgb(209 213 219); /* gray-300 */
}

/* 선택되지 않은 버튼 hover 상태 */
.response-btn.unselected-btn:hover {
  background: rgb(239 246 255) !important; /* blue-50 */
  border-color: rgb(96 165 250) !important; /* blue-400 */
  transform: scale(1.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* 선택된 버튼 기본 상태 - 진한 그라데이션 */
.response-btn.selected-btn {
  background: linear-gradient(to bottom right, rgb(59 130 246), rgb(37 99 235)) !important;
  border-color: rgb(37 99 235) !important;
}

/* 선택된 버튼 hover 상태 - 밝은 그라데이션으로 변경 */
.response-btn.selected-btn:hover {
  background: linear-gradient(to bottom right, rgb(96 165 250), rgb(59 130 246)) !important;
  border-color: rgb(37 99 235) !important;
  transform: scale(1.10) !important;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.5) !important;
}

/* 어시스턴트 카드 호버 효과 */
.assistant-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.assistant-card:hover {
  transform: translateY(-4px);
}

/* 채팅 메시지 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out;
}

/* 타이핑 인디케이터 애니메이션 */
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}

.animate-bounce {
  animation: bounce 1.4s infinite;
}

/* 채팅 입력 포커스 효과 */
#chat-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}