/* MeetLingo — Feature modules UI */

.timeline-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  max-height: 160px;
  overflow-y: auto;
  flex-shrink: 0;
}

.timeline-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.timeline-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
}

.timeline-item {
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border-left: 2px solid var(--border);
}

.timeline-item.latest {
  border-left-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.timeline-item time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.timeline-src {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.timeline-tgt {
  font-size: 0.88rem;
  color: var(--tr-color);
  font-weight: 600;
  margin-top: 0.15rem;
}

.speaking-coach-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  font-size: 0.75rem;
}

.speak-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.speak-num {
  font-weight: 800;
  color: #86efac;
  font-size: 0.95rem;
}

.speak-warn {
  flex: 1;
  color: #fbbf24;
  font-size: 0.72rem;
}

.coach-level-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.coach-answer.lvl-short { border-left-color: #22c55e; }
.coach-answer.lvl-medium { border-left-color: #3b82f6; }
.coach-answer.lvl-long { border-left-color: #a855f7; }

.coach-answer-actions {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.btn-tts {
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.btn-tts:hover { border-color: rgba(59, 130, 246, 0.4); }

.mock-question {
  font-size: 1rem;
  font-weight: 600;
  color: #e9d5ff;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: 8px;
}

.mock-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

#mockPanel.active {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.meeting-card-item,
.history-meeting-item {
  position: relative;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  background: var(--surface-2);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meeting-card-item strong,
.history-meeting-item strong {
  font-size: 0.88rem;
}

.meeting-card-item span,
.history-meeting-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-start-btn { margin-top: 0.25rem; align-self: flex-start; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.modal-overlay.hidden { display: none; }

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 { font-size: 1.1rem; }

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 8px;
}

.modal-body {
  padding: 1rem 1.15rem;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
}

.modal-foot .btn-primary,
.modal-foot .btn-secondary { flex: 1; margin: 0; }

.summary-stat {
  font-size: 0.85rem;
  color: #86efac;
  margin-bottom: 0.75rem;
}

.summary-list {
  list-style: none;
  margin-bottom: 1rem;
}

.summary-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.summary-list li strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.sidebar-tabs {
  flex-wrap: wrap;
}

.sidebar-tabs .tab-btn {
  /* ui-v2.css handles desktop tab layout */
}

@media (max-width: 768px) {
  .sidebar-tabs .tab-btn {
    flex: 1 1 30%;
    font-size: 0.68rem;
    padding: 0.45rem 0.3rem;
  }
}

.mobile-bottom-nav {
  overflow-x: auto;
  justify-content: flex-start;
}

.mob-nav-btn {
  min-width: 56px;
  flex: 1 1 0;
}

body.view-coach .content-column,
body.view-meetings .content-column {
  display: none;
}

@media (min-width: 769px) {
  body.view-coach .content-column,
  body.view-meetings .content-column {
    display: flex;
  }
}

@media (max-width: 768px) {
  body.view-coach #tab-coach.active,
  body.view-meetings #tab-meetings.active {
    display: flex !important;
  }

  body.view-coach .content-column,
  body.view-meetings .content-column {
    display: none !important;
  }

  body.view-coach .footer,
  body.view-meetings .footer {
    display: none;
  }

  .timeline-section {
    max-height: 100px;
  }
}

/* Culture coach */
.culture-tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted, #94a3b8);
}

.culture-tips li { margin-bottom: 0.45rem; }

/* Reminders */
.reminders-list { margin-top: 0.75rem; }

.reminder-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

/* Phrase memory */
.phrase-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phrase-item p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #cbd5e1);
}

.phrase-actions { display: flex; gap: 0.5rem; align-items: center; }

/* STAR block */
.coach-star-block {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.coach-star-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #a5b4fc;
}

.coach-star-list {
  margin: 0 0 0.65rem;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}

/* Practice mode */
.practice-timer {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #60a5fa;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: 0.05em;
}

.practice-timer.urgent {
  color: #f87171;
  animation: practice-pulse 0.8s ease infinite;
}

@keyframes practice-pulse {
  50% { opacity: 0.65; }
}

.practice-status {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin: 0.5rem 0 0;
}

.pwa-update-banner {
  bottom: auto;
  top: 0;
  border-radius: 0 0 12px 12px;
}

/* Floating overlay */
.meetlingo-overlay {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: min(340px, calc(100vw - 32px));
  z-index: 9999;
  background: rgba(15, 22, 41, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: 0.85rem;
}

.meetlingo-overlay.hidden { display: none; }

.overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: move;
  color: #a5b4fc;
  font-size: 0.78rem;
}

.overlay-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.overlay-q {
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.overlay-src {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.overlay-tr {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.btn-overlay {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-overlay:hover { background: rgba(99, 102, 241, 0.2); color: #fff; }

.meeting-checklist { display: flex; flex-direction: column; gap: 0.35rem; }

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #cbd5e1);
  cursor: pointer;
}

.checklist-item input { accent-color: #6366f1; }

kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-family: inherit;
}
