/* CSS Variables */
:root {
  color-scheme: dark;
  --primary-color: #D4A853;
  --primary-hover: #E5BC6E;
  --secondary-color: #5C6B7D;
  --secondary-hover: #6E7F93;
  --danger-color: #E5484D;
  --danger-hover: #DC2626;
  --success-color: #30A46C;
  --warning-color: #F59E0B;
  --background: #0F1419;
  --surface: #1A1F26;
  --surface-hover: #252B33;
  --text-primary: #F7F9FB;
  --text-secondary: #8B9AAD;
  --text-muted: #5C6B7D;
  --border-color: rgba(255, 255, 255, 0.08);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Login Theme Variables */
  --login-bg-primary: #0F1419;
  --login-bg-secondary: #1A1F26;
  --login-bg-tertiary: #252B33;
  --login-surface: #2A323C;
  --login-surface-hover: #343E4A;
  --login-text-primary: #F7F9FB;
  --login-text-secondary: #8B9AAD;
  --login-text-muted: #5C6B7D;
  --login-accent: #D4A853;
  --login-accent-hover: #E5BC6E;
  --login-accent-subtle: rgba(212, 168, 83, 0.12);
  --login-border: rgba(255, 255, 255, 0.08);
  --login-border-strong: rgba(255, 255, 255, 0.15);
  --login-error: #E5484D;
  --login-error-bg: rgba(229, 72, 77, 0.12);
}

/* Light Theme */
[data-theme="light"] {
  color-scheme: light;
  --primary-color: #B8912E;
  --primary-hover: #A07D24;
  --secondary-color: #5C6B7D;
  --secondary-hover: #4A5568;
  --danger-color: #DC2626;
  --danger-hover: #B91C1C;
  --success-color: #16A34A;
  --warning-color: #D97706;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --surface-hover: #F0F1F3;
  --text-primary: #1A1F26;
  --text-secondary: #5C6B7D;
  --text-muted: #8B9AAD;
  --border-color: rgba(0, 0, 0, 0.08);
  --hover-bg: rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  --login-bg-primary: #F8F9FA;
  --login-bg-secondary: #FFFFFF;
  --login-bg-tertiary: #F0F1F3;
  --login-surface: #E8EAF0;
  --login-surface-hover: #DDE0E6;
  --login-text-primary: #1A1F26;
  --login-text-secondary: #5C6B7D;
  --login-text-muted: #8B9AAD;
  --login-accent: #B8912E;
  --login-accent-hover: #A07D24;
  --login-accent-subtle: rgba(184, 145, 46, 0.12);
  --login-border: rgba(0, 0, 0, 0.08);
  --login-border-strong: rgba(0, 0, 0, 0.15);
  --login-error: #DC2626;
  --login-error-bg: rgba(220, 38, 38, 0.08);
}

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

body {
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

/* Section fade-in transitions */
.section {
  animation: sectionFadeIn 0.2s ease-out;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Loader */
#auth-loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #d4a843;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

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

/* Layout */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 48px;
  width: 48px;
  border-radius: 10px;
  object-fit: cover;
}

/* Header hamburger - only visible on results page on mobile */
.header-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm, 0.375rem);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.header-hamburger:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.05));
}

/* Only show hamburger on results page at mobile breakpoint */
@media (max-width: 1023px) {
  body.results-active .header-hamburger {
    display: inline-flex;
  }
}

/* Header back button - mobile-first */
.header-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  margin-right: 0.5rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.header-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
  background: var(--hover-bg);
}

.header-back-btn:active {
  transform: scale(0.96);
}

.header-back-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Hide text on mobile, show on desktop */
.header-back-btn span {
  display: none;
}

@media (min-width: 768px) {
  .header-back-btn {
    padding: 0.5rem 0.75rem;
    margin-right: 0.75rem;
  }

  .header-back-btn span {
    display: inline;
  }
}

/* Touch devices - larger target */
@media (hover: none) and (pointer: coarse) {
  .header-back-btn {
    min-width: 48px;
    min-height: 48px;
  }
}

.logo-container h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.app-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.session-badge {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
  width: 100%;
}

.footer {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, calc(0.75rem + env(safe-area-inset-bottom, 0px)));
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  z-index: 10;
}

/* Sections */
.section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.section-description {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

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

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

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

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

/* Input Options */
.input-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.input-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.input-card:hover {
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.input-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.input-card p {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  font-weight: 300;
}

/* Progress */
.progress-container {
  margin: 1.5rem 0;
}

.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4A853, #E5BC6E);
  border-radius: 999px;
  width: 0%;
  transition: width 0.2s ease;
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.3);
}

/* Recording UI */
.recording-ui {
  text-align: center;
}

.recording-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
  margin-bottom: 2rem;
}

.recording-dot {
  width: 14px;
  height: 14px;
  background: var(--danger-color);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.recording-visualizer {
  height: 80px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--border-color);
}

.visualizer-bar {
  width: 3px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: height 0.1s ease;
}

/* Mic Level Indicator */
.mic-level-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.mic-level-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 60px;
}

.mic-level-track {
  flex: 1;
  height: 6px;
  background: var(--hover-bg);
  border-radius: 3px;
  overflow: hidden;
  max-width: 200px;
}

.mic-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34D399 0%, #34D399 60%, #FBBF24 80%, #F87171 100%);
  border-radius: 3px;
  transition: width 0.05s ease-out;
}

/* When level is very low (silence), show subtle indicator */
.mic-level-fill[data-level="silent"] {
  width: 2%;
  opacity: 0.3;
}

.recording-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.recording-controls .btn {
  border-radius: 999px;
  padding: 0.875rem 2rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.recording-controls .btn:active {
  transform: scale(0.97);
}

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

.recording-controls .btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recording-controls .btn-danger {
  background: linear-gradient(135deg, #D4A853, #C49A40);
  color: var(--background);
  font-weight: 600;
  border: none;
}

.recording-controls .btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #E5BC6E, #D4A853);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}

/* Hold-to-End Button (Mobile) */
.stop-btn-hold {
  position: relative;
  overflow: visible;
  min-width: 140px;
}

.stop-btn-text {
  position: relative;
  z-index: 1;
}

.stop-btn-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.stop-btn-hold.holding .stop-btn-progress {
  opacity: 1;
}

.stop-btn-progress-bg {
  stroke: rgba(255, 255, 255, 0.2);
}

.stop-btn-progress-fill {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.05s linear;
}

.stop-btn-hold.holding {
  transform: scale(1.02);
}

.stop-btn-hold.complete {
  background: linear-gradient(135deg, #34D399, #10B981) !important;
}

/* Desktop: Show "End Meeting" text, hide progress ring */
@media (hover: hover) and (pointer: fine) {
  .stop-btn-hold .stop-btn-progress {
    display: none;
  }
}

/* Mobile: Touch devices get hold-to-end */
@media (hover: none) and (pointer: coarse) {
  .stop-btn-hold {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Processing Stages */
.processing-stages {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stage.active {
  color: var(--primary-color);
  font-weight: 500;
}

.stage.complete {
  color: var(--success-color);
}

.stage-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.stage.active .stage-icon {
  background: var(--primary-color);
  color: white;
}

.stage.complete .stage-icon {
  background: var(--success-color);
  color: white;
}

/* Processing stages - vertical on small mobile */
@media (max-width: 480px) {
  .processing-stages {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .stage {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    justify-content: flex-start;
  }

  .stage.active {
    border-color: var(--primary-color);
    background: rgba(212, 168, 83, 0.08);
  }

  .stage.complete {
    border-color: var(--success-color);
    background: rgba(48, 164, 108, 0.08);
  }
}

/* Error */
.error-container {
  text-align: center;
  padding: 2rem;
}

.error-icon {
  color: var(--danger-color);
  margin-bottom: 1rem;
}

.error-container h2 {
  margin-bottom: 0.5rem;
}

.error-container p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.error-help-text {
  font-size: 0.875rem;
  color: var(--text-tertiary, #6b7280);
  background: var(--bg-tertiary, #f3f4f6);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.625rem 1rem;
  }

  .header-content {
    gap: 0.5rem;
  }

  .logo {
    height: 32px;
    width: 32px;
  }

  .app-name {
    flex: 1;
    text-align: center;
    font-size: 1rem;
  }

  .user-name {
    display: none;
  }

  .session-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
  }

  .main-content {
    padding: 1rem;
    padding-bottom: max(4.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  }

  .section {
    padding: 1.5rem;
  }

  .results-header {
    flex-direction: column;
    gap: 1rem;
  }

  .export-buttons {
    flex-wrap: wrap;
  }

  .recording-controls {
    flex-direction: column;
    width: 100%;
  }

  .recording-controls .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-name {
    font-size: 0.9375rem;
  }

  .session-info {
    display: none;
  }

  .section h3,
  .section-header-row h3 {
    font-size: 1rem;
  }

  .main-content {
    padding-bottom: 4rem;
  }
}

/* Input cards - mobile-first */
@media (max-width: 640px) {
  .input-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .input-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .input-card .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .card-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* Language option checkbox - accessible tap target */
@media (max-width: 640px) {
  .language-option {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 12px;
  }

  .checkbox-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

/* ============================================================================
   Bottom Sheet - Desktop: hidden, behaves as normal section
   ============================================================================ */
.bottom-sheet-handle { display: none; }
.bottom-sheet-backdrop { display: none; }

/* ============================================================================
   Bottom Sheet - Mobile touch devices
   ============================================================================ */
@media (hover: none) and (pointer: coarse) {
  .bottom-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .bottom-sheet-backdrop.visible {
    display: block;
    opacity: 1;
  }

  #recording-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    padding: 0.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #recording-section[style*="display: block"],
  #recording-section.sheet-open {
    transform: translateY(0);
  }

  /* Minimized state - just timer + controls */
  #recording-section.sheet-minimized {
    overflow: hidden;
  }
  #recording-section.sheet-minimized .recording-visualizer,
  #recording-section.sheet-minimized .mic-level-container,
  #recording-section.sheet-minimized .section-description,
  #recording-section.sheet-minimized .consent-status-badge,
  #recording-section.sheet-minimized h2 {
    display: none;
  }

  .bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.5rem;
    cursor: grab;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .bottom-sheet-handle-bar {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  /* Light theme handle */
  [data-theme="light"] .bottom-sheet-handle-bar {
    background: rgba(0, 0, 0, 0.2);
  }

  /* Recording controls row in bottom sheet */
  #recording-section .recording-controls {
    flex-direction: row;
    gap: 0.75rem;
    padding-bottom: 0;
  }

  /* Ensure recording buttons meet 52px on touch */
  .recording-controls .btn { min-height: 52px; }
}

/* ============================================================================
   Standalone/PWA display support
   ============================================================================ */
@media (display-mode: standalone) {
  .header { padding-top: env(safe-area-inset-top, 0px); }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  }
}

/* ============================================================================
   Print Styles
   ============================================================================ */
@media print {
  /* Hide non-essential UI elements */
  .header,
  .footer,
  .sidebar,
  #results-sidebar,
  #sidebar-backdrop,
  .nav,
  .btn,
  .modal,
  .modal-overlay,
  #consent-modal,
  #export-modal,
  #delete-modal,
  .export-dropdown,
  #export-dropdown,
  .export-dropdown-btn,
  #input-section,
  #processing-section,
  #upload-section,
  #recording-section,
  #completion-section,
  #error-section,
  #login-section,
  #onboarding-section,
  .toast-container,
  .dropdown-chevron,
  .session-info,
  #session-info,
  .user-menu,
  #user-menu,
  .tabs,
  .tab,
  .results-header,
  .header-hamburger,
  .sidebar-hamburger,
  .copy-section-btn,
  .copy-all-btn,
  .summary-timestamp,
  .open-window-btn,
  .transcript-search-container,
  #email-sent-banner,
  .action-checkbox {
    display: none !important;
  }

  /* Reset page background and colors */
  html, body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }

  #app {
    background: white !important;
  }

  /* Show results section */
  #results-section {
    display: block !important;
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Show all tab panels for print */
  .tab-panel {
    display: block !important;
    background: white !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
    box-shadow: none !important;
  }

  .tab-content {
    background: white !important;
  }

  /* Main content reset */
  .main-content,
  .results-container,
  .results-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }

  /* Section styling for print */
  .section,
  .summary-section,
  .actions-section,
  .decisions-section,
  .transcript-section {
    background: white !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    margin: 0 0 1rem !important;
    page-break-inside: avoid;
  }

  /* Typography for print */
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }

  .section h2,
  .section h3,
  .section-header-row h3 {
    color: black !important;
    border-bottom: 1px solid #ccc !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Text colors for print */
  p, li, span, div {
    color: black !important;
  }

  .text-secondary,
  .text-muted,
  [class*="text-secondary"],
  [class*="text-muted"] {
    color: #555 !important;
  }

  /* List styling */
  ul, ol {
    padding-left: 1.5rem !important;
  }

  li {
    margin-bottom: 0.25rem !important;
  }

  /* Action items and decisions cards */
  .action-card,
  .decision-card {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    page-break-inside: avoid;
  }

  .action-card-top,
  .decision-card-top {
    color: black !important;
  }

  .action-card-meta,
  .decision-card-meta {
    color: #555 !important;
    font-size: 10pt !important;
  }

  .item-task,
  .item-decision {
    color: black !important;
    font-weight: 500 !important;
  }

  /* Priority and due badges for print */
  .priority-badge,
  .due-badge,
  .assignee-info {
    color: #555 !important;
    background: transparent !important;
    border: none !important;
  }

  .priority-dot {
    display: none !important;
  }

  .assignee-avatar {
    display: none !important;
  }

  /* Transcript styling for print */
  .transcript-segment {
    padding: 0.25rem 0 !important;
    border-bottom: 1px solid #eee !important;
    page-break-inside: avoid;
  }

  .transcript-speaker {
    font-weight: bold !important;
    color: black !important;
  }

  .transcript-time {
    color: #666 !important;
    font-size: 9pt !important;
  }

  .transcript-text {
    color: black !important;
  }

  /* Overview cards - hide for print, content shown in tab panels */
  .overview-cards,
  .results-cards {
    display: none !important;
  }

  /* Page breaks */
  .transcript-section,
  #tab-transcript {
    page-break-before: always !important;
  }

  /* Speaker stats section */
  #tab-speakers {
    page-break-before: always !important;
  }

  .speaker-item,
  .speaker-card {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    background: white !important;
    margin-bottom: 0.5rem !important;
    padding: 0.5rem !important;
  }

  /* Key points section */
  #key-points-section {
    border: none !important;
    background: white !important;
  }

  #key-points-section.collapsed .key-points-content {
    display: block !important;
    max-height: none !important;
  }

  .key-points-toggle {
    display: none !important;
  }

  /* Follow-ups section */
  #follow-ups-section {
    background: white !important;
    border: none !important;
  }

  /* Links */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  /* Hide icons that don't make sense in print */
  .decision-icon svg,
  .card-icon svg {
    display: none !important;
  }
}
