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

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

:root {
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;
  
  --color-yellow-50: #fefce8;
  --color-yellow-500: #eab308;
  --color-yellow-700: #a16207;
  --color-yellow-800: #854d0e;
  
  --color-cyan-50: #ecfeff;
  --color-cyan-700: #0e7490;
}

body {
  background-color: white;
  color: var(--color-slate-800);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-slate-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-indigo-600);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--color-slate-600);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.875rem;
  padding-bottom: 0.25rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-indigo-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nav-logout-btn {
  background: transparent;
  border: 1px solid var(--color-slate-300);
  color: var(--color-slate-600);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-logout-btn:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-400);
  color: var(--color-slate-700);
}

/* Mobile Navigation Hamburger Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-slate-700);
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-close-btn {
  display: none;
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
  }
  
  .nav-content {
    position: relative;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-right {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 70px 20px 40px 20px;
    gap: 0.5rem;
    z-index: 9999;
    overflow-y: auto;
  }
  
  .nav-right.open {
    display: flex;
  }
  
  .mobile-close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--color-slate-700);
    cursor: pointer;
    width: 44px;
    height: 44px;
    line-height: 0.8;
    z-index: 10000;
  }
  
  .mobile-close-btn:hover {
    color: var(--color-slate-900);
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    margin-top: 1rem;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    font-size: 1.15rem;
    padding: 1rem;
    display: block;
    border-radius: 10px;
    background: var(--color-slate-50);
    transition: background 0.2s;
  }
  
  .nav-link:hover {
    background: var(--color-slate-100);
  }
  
  .nav-logout-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-top: 0.75rem;
  }
  
  .logo img {
    height: 36px !important;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.5rem 0;
  }
  
  .logo img {
    height: 32px !important;
  }
  
  .nav-link {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
}

.hero {
  text-align: center;
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-slate-600);
  margin-bottom: 2rem;
}

.hero-wrapper {
  margin: -2rem 0 0 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.hero-image {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-section {
  padding: 0;
  margin: 0;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0.5px solid var(--color-slate-200);
  position: relative;
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-indigo-600), var(--color-indigo-500));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px) scale(1.01);
  border: 0.5px solid var(--color-slate-200);
}

.card:hover::before {
  opacity: 0;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-slate-600);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary {
  background-color: var(--color-indigo-600);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-indigo-700);
}

.btn-secondary {
  background-color: white;
  color: var(--color-indigo-600);
  border: 1px solid var(--color-indigo-600);
}

.btn-secondary:hover {
  background-color: var(--color-indigo-50);
}

.btn-success {
  background-color: var(--color-green-600);
  color: white;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.module-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.module-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card.module-card-with-thumbnail {
  padding: 0 !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-padding-start: 0 !important;
  -webkit-padding-end: 0 !important;
  -webkit-padding-before: 0 !important;
  -webkit-padding-after: 0 !important;
}

.card.module-card-with-thumbnail::before {
  display: none !important;
}

.module-thumbnail {
  width: 100%;
  height: 11.5rem;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  background-color: var(--color-slate-100);
  display: block;
  line-height: 0;
  font-size: 0;
  -webkit-margin-before: 0 !important;
  -webkit-margin-after: 0 !important;
  -webkit-padding-before: 0 !important;
  -webkit-padding-after: 0 !important;
}

.module-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  outline: 0;
  vertical-align: top;
  line-height: 0;
  font-size: 0;
  transition: transform 0.3s ease;
  -webkit-margin-before: 0 !important;
  -webkit-margin-after: 0 !important;
  -webkit-padding-before: 0 !important;
  -webkit-padding-after: 0 !important;
}

.module-card:hover .module-thumbnail img {
  transform: scale(1.05);
}

.card.module-card-with-thumbnail .module-info {
  padding: 0.625rem !important;
  padding-top: 0.625rem !important;
  padding-right: 0.625rem !important;
  padding-bottom: 0.625rem !important;
  padding-left: 0.625rem !important;
  margin: 0 !important;
}

.module-info {
  flex: 1;
}

.module-info h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.module-info p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-slate-600);
}

.module-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  white-space: nowrap;
}

.badge-completed {
  background-color: var(--color-green-100);
  color: var(--color-green-700);
  border: 1px solid var(--color-green-200);
}

.badge-new {
  background-color: var(--color-indigo-100);
  color: var(--color-indigo-700);
  border: 1px solid var(--color-indigo-200);
}

.badge-level {
  background-color: var(--color-indigo-600);
  color: white;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-tag {
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-200);
}

.completion-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.module-card {
  text-decoration: none !important;
  color: inherit;
  display: block;
  -webkit-text-decoration: none !important;
}

.module-card:link,
.module-card:visited,
.module-card:hover,
.module-card:active {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.module-card *,
.module-card *:link,
.module-card *:visited,
.module-card *:hover,
.module-card *:active {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.module-card h3,
.module-card p,
.module-card span {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration-line: none !important;
}

.stage-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.stage-card-with-thumbnail {
  padding: 0;
  overflow: hidden;
}

.stage-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-slate-100);
  border-radius: 12px 12px 0 0;
}

.stage-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.stage-card:hover .stage-thumbnail img {
  transform: scale(1.05);
}

.stage-content {
  padding: 1.5rem;
}

.stage-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.stage-card-footer {
  margin-top: 1rem;
}

.stage-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
}

.stage-description.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.stage-actions-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stage-footer-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage-footer-row {
  display: flex;
  align-items: center;
}

.stage-footer-actions {
  gap: 0.5rem;
}

.read-more-btn {
  color: var(--color-indigo-600);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: var(--color-indigo-700);
}

.badge-view-modules {
  background-color: var(--color-indigo-600);
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.badge-view-modules:hover {
  background-color: var(--color-indigo-700);
}

.completed-modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.completed-module-card {
  background: var(--color-green-50);
  border-left: 4px solid var(--color-green-600);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.completed-module-content {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.completed-checkmark {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--color-green-600);
}

.completed-module-info {
  flex: 1;
}

.completed-module-info h3 {
  margin-bottom: 0.5rem;
}

.completed-module-info p {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-slate-600);
}

.badge-review {
  background-color: var(--color-indigo-600);
  color: white;
  text-decoration: none;
  flex-shrink: 0;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.badge-review:hover {
  background-color: var(--color-indigo-700);
}

.empty-state {
  text-align: center;
  padding: 3rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--color-slate-900);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.module-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .module-content {
    grid-template-columns: 2fr 1fr;
  }
}

.prompts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prompt-box {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-indigo-600);
}

.prompt-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.375rem;
}

.prompt-box p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-slate-700);
  line-height: 1.6;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-container {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
}

.chat-messages {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 85%;
}

.message-user {
  background-color: var(--color-indigo-100);
  color: var(--color-slate-900);
  margin-left: auto;
}

.message-coach {
  background-color: var(--color-slate-100);
  color: var(--color-slate-900);
}

.chat-input {
  display: flex;
  gap: 0.5rem;
}

.chat-input textarea {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 0.5rem;
  resize: none;
  min-height: 80px;
}

.chat-input textarea:focus {
  outline: none;
  border-color: var(--color-indigo-600);
  box-shadow: 0 0 0 3px var(--color-indigo-100);
}

.chat-input button {
  align-self: flex-end;
}

.premium-teaser {
  background: linear-gradient(135deg, var(--color-indigo-600), var(--color-indigo-700));
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.premium-teaser h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.premium-teaser p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.375rem;
}

.page-header p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-slate-600);
}

.module-divider {
  border: none;
  border-top: 1px solid var(--color-slate-200);
  margin: 2rem 0;
}

.stage-description {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-slate-600);
  max-width: 800px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-slate-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-indigo-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.loading {
  display: none;
}

.htmx-request .loading {
  display: inline;
}

.htmx-request.loading-indicator {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }
}

/* New Module Layout - Video Card, Prompt Card, AI Coach Bar */
.module-video-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.module-video-card .video-container {
  margin-bottom: 0;
  border-radius: 0.75rem;
}

.module-prompt-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.module-prompt-card .prompts {
  gap: 1.25rem;
}

.module-prompt-card .prompt-box {
  border-left: none;
  padding: 0;
  background: transparent;
}

.module-prompt-card .prompt-box:not(:last-child) {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
}


/* Coach Section - Side by Side Layout */
.coach-section {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.coach-section.hidden {
  display: none;
}

/* AI Coach Box (Left Side) */
.ai-coach-box {
  flex: 1;
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.ai-coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.ai-coach-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin: 0;
}

.ai-coach-header span {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.ai-coach-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ai-coach-pill {
  padding: 0.4rem 0.75rem;
  background: var(--color-indigo-50);
  border: 1px solid var(--color-indigo-200);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--color-indigo-700);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ai-coach-pill:hover {
  background: var(--color-indigo-100);
  border-color: var(--color-indigo-400);
  color: var(--color-indigo-800);
}

.ai-coach-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  max-height: 280px;
  padding: 0.5rem;
  background: var(--color-slate-50);
  border-radius: 0.75rem;
}

.ai-coach-input {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.ai-coach-input textarea {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 0.75rem;
  resize: none;
  min-height: 44px;
  max-height: 80px;
  font-size: 0.875rem;
  font-family: inherit;
}

.ai-coach-input textarea:focus {
  outline: none;
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 0 3px var(--color-indigo-100);
}

.ai-coach-input button {
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

/* Pipeline Coach Box (Right Side) */
.pipeline-coach-box {
  flex: 1;
  background: linear-gradient(135deg, var(--color-indigo-50) 0%, white 100%);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
}

.pipeline-coach-icon {
  width: 80px;
  height: 80px;
  background: var(--color-indigo-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-indigo-600);
}

.pipeline-coach-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin: 0 0 0.75rem 0;
}

.pipeline-coach-box p {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  margin: 0 0 1.5rem 0;
  max-width: 280px;
  line-height: 1.5;
}

.pipeline-coach-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Mobile adjustments for coach section */
@media (max-width: 768px) {
  .coach-section {
    flex-direction: column;
    gap: 1rem;
  }

  .ai-coach-box,
  .pipeline-coach-box {
    min-height: auto;
  }

  .ai-coach-box {
    min-height: 350px;
  }

  .pipeline-coach-box {
    padding: 1.5rem;
  }

  .ai-coach-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .module-content {
    padding-bottom: 2rem;
  }
}
