/* VERBOO PRACTICE WITH DANTE CANONICAL STYLES */

.practice-page {
  padding-top: 36px;
  padding-bottom: 64px;
  flex: 1 0 auto;
  min-height: calc(100vh - 52px - 80px);
}

/* SETUP CARD (INITIAL STATE) */
.practice-setup-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  max-width: 720px;
  margin: 0 auto;
}

.practice-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.dante-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.dante-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.4);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.dante-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dante-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.msg-sender-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
}

.practice-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.practice-main-title {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.practice-subtitle {
  margin: 0 0 28px 0;
  font-size: 0.975rem;
  color: #94a3b8;
  line-height: 1.55;
}

.practice-setup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.practice-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.practice-input:focus {
  outline: none;
  border-color: #6366f1;
}

.quick-topics-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
}

.topic-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.topic-chip.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #ffffff;
}

.setup-actions {
  margin-top: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* SESSION CARD (ACTIVE CONVERSATION) */
.practice-session-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 580px;
}

.practice-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.thinking {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.status-pill.completed {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

/* CHAT MESSAGES */
.chat-messages-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.msg.user {
  align-self: flex-end;
}

.msg.dante {
  align-self: flex-start;
}

.msg .bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user .bubble {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg.dante .bubble {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

/* QUICK UPGRADE CALLOUT (SUPPORTIVE SECONDARY FEEDBACK) */
.quick-upgrade-callout {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #818cf8;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.quick-upgrade-label {
  display: block;
  font-size: 0.725rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.quick-upgrade-text {
  color: #cbd5e1;
}

/* COMPLETION BANNER */
.session-completion-card {
  padding: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.completion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.completion-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* COMPOSER BAR */
.practice-composer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.composer-inner {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.composer-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  transition: border-color 0.2s ease;
}

.composer-input::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.composer-input::-webkit-scrollbar-track {
  background: transparent;
}

.composer-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.composer-input::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.composer-input:focus {
  outline: none;
  border-color: #6366f1;
}

.composer-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.composer-note {
  margin-top: 8px;
  font-size: 0.775rem;
  color: #94a3b8;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.825rem;
}

@media (max-width: 640px) {
  .practice-setup-card {
    padding: 24px 16px;
    border-radius: 18px;
  }
}
