/* CSS variables for consistent, premium styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0712;
  --bg-secondary: #120e24;
  --bg-accent: rgba(99, 102, 241, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #ffbe0b;
  --accent-indigo: #6366f1;
  --accent-indigo-light: #818cf8;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 190, 11, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Auth / Landing Layout */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-gold), var(--accent-rose));
}

.brand {
  margin-bottom: 2.5rem;
}

.brand-logo {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 70%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px var(--glass-glow);
  background: rgba(0, 0, 0, 0.5);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  width: 100%;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-indigo-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

.btn:disabled, .btn-mic:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}


.btn-google {
  background: white;
  color: #1f2937;
  font-weight: 500;
  display: flex;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--glass-border);
}

.divider:not(:empty)::before {
  margin-right: .5em;
}

.divider:not(:empty)::after {
  margin-left: .5em;
}

.auth-toggle {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-toggle span {
  color: var(--accent-indigo-light);
  cursor: pointer;
  font-weight: 600;
}

.auth-toggle span:hover {
  text-decoration: underline;
}

/* App Header */
header {
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.header-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

.btn-signout {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-signout:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* Dashboard Layout */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 350px) 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.panel-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.panel-title svg {
  color: var(--accent-gold);
}

/* Interview Session List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-card:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--accent-indigo-light);
  transform: translateX(4px);
}

.history-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
}

.history-score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Live Interview Layout */
.interview-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 75px);
  height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .interview-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Camera feed panel */
.feed-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.camera-card {
  position: relative;
  background: black;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  aspect-ratio: 4/3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.camera-card.active {
  border-color: var(--accent-indigo);
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera */
}

.camera-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
  gap: 10px;
}

.camera-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.overlay-badge {
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.overlay-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-rose);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/* Mic controls and speech indicators */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dot.speaking {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1s infinite;
}

.dot.listening {
  background: var(--accent-indigo-light);
  box-shadow: 0 0 10px var(--accent-indigo-light);
  animation: pulse 1s infinite;
}

/* Audio waves visualizer */
.audio-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: var(--accent-indigo);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.speaking .wave-bar {
  animation: dance 1.2s infinite ease-in-out;
  background: var(--accent-emerald);
}

.listening .wave-bar {
  animation: dance 1s infinite ease-in-out;
  background: var(--accent-indigo);
}

.speaking .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.speaking .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.speaking .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.speaking .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.speaking .wave-bar:nth-child(6) { animation-delay: 0.5s; }

.listening .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.listening .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.listening .wave-bar:nth-child(4) { animation-delay: 0.45s; }
.listening .wave-bar:nth-child(5) { animation-delay: 0.6s; }
.listening .wave-bar:nth-child(6) { animation-delay: 0.75s; }

/* Professor Console layout */
.console-panel {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: start;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.console-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.1);
}

.prof-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prof-badge-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-indigo) 100%);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.prof-info h3 {
  font-size: 1rem;
}

.prof-info p {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* Chat display */
.chat-logs {
  height: 160px;
  flex: none;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.chat-bubble.professor {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.candidate {
  align-self: flex-end;
  background: var(--accent-indigo);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.system-alert {
  align-self: center;
  background: rgba(255, 190, 11, 0.1);
  border: 1px solid rgba(255, 190, 11, 0.2);
  color: var(--accent-gold);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
}

/* Audio speaker animations */
.tts-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-tts {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-tts:hover {
  color: var(--accent-gold);
}

/* Live Speech Box Input */
.speech-input-area {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.15);
}

.transcription-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.transcription-box.active {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99,102,241,0.2);
}

.transcription-box:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99,102,241,0.25);
  background: rgba(0, 0, 0, 0.5);
}

.transcription-box:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  font-style: italic;
  pointer-events: none;
}

.transcription-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.interview-actions {
  display: flex;
  gap: 1rem;
}

.btn-mic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-mic:hover {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo-light);
  transform: scale(1.05);
}

.btn-mic.active {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  animation: pulseGlow 1.5s infinite;
}

.btn-submit {
  flex: 1;
}

/* Analytics & Evaluation Layout */
.evaluation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .evaluation-layout {
    grid-template-columns: 1fr;
  }
}

.score-hero {
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 6px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(99,102,241,0.2);
}

.score-circle-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.score-circle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .strengths-weaknesses {
    grid-template-columns: 1fr;
  }
}

.sw-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.sw-panel h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-panel.strengths h4 { color: var(--accent-emerald); }
.sw-panel.weaknesses h4 { color: var(--accent-rose); }

.sw-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.sw-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
}

.strengths .sw-list li::before {
  content: '✓';
  color: var(--accent-emerald);
}

.weaknesses .sw-list li::before {
  content: '⚠';
  color: var(--accent-rose);
}

.chart-container {
  position: relative;
  margin: auto;
  height: 350px;
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(244, 63, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

@keyframes dance {
  0%, 100% {
    height: 4px;
  }
  50% {
    height: 25px;
  }
}

/* Responsive adjustments for mobile and tablet views */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .interview-container {
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - 75px);
    height: auto;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .console-panel {
    height: auto;
    min-height: 550px;
  }

  .evaluation-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  #nav-email {
    display: none !important;
  }

  .user-profile-badge {
    padding: 0.4rem 0.6rem;
  }

  .dashboard-container {
    padding: 1.5rem 1rem;
  }

  .glass-panel {
    padding: 1.5rem;
    border-radius: 16px;
  }

  #report-modal {
    padding: 0.5rem;
  }

  #report-modal .glass-panel {
    margin: 1rem auto;
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
  }

  .strengths-weaknesses {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .header-brand {
    font-size: 1.25rem;
  }

  .btn-signout {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .brand-logo {
    font-size: 2.2rem;
  }

  .auth-container {
    padding: 1rem 0.75rem;
  }

  .auth-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
    max-width: 100%;
  }

  /* Dashboard button widths */
  #btn-launch-interview,
  #btn-save-profile {
    width: 100% !important;
  }

  /* Live Interview Professor badge wrapping */
  .console-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .console-header > div:last-child {
    align-self: flex-end;
  }

  .chat-logs {
    padding: 1rem;
    height: 140px;
    max-height: 140px;
  }

  .chat-bubble {
    max-width: 92%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .speech-input-area {
    padding: 1rem;
  }

  .transcription-box {
    padding: 0.75rem;
    font-size: 0.9rem;
    min-height: 70px;
  }

  /* Responsive Interview buttons stacking on mobile */
  .interview-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .btn-submit {
    order: 2;
    flex: 1 1 auto;
    min-width: 150px;
  }

  .btn-mic {
    order: 1;
    width: 48px;
    height: 48px;
  }

  #btn-end-session {
    order: 3;
    width: 100% !important;
    margin-top: 0.25rem;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-circle-value {
    font-size: 2.75rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .dashboard-container {
    padding: 1rem 0.5rem;
  }

  .brand h2 {
    font-size: 1.6rem !important;
  }

  .brand p {
    font-size: 0.85rem !important;
  }

  .glass-panel {
    padding: 1rem;
    border-radius: 12px;
  }

  .form-input, .form-select, .form-textarea {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .chart-container {
    height: 250px;
  }
}

/* Premium Feedback Box styles */
.feedback-box {
  margin-top: 14px;
  background: rgba(255, 190, 11, 0.04);
  border: 1px solid rgba(255, 190, 11, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.4s ease-out;
}

.feedback-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 190, 11, 0.1);
  padding-bottom: 8px;
}

.feedback-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1rem;
}

.feedback-box-score {
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(255, 190, 11, 0.15);
  color: var(--accent-gold);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.feedback-section {
  margin-bottom: 10px;
}

.feedback-section:last-child {
  margin-bottom: 0;
}

.feedback-section strong {
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.feedback-section p {
  line-height: 1.5;
  margin: 0;
}

/* Speech Analysis Styles */
.speech-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 576px) {
  .speech-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.speech-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.speech-stat-card:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.speech-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-indigo-light);
  margin-bottom: 0.25rem;
}

.speech-stat-value.filler-highlight {
  color: var(--accent-rose);
}

.speech-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.speech-section {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem;
}

.speech-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

/* Filler word tags */
.filler-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filler-tag {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease-out;
}

.filler-tag:hover {
  background: rgba(244, 63, 94, 0.2);
  transform: scale(1.05);
}

.filler-tag strong {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
}

/* Repeated words frequency bars */
.repeated-words-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repeated-word-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 480px) {
  .repeated-word-row {
    grid-template-columns: 80px 1fr 40px;
    gap: 0.5rem;
  }
}

.repeated-word-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  font-family: var(--font-body);
}

.repeated-word-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.repeated-word-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-indigo-light));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: barGrow 0.8s ease-out;
}

@keyframes barGrow {
  from { width: 0% !important; }
}

.repeated-word-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-indigo-light);
  font-family: var(--font-display);
}

/* Suggestions list */
.suggestions-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suggestions-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.85rem 1.25rem;
  padding-left: 2.5rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  position: relative;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.suggestions-list li:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.suggestions-list li::before {
  content: '💡';
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  font-size: 0.9rem;
}

/* Start Interview Welcome Overlay */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Premium Reports Page Styles */
.reports-page-body {
  background-color: #0b0813;
  overflow: auto;
}

.app-header-premium {
  height: 70px;
  background: rgba(13, 9, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container-premium {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand-premium {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 60%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links-premium {
  display: flex;
  gap: 2rem;
}

.nav-links-premium a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links-premium a:hover {
  color: white;
}

.nav-links-premium a.active {
  color: white;
}

.nav-links-premium a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.header-actions-premium {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-icon-premium {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-premium:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.user-avatar-premium {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  border: 2px solid rgba(255,255,255,0.1);
}

/* Page Layout */
.reports-layout-wrapper {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

.reports-sidebar {
  width: 280px;
  background: #110d22;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  z-index: 10;
  flex-shrink: 0;
}

.sidebar-user-profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sidebar-avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.sidebar-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sidebar-user-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.25rem;
}

#sidebar-user-sub {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.sidebar-tab svg {
  transition: transform 0.25s ease;
}

.sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  color: white;
}

.sidebar-tab:hover svg {
  transform: translateX(2px);
}

.sidebar-tab.active {
  background: rgba(99, 102, 241, 0.1);
  color: white;
  border-left-color: var(--accent-indigo);
  font-weight: 600;
}

.sidebar-tab.active svg {
  color: var(--accent-indigo-light);
}

.sidebar-bottom-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn-export {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-indigo-light) 100%);
  color: white;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 4px 15px rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
}

.sidebar-sec-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-sec-link:hover {
  color: var(--text-secondary);
}

/* Main Content Styles */
.reports-main-content {
  flex-grow: 1;
  padding: 2.5rem 3rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  height: calc(100vh - 70px);
}

/* Header section with Score */
.report-header-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(99,102,241,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.report-header-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: rgba(99, 102, 241, 0.08);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}

.report-header-info {
  max-width: 70%;
}

.report-header-date {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.report-header-title {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.report-header-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Score Circle Widget */
.report-score-widget {
  flex-shrink: 0;
}

.circular-score-ring {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-svg {
  width: 100%;
  height: 100%;
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 2.8;
}

.ring-stroke {
  fill: none;
  stroke: var(--accent-indigo-light);
  stroke-width: 2.8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 1s ease;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.5));
}

.score-display-values {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.score-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Grid Layouts */
.reports-content-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.grid-2-col {
  grid-template-columns: 1.2fr 0.8fr;
}

.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .grid-3-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .reports-layout-wrapper {
    flex-direction: column;
  }
  .reports-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    padding: 1.5rem;
  }
  .reports-main-content {
    height: auto;
    padding: 1.5rem;
  }
}

.glass-panel-premium {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.premium-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.75rem;
}

.accent-indigo-icon { color: var(--accent-indigo-light); }
.accent-gold-icon { color: var(--accent-gold); }

.summary-paragraph {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Strengths & Weaknesses Grid inside Performance Summary */
.sw-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .sw-grid-container {
    grid-template-columns: 1fr;
  }
}

.sw-box {
  padding: 1.25rem;
  border-radius: 12px;
  min-height: 140px;
}

.strengths-box {
  background: rgba(16, 185, 129, 0.03);
  border: 1px dashed rgba(16, 185, 129, 0.18);
}

.weaknesses-box {
  background: rgba(244, 63, 94, 0.03);
  border: 1px dashed rgba(244, 63, 94, 0.18);
}

.sw-badge-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.badge-strengths {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.badge-weaknesses {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

.sw-premium-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-premium-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.sw-premium-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: bold;
}

.strengths-box .sw-premium-list li::before {
  content: '✓';
  color: var(--accent-emerald);
}

.weaknesses-box .sw-premium-list li::before {
  content: '•';
  color: var(--accent-rose);
  font-size: 1.2rem;
  left: 2px;
  top: -2px;
}

/* Radar Chart container */
.radar-chart-premium-container {
  width: 100%;
  height: 250px;
  position: relative;
}

.flex-center-content {
  display: flex;
  flex-direction: column;
}

/* Sections wrappers */
.reports-section-wrapper {
  margin-bottom: 3.5rem;
}

.premium-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Non-Verbal analysis cards */
.non-verbal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.non-verbal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.non-verbal-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.nv-icon {
  color: var(--accent-gold);
}

.non-verbal-content {
  display: flex;
  flex-direction: column;
}

.nv-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.nv-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.nv-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Speech Pattern elements */
.grid-speech-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 1024px) {
  .grid-speech-layout {
    grid-template-columns: 1fr;
  }
}

.speech-stat-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.speech-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s ease;
}

.speech-metric-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
}

.sm-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.sm-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.accent-rose-text {
  color: var(--accent-rose);
}

.repeated-words-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.repeated-words-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.repeated-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Table Breakdown */
.table-scroll-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.question-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: rgba(255, 255, 255, 0.01);
  font-size: 0.9rem;
}

.question-breakdown-table th {
  background: rgba(13, 9, 23, 0.6);
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-breakdown-table td {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  line-height: 1.5;
}

.question-breakdown-table tr:last-child td {
  border-bottom: none;
}

.td-question {
  color: white;
  font-weight: 500;
}

.td-coach-tip {
  color: var(--text-secondary);
  font-style: italic;
}

.quality-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.badge-high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-medium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-low {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Growth Timeline Roadmap */
.roadmap-timeline-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  padding-top: 1rem;
}

.roadmap-line-connector {
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.roadmap-timeline-node {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.node-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.marker-active {
  background: var(--accent-indigo-light);
  border: 4px solid #0b0813;
  box-shadow: 0 0 12px var(--accent-indigo-light);
}

.marker-future {
  background: rgba(255,255,255,0.05);
  border: 4px solid #0b0813;
}

.node-content-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 1.25rem;
  min-height: 120px;
  transition: all 0.3s ease;
}

.node-content-box:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(99, 102, 241, 0.15);
}

.node-time-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.node-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .roadmap-timeline-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .roadmap-line-connector {
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 2px;
    height: auto;
  }
  .roadmap-timeline-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .node-marker {
    margin-bottom: 0;
    margin-top: 10px;
  }
}

/* Transcript styling details */
.transcript-premium-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.transcript-bubbles-scroll {
  max-height: 480px;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.transcript-bubble-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.transcript-bubble {
  max-width: 85%;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.professor-premium {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.candidate-premium {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #e2e8f0;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.05);
}

.bubble-speaker-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--accent-gold);
}

.candidate-premium .bubble-speaker-label {
  color: var(--accent-indigo-light);
}

.bubble-text-content {
  color: var(--text-primary);
}

/* Embedded feedback in Transcript */
.premium-feedback-box {
  margin-top: 1rem;
  background: rgba(255, 190, 11, 0.03);
  border: 1px solid rgba(255, 190, 11, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.88rem;
}

.premium-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 190, 11, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.premium-feedback-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
}

.premium-feedback-score {
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(255, 190, 11, 0.1);
  color: var(--accent-gold);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.premium-feedback-section {
  margin-bottom: 8px;
}

.premium-feedback-section:last-child {
  margin-bottom: 0;
}

.premium-feedback-section strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.premium-feedback-section p {
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Transcript Toolbar */
.transcript-toolbar-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(13, 9, 23, 0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.transcript-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0 1rem;
  width: 280px;
  height: 38px;
  transition: all 0.3s ease;
}

.transcript-search-box:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99,102,241,0.15);
}

.search-icon {
  margin-right: 8px;
  flex-shrink: 0;
}

#transcript-search-input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  height: 100%;
  font-size: 0.88rem;
}

#transcript-search-input:focus {
  outline: none;
}

.btn-copy {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 10px;
  width: auto;
}

@media (max-width: 576px) {
  .transcript-toolbar-premium {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .transcript-search-box {
    width: 100%;
  }
  .btn-copy {
    width: 100%;
  }
}

/* Print Overrides */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .app-header-premium, .reports-sidebar {
    display: none !important;
  }
  .reports-layout-wrapper {
    display: block !important;
  }
  .reports-main-content {
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .glass-panel-premium, .non-verbal-card, .speech-metric-card, .node-content-box, .transcript-premium-panel {
    background: transparent !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: black !important;
  }
  .report-header-card {
    background: transparent !important;
    border: 1px solid #ccc !important;
    color: black !important;
  }
  h1, h2, h3, h4, span, p, td, th {
    color: black !important;
  }
  .sidebar-bottom-actions, .transcript-toolbar-premium {
    display: none !important;
  }
  .ring-bg {
    stroke: #eee !important;
  }
}

/* ==========================================================================
   EDUQuest Sidebar & Dashboard Dashboard Layout Overrides (Premium Dark Theme)
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.sidebar {
  width: 260px;
  background-color: #0b0914;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  z-index: 99;
}

.sidebar-header {
  padding: 0 2rem 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 70%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.01em;
}

.sidebar-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2rem 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
  color: white;
  background: rgba(99, 102, 241, 0.08);
  border-right-color: var(--accent-indigo-light);
}

.nav-icon {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
  color: var(--accent-indigo-light);
}

.sidebar-footer {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.btn-sidebar-practice {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sidebar-practice:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-primary);
}

.top-bar {
  height: 75px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 7, 18, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  width: 340px;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--accent-indigo-light);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.search-icon {
  color: var(--text-muted);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-notification {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-notification:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 1.5rem;
}

.user-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  letter-spacing: -0.01em;
}

.user-tag {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.user-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-indigo-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-logout-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-logout-icon:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

.main-body-container {
  padding: 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: white;
  margin-top: 4px;
  line-height: 1.1;
}

.metric-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.metric-card:hover .metric-icon-wrapper {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo-light);
  border-color: rgba(99, 102, 241, 0.3);
}

.dashboard-layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 2.25rem;
  align-items: start;
}

.profile-tip-box {
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}

.profile-tip-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-indigo);
  border-radius: 4px 0 0 4px;
}

.tag-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-right: 6px;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: white;
}

.launch-panel {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-launch-glow {
  width: auto;
  padding: 0.9rem 2.25rem;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-indigo-light) 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-launch-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, var(--accent-indigo-light) 0%, var(--accent-indigo) 100%);
}

@media (max-width: 1024px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.25rem 0;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .sidebar-header {
    padding: 0 2rem 1rem 2rem;
    border-bottom: none;
  }
  .sidebar-nav {
    flex-direction: row;
    padding: 0 2rem 0.5rem 2rem;
    overflow-x: auto;
    gap: 1rem;
  }
  .nav-item {
    padding: 0.5rem 1rem;
    border-right: none;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
  }
  .nav-item.active {
    background: transparent;
    border-bottom-color: var(--accent-indigo-light);
  }
  .sidebar-footer {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dashboard-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .top-bar {
    padding: 0 1.5rem;
  }
  .main-body-container {
    padding: 1.5rem;
  }
}

