/* SCONDI — Custom Styles (palette professionnelle claire) */

/* Step dots (wizard progress) */
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F5F7FA;
  border: 2px solid #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #315970;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.step-dot.active {
  background: #2B88D9;
  border-color: #2B88D9;
  color: white;
  box-shadow: 0 0 0 4px rgba(43, 136, 217, 0.15), 0 2px 8px rgba(43, 136, 217, 0.25);
}

.step-dot.done {
  background: #1a6db5;
  border-color: #1a6db5;
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #D9D9D9;
  transition: background 0.25s ease;
}

/* Phase badges — rectangular Stitch style */
.phase-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #D9D9D9;
  color: #315970;
  background: #F5F7FA;
  transition: all 0.2s ease;
  cursor: default;
  display: block;
  width: 100%;
  text-align: left;
}

.phase-badge.active {
  background: white;
  border-color: #D9D9D9;
  border-left: 4px solid #2B88D9;
  padding-left: 10px;
  color: #1D3557;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(29, 53, 87, 0.06), 0 1px 2px rgba(29, 53, 87, 0.04);
}

/* Btn back */
.btn-back {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #D9D9D9;
  background: white;
  color: #315970;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #F5F7FA;
  color: #1D3557;
  border-color: #315970;
}

/* Selected cards */
.domain-card.selected,
.style-card.selected,
.level-card.selected,
.scenario-card.selected {
  border-color: #2B88D9 !important;
  background: rgba(43, 136, 217, 0.05) !important;
}

.domain-card.selected .check-icon,
.style-card.selected .check-icon,
.level-card.selected .check-icon,
.scenario-card.selected .check-icon {
  display: flex !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D9D9D9;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #315970;
}

/* Prose overrides for light theme (debrief content) */
.prose-light table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.prose-light table th {
  background: rgba(43, 136, 217, 0.08);
  color: #1D3557;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #D9D9D9;
  font-weight: 600;
}

.prose-light table td {
  padding: 8px 12px;
  border: 1px solid #D9D9D9;
  color: #315970;
}

.prose-light table tr:nth-child(even) td {
  background: #F5F7FA;
}

.prose-light h2 {
  color: #1D3557;
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.prose-light h3 {
  color: #1D3557;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

.prose-light li {
  color: #315970;
  margin: 4px 0;
}

.prose-light strong {
  color: #1D3557;
  font-weight: 600;
}

.prose-light hr {
  border-color: #D9D9D9;
  margin: 16px 0;
}

.prose-light p {
  color: #315970;
  line-height: 1.6;
}

/* Animate bounce for typing */
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

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

/* Fade in animation for messages */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#messages > div {
  animation: fadeInUp 0.2s ease forwards;
}

/* Icon rotate */
.rotate-180 {
  transform: rotate(180deg);
}

/* Streaming cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.streaming-cursor::after {
  content: '\25AE';
  display: inline-block;
  animation: blink 0.7s step-end infinite;
  color: #2B88D9;
  font-size: 0.85em;
  margin-left: 2px;
}

/* Message fade-in (override global) */
.message-enter {
  animation: fadeInUp 0.25s ease forwards;
}

/* Mic recording pulse */
@keyframes recordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237, 91, 49, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(237, 91, 49, 0); }
}
.mic-recording {
  animation: recordPulse 1.2s ease-in-out infinite;
}

/* Step transition fade */
.wizard-step {
  transition: opacity 0.15s ease;
}
.wizard-step.opacity-0 {
  opacity: 0;
}
