/**
 * Simnopsis AI - Cosmic Theme CSS
 * A modern, dark theme with glassmorphism effects and professional styling
 */

/* ============================================================================
   RESET AND BASE STYLES
   ============================================================================ */

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

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0e27;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================================
   BACKGROUND AND CANVAS
   ============================================================================ */

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

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

.logo-title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.logo-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  transition: color 0.3s;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  border-radius: 1px;
}

/* ============================================================================
   LAYOUT CONTAINERS
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.main-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

/* ============================================================================
   WHISPER TOGGLE FLOATING PANEL
   ============================================================================ */

.whisper-toggle-hero {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  background: rgba(10, 20, 40, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.whisper-toggle-hero.collapsed {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.whisper-toggle-hero.expanded {
  transform: scale(1);
  opacity: 1;
}

.whisper-toggle-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem 1rem 0.25rem;
  min-width: 280px;
  transition: all 0.3s;
  z-index: 1;
}

.whisper-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.mode-icon-display {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.mode-icon-display:hover {
  transform: scale(1.1);
}

.whisper-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.whisper-close-btn:hover {
  background: rgba(255, 59, 48, 0.3);
  border-color: rgba(255, 59, 48, 0.5);
  color: #fff;
}

.whisper-collapse-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10001;
  padding: 0;
}

.whisper-collapse-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
  transition: all 0.3s;
}

.whisper-collapse-btn:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 30px rgba(59, 130, 246, 0.6));
}

.whisper-toggle-hero.collapsed + .whisper-collapse-btn {
  opacity: 1;
  pointer-events: all;
}

.whisper-toggle-hero.expanded + .whisper-collapse-btn {
  opacity: 0;
  pointer-events: none;
}

.whisper-toggle-hero:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

/* ============================================================================
   HOMEPAGE SPECIFIC STYLES
   ============================================================================ */

.hero-section {
  text-align: center;
  margin: 3rem 0 4rem;
  position: relative;
  z-index: 10;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-ai-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),
               0 4px 8px rgba(0, 0, 0, 0.6),
               0 8px 16px rgba(0, 0, 0, 0.4),
               2px 2px 0 rgba(0, 0, 0, 0.9),
               -2px -2px 0 rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),
               0 4px 8px rgba(0, 0, 0, 0.6),
               1px 1px 0 rgba(0, 0, 0, 0.9),
               -1px -1px 0 rgba(0, 0, 0, 0.9);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upload-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(180%);
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box:hover,
.upload-box.dragover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

.upload-icon {
  color: #3b82f6;
  margin-bottom: 1rem;
}

.upload-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Upload Tabs */
.upload-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.upload-tab {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* File upload tab - Blue when active */
.upload-tab:nth-child(1).active {
  background: rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3),
              0 0 30px rgba(59, 130, 246, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* URL tab - Always green */
.upload-tab:nth-child(2) {
  background: rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-tab:nth-child(2):hover {
  background: rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.upload-tab:nth-child(2).active {
  background: rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3),
              0 0 30px rgba(16, 185, 129, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* URL Upload Box */
.url-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.url-input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.url-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.url-input:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.url-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.url-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.url-supported {
  color: rgba(16, 185, 129, 0.9);
  font-weight: 500;
}

.url-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: rgba(252, 211, 77, 0.95);
  text-align: left;
}

.url-warning svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.url-warning span {
  font-size: 0.8rem;
  line-height: 1.4;
}

.process-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  padding: 0.85rem 2rem;
  background: rgba(180, 140, 10, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #d4a574;
  border: 1px solid rgba(180, 140, 10, 0.4);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(180, 140, 10, 0.2),
              0 0 20px rgba(180, 140, 10, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.process-btn:hover {
  background: rgba(200, 155, 15, 0.28);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  color: #e8c090;
  border-color: rgba(200, 155, 15, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(200, 155, 15, 0.25),
              0 0 30px rgba(200, 155, 15, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: spring-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.progress-text {
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.features-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(180%);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.5rem;
  color: #10b981;
  font-weight: bold;
}

.feature-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================================================
   CARDS AND COMPONENTS
   ============================================================================ */

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.section-left,
.section-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Dashboard Cards */
.dropdown-card,
.stat-card,
.files-card,
.summary-card,
.highlights-card,
.chart-card,
.analytics-card,
.hashtags-card,
.metadata-card,
.search-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.dropdown-card:hover,
.stat-card:hover,
.files-card:hover,
.summary-card:hover,
.highlights-card:hover,
.chart-card:hover,
.analytics-card:hover,
.hashtags-card:hover,
.metadata-card:hover,
.search-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.search-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
  border: 1.5px solid rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4));
  border-color: rgba(96, 165, 250, 0.8);
  color: #dbeafe;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-results {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.search-result-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.9rem;
}

.search-result-text .highlight {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

.search-result-timestamp {
  color: rgba(59, 130, 246, 0.8);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.search-no-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 2rem;
}

.search-loading {
  text-align: center;
  color: rgba(59, 130, 246, 0.8);
  padding: 1rem;
  font-style: italic;
}

.search-results-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  text-align: center;
}

.search-result-accordion {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-result-accordion:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 1rem;
}

.search-result-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-preview {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.4;
}

.search-result-preview .highlight {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

.search-result-toggle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.search-result-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.search-result-content.collapsed {
  max-height: 0;
  padding: 0 1rem;
}

.dropdown-card label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.dropdown-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
  cursor: pointer;
}

.dropdown-card select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.dropdown-card select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.files-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.files-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ============================================================================
   FILE DOWNLOAD BUTTONS
   ============================================================================ */

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

.file-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 80px;
}

.file-btn span {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* PDF Button */
.pdf-btn {
  background: linear-gradient(135deg, #8B2E3E, #5C1F28);
  box-shadow: 0 4px 12px rgba(139, 46, 62, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 46, 62, 0.5);
  filter: brightness(1.25);
}

/* DOCX Button */
.docx-btn {
  background: linear-gradient(135deg, #1E3A8A, #1E40AF);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.docx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
  filter: brightness(1.25);
}

/* TXT Button */
.txt-btn {
  background: linear-gradient(135deg, #755A3F, #4D3A29);
  box-shadow: 0 4px 12px rgba(117, 90, 63, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.txt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(117, 90, 63, 0.5);
  filter: brightness(1.25);
}

/* SRT Button */
.srt-btn {
  background: linear-gradient(135deg, #047857, #065F46);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.srt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.5);
  filter: brightness(1.25);
}

/* MP3 Button */
.mp3-btn {
  background: linear-gradient(135deg, #5B21B6, #4C1D95);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mp3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.5);
  filter: brightness(1.25);
}

/* ZIP Button */
.zip-btn {
  background: linear-gradient(135deg, #3f3f46, #2a2a2e);
  box-shadow: 0 4px 12px rgba(39, 39, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

.zip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 39, 42, 0.5);
  filter: brightness(1.2);
}

/* ============================================================================
   SUMMARY CARD CONTENT
   ============================================================================ */

.summary-text {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}

.summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============================================================================
   ACTION BUTTONS
   ============================================================================ */

.action-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
  border: 1.5px solid rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4));
  border-color: rgba(96, 165, 250, 0.8);
  color: #dbeafe;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.action-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.action-btn:hover:before {
  left: 100%;
}

/* ============================================================================
   BACK TO HOME BUTTON
   ============================================================================ */

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.back-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4),
              0 0 40px 10px rgba(59, 130, 246, 0.2);
  animation: spring-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Variant: Green */
.back-btn--green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.back-btn--green:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.4),
              0 0 40px 10px rgba(16, 185, 129, 0.2);
}

@keyframes spring-bounce {
  0%, 100% { transform: translateY(-2px) scale(1.02); }
  50% { transform: translateY(-4px) scale(1.05); }
}

/* ============================================================================
   ACCURACY BADGE
   ============================================================================ */

.accuracy-badge {
  background: linear-gradient(135deg, #755A3F, #4D3A29);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(117, 90, 63, 0.5), 0 0 20px rgba(117, 90, 63, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.accuracy-badge:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.accuracy-badge:hover:before {
  left: 100%;
}

/* ============================================================================
   ACCORDION COMPONENTS
   ============================================================================ */

.accordion-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: nowrap;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

.accordion-icon.collapsed {
  transform: rotate(-90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-content.collapsed {
  max-height: 0;
}

.accordion-content:not(.collapsed) {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Summary text scroll: prevent clipping of long content */
.summary-card .summary-text {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: scale(1.05);
}

/* ============================================================================
   WHISPER TOGGLE
   ============================================================================ */

.whisper-toggle {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.whisper-toggle:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.whisper-toggle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.whisper-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mode-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-invisible {
  color: rgba(255, 255, 255, 0.3);
}

/* GPT Model Selector */
.gpt-model-selector {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 110px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.75rem;
}

.gpt-model-selector:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.gpt-model-selector:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.gpt-model-selector option {
  background: #1a1a2e;
  color: white;
  padding: 0.5rem;
}

/* ============================================================================
   CHARTS AND VISUALIZATIONS
   ============================================================================ */

.chart-container {
  position: relative;
  height: 300px;
  margin: 1rem 0;
}

.analytics-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.analytics-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 100px;
  font-weight: 500;
}

.analytics-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.analytics-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px currentColor;
}

.analytics-value {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 45px;
  text-align: right;
}

/* ============================================================================
   HASHTAGS
   ============================================================================ */

.hashtag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hashtag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   NOTIFICATIONS
   ============================================================================ */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification-success {
  background: #10B981;
}

.notification-error {
  background: #EF4444;
}

.notification-info {
  background: #3B82F6;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.no-data {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* ============================================================================
   SNIPPET CARDS
   ============================================================================ */

.snippet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.snippet-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.snippet-theme-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid;
}

.snippet-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.snippet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.snippet-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.snippet-score {
  color: #F59E0B;
  font-weight: 600;
}

.snippet-quote {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.snippet-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
  border: 1.5px solid rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4));
  border-color: rgba(96, 165, 250, 0.8);
  color: #dbeafe;
  transform: translateY(-1px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-brand {
  display: block;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 400;
}

.footer-logo {
  margin-top: 1.5rem;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.footer-logo img:hover {
  filter: brightness(1.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

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

  .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8),
               0 1px 2px rgba(0, 0, 0, 0.9);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .logo-title {
    font-size: 1.5rem;
  }
  
  .logo-tagline {
    display: none;
  }
  
  .nav-center {
    gap: 1rem;
  }
  
  .whisper-toggle {
    right: 1rem;
    padding: 1rem;
  }
  
  .file-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .file-btn {
    padding: 1rem 0.5rem;
    min-height: 70px;
    font-size: 0.75rem;
  }
  
  .file-btn span {
    font-size: 0.65rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-ai-icon {
    width: 150px;
    height: 150px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .whisper-toggle-hero {
    bottom: 20px;
    right: 20px;
    transform-origin: bottom right;
  }
  
  .whisper-toggle-content {
    padding: 0.8rem 1rem;
    min-width: 240px;
  }
  
  .whisper-collapse-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .file-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .file-btn {
    padding: 0.75rem 0.4rem;
    min-height: 65px;
    font-size: 0.7rem;
  }
  
  .file-btn span {
    font-size: 0.6rem;
  }
  
  .summary-actions {
    gap: 0.5rem;
  }
  
  .action-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-content:not(.collapsed) {
    padding: 0 1rem 1rem;
  }
  
  .whisper-toggle-hero {
    bottom: 15px;
    right: 15px;
    transform-origin: bottom right;
  }
  
  .whisper-toggle-content {
    padding: 0.7rem 0.9rem;
    min-width: 220px;
  }
  
  .whisper-collapse-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 0.75rem 0.5rem;
  }
  
  .stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }
}


/* ============================================================================
   HIGHLIGHT GENERATION PROGRESS
   ============================================================================ */

.highlight-progress {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.highlight-progress-status {
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
}

.highlight-progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}

.highlight-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #eab308, #fbbf24, #fde047);
  border-radius: 5px;
  transition: width 0.1s linear;
  width: 0%;
  position: relative;
  overflow: hidden;
}

.highlight-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.highlight-progress-percent {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
  text-align: center;
}

/* ============================================================================
   SNIPPET CARDS WITH AUDIO PLAYER
   ============================================================================ */

.snippet-card {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.snippet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.snippet-theme-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  margin-bottom: 0.75rem;
}

.snippet-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.snippet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.snippet-time {
  color: #60a5fa;
  font-weight: 500;
}

.snippet-duration {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid currentColor;
}

.snippet-score {
  color: #fbbf24;
  font-weight: 600;
}

.snippet-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.snippet-audio-player {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 2px;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.waveform-bar:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scaleY(1.1);
}

.waveform-bar:active {
  transform: scaleY(0.95);
}

.waveform-bar.playing {
  background: currentColor;
  opacity: 0.8;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.audio-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px currentColor;
}

.audio-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.snippet-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-primary {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-radius: 8px;
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.4));
  border-color: rgba(96, 165, 250, 0.8);
  color: #dbeafe;
  transform: translateY(-1px);
}

.no-data {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 2rem;
}


/* ============================================================================
   METADATA DISPLAY
   ============================================================================ */

.metadata-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.metadata-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.metadata-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.metadata-value {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  text-align: center;
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.hashtag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: default;
}

.hashtag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px currentColor;
}

/* ============================================================================
   MIND MAP STYLES
   ============================================================================ */

.mindmap-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.mindmap-card h3 {
  margin-bottom: 1.5rem;
}

.mindmap-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mindmap-container {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

/* Full Width Mind Map Section */
.mindmap-full-section {
  width: 100%;
  margin: 3rem 0 2rem 0;
  padding: 0;
}

.mindmap-full-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mindmap-full-card h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.mindmap-container-full {
  min-height: 600px;
  height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 14, 39, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mindmap-container svg {
  width: 100%;
  height: 100%;
}

.mindmap-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.mindmap-node:hover {
  filter: brightness(1.3);
}

.mindmap-node circle {
  stroke-width: 2px;
  transition: all 0.3s ease;
}

.mindmap-node:hover circle {
  stroke-width: 4px;
  filter: drop-shadow(0 0 8px currentColor);
}

.mindmap-node text {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: #ffffff;
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mindmap-link {
  fill: none;
  stroke-width: 2px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mindmap-link:hover {
  opacity: 1;
  stroke-width: 3px;
}

.mindmap-legend {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.mindmap-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transform: translate(-50%, -120%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mindmap-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.mindmap-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mindmap-container {
    min-height: 300px;
  }
  
  .mindmap-node text {
    font-size: 10px;
  }
  
  .mindmap-legend {
    font-size: 0.65rem;
    padding: 0.75rem;
  }
}

/* ============================================================================
   INSIGHTS PAGE SPECIFIC STYLES
   ============================================================================ */

/* Back Button */
.back-btn {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.nav-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn-right {
  margin-left: auto;
}

/* Controls Card */
.controls-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.controls-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Duration Buttons */
.duration-section {
  margin-bottom: 1.5rem;
}

.duration-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

/* Base duration button styles */
.duration-btn {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Blue buttons: 30s, 2min, 4min (odd positions) */
.duration-btn:nth-child(odd) {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.duration-btn:nth-child(odd):hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.duration-btn:nth-child(odd).active {
  background: rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(59, 130, 246, 0.7);
  color: #dbeafe;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5),
              0 0 30px rgba(59, 130, 246, 0.25);
}

/* Green buttons: 1min, 3min, 5min (even positions) */
.duration-btn:nth-child(even) {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.duration-btn:nth-child(even):hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.duration-btn:nth-child(even).active {
  background: rgba(34, 197, 94, 0.35);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(34, 197, 94, 0.7);
  color: #dcfce7;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5),
              0 0 30px rgba(34, 197, 94, 0.25);
}

/* Search Bar */
.search-section {
  margin-bottom: 1.5rem;
}

.keyword-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.keyword-search:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2),
              0 4px 20px rgba(0, 0, 0, 0.3);
}

.keyword-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.generate-btn {
  background: rgba(234, 179, 8, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.5);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.3),
              0 0 30px rgba(234, 179, 8, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.generate-btn:hover {
  background: rgba(234, 179, 8, 0.35);
  border-color: rgba(234, 179, 8, 0.7);
  color: #fde047;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(234, 179, 8, 0.4),
              0 0 40px rgba(234, 179, 8, 0.25);
}

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

.refresh-btn {
  background: rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3),
              0 0 30px rgba(16, 185, 129, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.refresh-btn:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.7);
  color: #10b981;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4),
              0 0 40px rgba(16, 185, 129, 0.25);
}

/* Highlights Display */
.highlights-display {
  margin-top: 2rem;
}

.snippets-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Responsive Design for Insights Page */
@media (max-width: 768px) {
  .nav-btn-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .duration-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .duration-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .generate-btn,
  .refresh-btn {
    width: 100%;
    text-align: center;
  }
  
  .snippet-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .snippet-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .snippet-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .controls-card {
    padding: 1.5rem;
  }
  
  .duration-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .duration-btn {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .generate-btn,
  .refresh-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .snippet-card {
    padding: 1rem;
  }
  
  .audio-waveform {
    height: 50px;
  }
}


/* ============================================================================
   TITLES CARD STYLES
   ============================================================================ */

.titles-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem 2rem 1rem 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.titles-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Titles header group: align Top 7 badge beside refresh */
.titles-header-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Make Top 7 badge compact when inline in header */
.titles-header-group .titles-sub {
  margin: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Compact refresh button scoped to titles card */
.titles-card .refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.titles-card .refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
}

.titles-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.title-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.title-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.title-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Subtext badge under titles header */
.titles-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem auto 0.75rem;
}

/* Legend styles */
.titles-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  border: 1px solid;
}

/* Optional: keep swatch styles if needed elsewhere */
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-label { opacity: 0.9; }

.title-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

/* Rating color classes */
.rating-low {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.rating-medium {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.rating-high {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.rating-excellent {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}


/* ============================================================================
   METADATA CARD SPACING FIX
   ============================================================================ */

.metadata-card h3 {
  margin-bottom: 1.5rem;
}

.metadata-content {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.metadata-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.metadata-full {
  width: 100%;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Ensure equal-looking tiles across devices */
.metadata-grid .metadata-item {
  min-height: 88px;
}

.metadata-half {
  width: 100%;
}

.metadata-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   TIMELINE MIND MAP STYLES
   ============================================================================ */

.timeline-container {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  animation: timelineSlideUp 0.8s ease-out;
}

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

.timeline-line {
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 6px;
  background: linear-gradient(to right, #8b7355 0%, #d4af37 50%, #8b7355 100%);
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  bottom: -2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.45), transparent);
  background-size: 200% 100%;
  animation: timelineShimmer 3s linear infinite;
  border-radius: 3px;
}

@keyframes timelineShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.timeline-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 280px;
  animation: timelineFadeInUp 0.8s ease-out both;
}

.timeline-point:nth-child(1) { animation-delay: 0.25s; }
.timeline-point:nth-child(2) { animation-delay: 0.4s; }
.timeline-point:nth-child(3) { animation-delay: 0.55s; }
.timeline-point:nth-child(4) { animation-delay: 0.7s; }
.timeline-point:nth-child(5) { animation-delay: 0.85s; }

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

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-color, #2c5f2d);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
  transform: translateY(-5px);
}

.timeline-card {
  margin-top: 12px;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  color: #2c5f2d;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 14px 16px;
  text-align: center;
}

.timeline-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c5f2d;
  margin-bottom: 4px;
}

.timeline-card .card-subtitle {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}

.timeline-card .card-desc {
  font-size: 0.85rem;
  color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* TRANSFORM: Horizontal → Vertical timeline */
  .timeline-container { padding: 32px 20px; }
  .timeline-line {
    top: 20px;
    bottom: 20px;
    left: 30px;
    right: auto;
    width: 4px; /* ⭐ Now vertical! */
    height: auto;
    transform: none;
    background: linear-gradient(to bottom, #8b7355 0%, #d4af37 50%, #8b7355 100%);
  }
  
  /* Stack points vertically */
  .timeline-wrapper { flex-direction: column; gap: 40px; }
  
  /* Change point layout to horizontal */
  .timeline-point { flex-direction: row; align-items: flex-start; max-width: none; }
  
  .timeline-dot { margin-bottom: 0; margin-right: 20px; transform: none; }
  
  /* Flip the arrow direction */
  .timeline-card { text-align: left; width: calc(100% - 60px); position: relative; }
  .timeline-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px; /* Arrow points left now */
    transform: none;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid rgba(255, 255, 255, 0.92);
    border-left: none;
  }
}

/* ============================================================================
   SVG BADGE MIND MAP
   ============================================================================ */
.mindmap-container-full {
  position: relative;
  min-height: 420px;
}

.svg-mindmap {
  width: 100%;
  height: auto;
  display: block;
}

.mindmap-link {
  fill: none;
  stroke: rgba(255,255,255,0.28);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.mindmap-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mind-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.mind-badge.main {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 22px;
}

.mind-badge.sub {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 18px;
  opacity: 0.95;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .mind-badge { 
    max-width: 120px; 
    font-size: 0.85rem;
  }
  .mind-badge.sub {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  .mindmap-container-full {
    min-height: 360px;
  }
}

/* Mobile: stack badges vertically; hide SVG lines to avoid overlap */
@media (max-width: 768px) {
  .svg-mindmap { display: none; }
  .mindmap-container-full {
    min-height: auto;
    padding: 1rem;
  }
  .mindmap-badges {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    align-items: center;
  }
  .mind-badge {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    max-width: 90%;
    width: auto;
    text-align: center;
    font-size: 0.9rem;
  }
  .mind-badge.main {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
  }
  .mind-badge.sub {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .mindmap-container-full {
    padding: 0.5rem;
  }
  .mindmap-badges {
    gap: 8px;
  }
  .mind-badge {
    max-width: 95%;
    font-size: 0.85rem;
  }
  .mind-badge.main {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
  .mind-badge.sub {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}

/* Minimal SVG W-mind map styles */
.mindmap-container { min-height: 460px; }
.mindmap-container .mindmap-svg { width: 100%; height: auto; display: block; }
.mindmap-svg path { stroke-linecap: round; }
.mindmap-svg rect { stroke-linejoin: round; }
.mindmap-svg text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 14px;
  fill: rgba(229, 231, 235, 1);
}

/* Additional mobile improvements for mind map */
@media (max-width: 768px) {
  .hashtags-card .mindmap-badges {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .hashtags-card .mindmap-badges::-webkit-scrollbar {
    height: 4px;
  }
  
  .hashtags-card .mindmap-badges::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  
  .hashtags-card .mindmap-badges::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
}

@media (max-width: 480px) {
  /* Improve touch targets for mobile */
  .mind-badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  
  /* Ensure proper spacing on very small screens */
  .mindmap-badges {
    padding: 0.75rem 0.5rem;
  }
}
