/* Zoom Intelligence Dashboard - Styles */
/* Clean, Apple-inspired minimal design */

:root {
  --primary: #E63946;
  --primary-hover: #c62d39;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --text: #1a1a2e;
  --text-secondary: #6c757d;
  --border: #e9ecef;
  --success: #28a745;
  --info: #007bff;
  --warning: #ffc107;
  --danger: #dc3545;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--warning);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  display: none;
}

.demo-badge.visible {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--border);
}

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

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b02a37;
}

/* Page Title */
.page-title {
  padding: 40px 0 32px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Join Meeting Section */
.join-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.join-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.join-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.join-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.join-form input::placeholder {
  color: var(--text-secondary);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active {
  background: #d4edda;
  color: #155724;
}

.badge-completed {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-processing {
  background: #fff3cd;
  color: #856404;
}

.badge-failed {
  background: #f8d7da;
  color: #721c24;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-active .badge-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Meetings Table */
.meetings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.meetings-table thead {
  background: var(--bg-secondary);
}

.meetings-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.meetings-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.meetings-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.meetings-table tbody tr:hover {
  background: var(--bg-secondary);
}

.meeting-title {
  font-weight: 500;
  color: var(--text);
}

.meeting-platform {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: capitalize;
}

.meeting-meta {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
}

/* Meeting Detail Page */
.meeting-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.meeting-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.meeting-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.meeting-meta-row {
  display: flex;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.meeting-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Summary Card */
.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.summary-card h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.summary-card p {
  font-size: 15px;
  line-height: 1.7;
}

/* Panels Grid */
.panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.panel-count {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.panel-body {
  padding: 16px 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* Action Items */
.action-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.action-item:last-child {
  border-bottom: none;
}

.action-item-text {
  font-size: 14px;
  margin-bottom: 6px;
}

.action-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.action-item-assignee {
  font-weight: 500;
  color: var(--primary);
}

/* Decisions */
.decision-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.decision-item:last-child {
  border-bottom: none;
}

.decision-item-text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.decision-item-context {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Insights */
.insight-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.insight-item:last-child {
  border-bottom: none;
}

.insight-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Transcript */
.transcript-section {
  margin-top: 32px;
}

.transcript-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.transcript-viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 600px;
  overflow-y: auto;
  padding: 20px;
}

.transcript-segment {
  padding: 8px 0;
  display: flex;
  gap: 12px;
}

.transcript-time {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 60px;
  padding-top: 2px;
}

.transcript-speaker {
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  padding-top: 2px;
}

.transcript-text {
  font-size: 14px;
  flex: 1;
}

/* Speaker Colors */
.speaker-0 { color: #E63946; }
.speaker-1 { color: #2a9d8f; }
.speaker-2 { color: #e76f51; }
.speaker-3 { color: #264653; }
.speaker-4 { color: #8338ec; }
.speaker-5 { color: #06d6a0; }

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-top: 24px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .page-title {
    padding: 24px 0 20px;
  }

  .page-title h1 {
    font-size: 22px;
  }

  .join-form {
    flex-direction: column;
  }

  .join-form input,
  .join-form .btn {
    width: 100%;
  }

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

  .meetings-table {
    display: block;
    overflow-x: auto;
  }

  .meetings-table th:nth-child(4),
  .meetings-table td:nth-child(4) {
    display: none;
  }

  .meeting-meta-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .transcript-segment {
    flex-direction: column;
    gap: 4px;
  }

  .transcript-time,
  .transcript-speaker {
    min-width: unset;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .meetings-table th:nth-child(3),
  .meetings-table td:nth-child(3) {
    display: none;
  }
}
