/* Custom Design Styles for YKS Planning Portal */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #06b6d4;
  --accent-gold: #f59e0b;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --card-border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 70, 229, 0.8);
}

/* Glowing effects */
.glow-primary {
  box-shadow: 0 0 25px -5px rgba(79, 70, 229, 0.3);
}
.glow-accent {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.3);
}
.glow-gold {
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.3);
}

/* Live Pulse Animation */
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.live-pulse {
  animation: pulse-dot 2s infinite;
}

/* Print Friendly Styles for Handouts (Matches Coach Handouts) */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #333 !important;
  }
  .print-table th, .print-table td {
    border: 1px solid #333 !important;
    padding: 4px 8px !important;
    color: black !important;
  }
}

/* Chat bubble styling */
.chat-bubble-assistant {
  background: #1e293b;
  border-left: 3px solid #6366f1;
}
.chat-bubble-user {
  background: #312e81;
}

/* Markdown styling inside AI reports */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: #e2e8f0;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.markdown-body h2 {
  font-size: 1.25rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.25rem;
}
.markdown-body h3 {
  font-size: 1.1rem;
  color: #38bdf8;
}
.markdown-body p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.markdown-body ul, .markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.markdown-body li {
  margin-bottom: 0.25rem;
}
.markdown-body strong {
  color: #38bdf8;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.markdown-body th, .markdown-body td {
  border: 1px solid #334155;
  padding: 6px 10px;
  text-align: left;
}
.markdown-body th {
  background: #0f172a;
  color: #94a3b8;
}
