/* Modern Professional Image Metadata App */
:root {
  /* Light Theme - Elegant & Minimal */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.02);
  
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-strong: #9ca3af;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  
  --secondary: #6b7280;
  --secondary-hover: #4b5563;
  
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* removed custom view-page-only styles to keep homepage styling consistent */

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --border-light: #334155;
  --border-medium: #475569;
  --border-strong: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #1e1b4b;
  
  --secondary: #94a3b8;
  --secondary-hover: #cbd5e1;
}

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

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

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease, padding-top 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-top: 80px; /* Account for fixed header height */
}

body.header-scrolled {
  padding-top: 60px; /* Smaller padding when header is scrolled */
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.header.scrolled .logo {
  font-size: 1.25rem;
}

.header.scrolled .logo-icon {
  width: 28px;
  height: 28px;
}

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

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

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.hamburger-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.hamburger-btn i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

/* Mobile Navigation Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-mobile.active .nav-mobile-content {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}

.nav-mobile-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-mobile-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-close:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.nav-mobile-links {
  flex: 1;
  padding: 1rem 0;
  opacity: 1 !important;
  visibility: visible !important;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.nav-mobile-links .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-light);
  min-height: 44px;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent;
}

.nav-mobile-links .nav-link:hover {
  background: var(--bg-overlay);
  color: var(--primary);
}

.nav-mobile-links .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.nav-mobile-links .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  opacity: 1 !important;
}

.nav-mobile-links .nav-text {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary) !important;
  opacity: 1 !important;
}

/* Theme toggle as navigation item */
.theme-toggle-nav {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.theme-toggle-nav:hover {
  background: var(--bg-overlay);
  color: var(--primary);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* Mobile menu body lock */
body.mobile-menu-open {
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 40px;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-link.loading {
  opacity: 0.7;
  pointer-events: none;
}

.nav-link.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.nav-link i {
  font-size: 0.875rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: bold;
}

/* Ensure custom logo image scales nicely inside the logo container */
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.theme-toggle {
  display: none; /* Hidden since theme toggle is now in navigation */
}


/* Main Container */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem 2rem 1.5rem;
  min-height: calc(100vh - 80px);
  flex: 1;
  overflow-x: hidden;
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tab:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.tab.active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Upload Section */
.upload-section {
  background: var(--bg-card);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

/* Action Selection */
.action-selection {
  margin-bottom: 2rem;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.action-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.action-card:hover .action-icon {
  /* Keep icon visible, avoid solid fill */
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--primary);
  transform: scale(1.06);
}

.action-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.action-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.action-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 2rem;
}

.upload-section:hover {
  border-color: var(--primary);
  background: var(--bg-overlay);
}

.upload-section.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.02);
}

.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.02);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-hint {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.upload-hint-secondary {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  font-style: italic;
}

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

/* File Input Styling */
.file-input-wrapper {
  position: relative;
  display: inline-block;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.file-input-label:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* URL Input */
.url-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.url-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-tertiary:hover:not(:disabled) {
  background: var(--bg-overlay);
  color: var(--text-primary);
  transform: translateY(-1px);
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

/* Single Column Layout */
.single-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: none;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Image Preview */
.image-preview {
  text-align: center;
  margin-bottom: 1.5rem;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

/* PDF Preview */
.pdf-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-medium);
  min-height: 300px;
}

.pdf-icon {
  font-size: 4rem;
  color: var(--error);
  margin-bottom: 1rem;
}

.pdf-info {
  text-align: center;
}

.pdf-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pdf-info p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.pdf-info .file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tiff-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-medium);
  min-height: 300px;
}

.tiff-icon {
  font-size: 4rem;
  color: var(--warning);
  margin-bottom: 1rem;
}

.tiff-info {
  text-align: center;
}

.tiff-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tiff-info p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.tiff-info .file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tiff-note {
  font-style: italic;
  color: var(--warning);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.loading-tiff {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* File Info */
.file-info {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  font-size: 13px;
}

.file-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.file-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.file-meta-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* Navigation */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nav-counter {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

/* Thumbnail Strip */
.thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.thumbs::-webkit-scrollbar {
  height: 6px;
}

.thumbs::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.thumbs::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.thumbs img.active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.thumb-placeholder {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 1.5rem;
}

.thumb-placeholder:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.thumb-placeholder.active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 0 3px var(--primary-light);
  background: var(--primary-light);
  color: var(--primary);
}

/* Structured View */
.structured-view {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.structured-header {
  background: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.structured-title {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.structured-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.structured-toggle:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.structured-content {
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.metadata-group {
  margin-bottom: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.essential-group {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.essential-item {
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-light);
}

.group-header:hover {
  background: var(--bg-overlay);
}

.group-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.group-icon {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.group-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.group-count {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.group-content {
  padding: 1rem 1.5rem;
}

/* Collapsible groups */
.metadata-group.collapsed .group-content {
  display: none;
}

.metadata-group .group-header {
  cursor: pointer;
}

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

/* Analysis badges and grids */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.badge.completeness {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.badge.risk-low {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge.risk-medium {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge.risk-high {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.coverage-grid .kv-item {
  margin: 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.kv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.kv-item:hover {
  background: var(--bg-overlay);
  border-color: var(--border-medium);
}

.kv-item:last-child {
  margin-bottom: 0;
}

.kv-key {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  flex: 0 0 40%;
  margin-right: 1rem;
}

.kv-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  line-height: 1.4;
  flex: 1;
  text-align: right;
}

.hex-dump {
  background: var(--bg-overlay);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.hex-header {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 11px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hex-content {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.3;
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Accordion */
.accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-header {
  background: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: var(--bg-overlay);
}

.accordion-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-icon {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1.5rem;
  background: var(--bg-card);
  display: none;
}

.accordion-content.active {
  display: block;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  cursor: pointer;
}

/* GPS Helpers */
.gps-helpers {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gps-helper {
  padding: 0.5rem 1rem;
  font-size: 12px;
  border-radius: var(--radius-md);
}

/* Histograms */
.histogram-section {
  margin-top: 1.5rem;
}

.histogram-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.histogram-toggle:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.histogram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.histogram-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.histogram-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.histogram-canvas {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
}

/* Actions */
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

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

.mode-actions.hidden {
  display: none;
}

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.export-btn {
  padding: 0.5rem 1rem;
  font-size: 12px;
  border-radius: var(--radius-md);
}

/* Batch Processing */
.batch-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.batch-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Before/After Diff */
.diff-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.diff-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diff-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

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

.remover-option {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.remover-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.remover-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.remover-option-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.remover-option-title {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.remover-option-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.impact-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.impact-note i {
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}

/* Risk Badges */
.risk-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.risk-badge.high-risk {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.risk-badge.medium-risk {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.risk-badge.recommended {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.risk-badge.advanced {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Privacy Analysis Styles */
.privacy-analysis {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.privacy-analysis h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.risk-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.risk-label {
  font-weight: 600;
  color: var(--text-primary);
}

.risk-value {
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.risk-value.low {
  background: var(--success-light);
  color: var(--success);
}

.risk-value.medium {
  background: var(--warning-light);
  color: var(--warning);
}

.risk-value.high {
  background: var(--error-light);
  color: var(--error);
}

.risk-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.risk-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.risk-indicator.gps {
  background: var(--error-light);
  color: var(--error);
}

.risk-indicator.dates {
  background: var(--warning-light);
  color: var(--warning);
}

.risk-indicator.identifiers {
  background: var(--warning-light);
  color: var(--warning);
}

.risk-indicator.personal {
  background: var(--info-light);
  color: var(--info);
}

.recommendations {
  margin-bottom: 1rem;
}

.recommendations h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 14px;
}

.recommendations ul {
  margin: 0;
  padding-left: 1.25rem;
}

.recommendations li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.removal-preview {
  padding: 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.removal-preview h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 14px;
}

.removal-preview p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Custom Metadata Selection Styles */
.custom-metadata-selection {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.custom-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.custom-selection-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.quick-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.metadata-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metadata-category {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.metadata-category.high-risk-category {
  border-left: 4px solid var(--error);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.02) 0%, transparent 100%);
}

.metadata-category.medium-risk-category {
  border-left: 4px solid var(--warning);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.02) 0%, transparent 100%);
}

.metadata-category.low-risk-category {
  border-left: 4px solid var(--success);
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.02) 0%, transparent 100%);
}

.category-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-title i {
  color: var(--primary);
}

.category-risk-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.category-risk-badge.high-risk {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.category-risk-badge.medium-risk {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.category-risk-badge.low-risk {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.metadata-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.metadata-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative;
}

.metadata-field:hover {
  background: var(--bg-overlay);
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.metadata-field.risky-field {
  border-left: 3px solid var(--error);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.05) 0%, var(--bg-tertiary) 100%);
}

.metadata-field.risky-field:hover {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0%, var(--bg-overlay) 100%);
}

.metadata-field input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  transform: scale(1.1);
}

.metadata-field label {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
  font-weight: 500;
}

.metadata-field-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.risk-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  opacity: 0.7;
}

.custom-selection-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.custom-selection-actions .btn {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

/* Search and Filter Styles */
.search-filter-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.btn-clear-search {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.filter-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.filter-option:hover {
  color: var(--text-primary);
}

.filter-checkbox {
  margin: 0;
  cursor: pointer;
  transform: scale(1.1);
}

/* Hidden field styles */
.metadata-field.hidden {
  display: none;
}

.metadata-category.hidden {
  display: none;
}

/* Before/After Preview Styles */
.before-after-preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.preview-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.preview-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.preview-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.preview-side {
  text-align: center;
}

.preview-side h5 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.preview-thumbnail {
  width: 100%;
  height: 200px;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.preview-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.preview-info {
  display: flex;
  justify-content: center;
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.preview-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  padding: 1rem;
}

.preview-divider i {
  background: var(--primary-light);
  padding: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

/* Responsive adjustments for preview */
@media (max-width: 768px) {
  .preview-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .preview-divider {
    transform: rotate(90deg);
  }
  
  .preview-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

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

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

/* Desktop Navigation Responsive */
@media (max-width: 1024px) {
  .nav-desktop {
    gap: 0.125rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .nav-link i {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .nav-desktop {
    gap: 0.125rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }
  
  .nav-link i {
    font-size: 0.75rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .single-column {
    gap: 1rem;
  }
  
  .card {
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  .upload-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
    box-sizing: border-box;
  }
  
  .single-column {
    gap: 0.75rem;
  }
  
  .card {
    border-radius: 0;
    margin: 0;
    padding: 0.75rem;
    box-sizing: border-box;
  }
  
  .header-content {
    padding: 0 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .upload-section {
    padding: 1rem 0.75rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
  }
  
  .header-nav {
    gap: 0.25rem;
  }
  
  /* Hide desktop navigation on mobile */
  .nav-desktop {
    display: none;
  }
  
  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: flex;
  }
  
  
  .nav-link {
    padding: 0.75rem 1rem; /* Increased from 0.5rem 0.75rem for 44px minimum */
    font-size: 0.8rem;
    min-height: 44px; /* Ensure 44px minimum tap target */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-desktop .nav-link span {
    display: none;
  }
  
  .privacy-notice-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .privacy-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    border-radius: 0;
    min-height: 44px; /* Ensure 44px minimum tap target */
    padding: 1rem 1.5rem; /* Increased padding for better touch targets */
  }
  
  .upload-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .url-input-group {
    flex-direction: column;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .kv-grid {
    grid-template-columns: 1fr;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .mode-actions {
    flex-direction: column;
  }
  
  .gps-helpers {
    flex-direction: column;
  }
  
  .histogram-grid {
    grid-template-columns: 1fr;
  }
  
  .remover-options {
    grid-template-columns: 1fr;
  }
  
  /* Mobile tap target improvements */
  .btn {
    min-height: 44px; /* Ensure 44px minimum tap target */
    padding: 0.875rem 1.25rem; /* Increased padding for better touch targets */
  }
  
  
  .file-input-label {
    min-height: 44px;
    padding: 0.875rem 1.5rem; /* Increased padding */
  }
  
  .remover-option {
    min-height: 44px; /* Ensure clickable area is at least 44px */
    padding: 1.25rem; /* Increased padding for better touch targets */
  }
  
  .dropdown-item {
    min-height: 44px;
    padding: 1rem; /* Increased padding */
  }
  
  .accordion-header {
    min-height: 44px;
    padding: 1rem 1.5rem; /* Increased padding */
  }
  
  .section-header {
    min-height: 44px;
    padding: 1rem 1.5rem; /* Increased padding */
  }
  
  .histogram-toggle {
    min-height: 44px;
    padding: 1rem; /* Increased padding */
  }
  
  .export-btn {
    min-height: 44px;
    padding: 0.875rem 1.25rem; /* Increased padding */
  }
  
  .thumbs img,
  .thumb-placeholder {
    min-width: 44px;
    min-height: 44px; /* Ensure thumbnails are at least 44px */
  }
  
  /* Mobile menu adjustments */
  .nav-mobile-content {
    width: 100%; /* Full width on very small screens */
  }
  
  .nav-mobile-header {
    padding: 1rem;
  }
  
  .nav-mobile-links .nav-link {
    padding: 1rem;
  }
  
  /* Sticky action bar for mobile */
  .sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown via JavaScript */
  }
  
  .sticky-action-bar .btn {
    width: 100%;
    min-height: 48px; /* Slightly larger for mobile */
    font-size: 1rem;
    font-weight: 600;
  }
  
  /* Add bottom padding to main content when sticky bar is visible */
  body.sticky-action-visible {
    padding-bottom: 80px; /* Space for sticky action bar */
  }
  
  body.sticky-action-visible .container {
    padding-bottom: 2rem; /* Additional padding for content */
  }
  
  /* Mobile typography improvements */
  .kv-item {
    flex-direction: column; /* Stack key and value vertically on mobile */
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .kv-key {
    flex: none; /* Don't take up flex space */
    margin-right: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .kv-value {
    flex: none;
    text-align: left; /* Left align on mobile */
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    /* Collapse long values by default */
    max-height: 2.6em; /* Approximately 2 lines */
    overflow: hidden;
    position: relative;
  }
  
  /* Show expand/collapse indicator for long values */
  .kv-value.truncated::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--bg-card);
    padding-left: 0.5rem;
    color: var(--text-muted);
  }
  
  /* Expandable value styles */
  .kv-value.expanded {
    max-height: none;
    overflow: visible;
  }
  
  .kv-value.expanded::after {
    display: none;
  }
  
  /* Click to expand functionality */
  .kv-value.truncated {
    cursor: pointer;
  }
  
  .kv-value.truncated:hover {
    background: var(--bg-overlay);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
  }
  
  /* Metadata group improvements */
  .metadata-group {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
  }
  
  .group-content {
    padding: 0.75rem 1rem; /* Reduced padding */
  }
  
  /* Section header improvements */
  .section-header {
    padding: 0.75rem 1rem; /* Reduced padding */
  }
  
  .section-title {
    font-size: 0.95rem; /* Slightly smaller */
  }
  
  /* Card improvements */
  .card {
    padding: 1rem; /* Reduced from 1.5rem */
    margin-bottom: 1rem; /* Reduced spacing */
  }
  
  .card-header {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    padding-bottom: 0.75rem; /* Reduced from 1rem */
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .card-actions {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .export-dropdown .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: auto;
  }
  
  .dropdown-menu {
    right: auto;
    left: 0;
    min-width: min(200px, 85vw);
    max-width: 85vw;
  }
  
  .current-file-indicator {
    margin-left: 0;
    margin-top: 0.5rem;
    max-width: 100%;
  }
  
  .current-file-indicator span {
    max-width: 100%;
  }
  
  .card-title {
    font-size: 1rem; /* Reduced from 1.125rem */
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }
  
  .upload-section {
    padding: 1.5rem 0.75rem;
    box-sizing: border-box;
  }
  
  .upload-section .upload-area {
    padding: 1.5rem 0.75rem;
    box-sizing: border-box;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .card-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .export-dropdown .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
  }
  
  .current-file-indicator {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 13px;
  }
  
  .thumbs img {
    width: 60px;
    height: 60px;
  }
}

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Focus States */
.btn:focus,
.form-input:focus,
.tab:focus,
.section-header:focus,
.remover-option:focus,
.dropdown-item:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Focus styles for accordion headers */
.section-header:focus {
  background: var(--bg-overlay);
  border-color: var(--primary);
}

/* Focus styles for radio options */
.remover-option:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Focus styles for dropdown items */
.dropdown-item:focus {
  background: var(--primary-light);
  color: var(--primary);
}

/* Search highlight styles */
.highlight {
  background: var(--warning);
  color: var(--text-primary);
  padding: 0.1em 0.2em;
  border-radius: 2px;
  font-weight: 600;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  background: var(--success);
  color: white;
}

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

.toast.warning {
  background: var(--warning);
  color: white;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.toast-content i {
  font-size: 1.2em;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5em;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Legacy Error Notification (for backward compatibility) */
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--error);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-content i {
  font-size: 1.2em;
}

.error-content button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content button:hover {
  opacity: 0.8;
}

/* Loading Indicator */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.loading-indicator.show {
  display: block;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

.loading-text {
  text-align: center;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 10px;
}

.progress-container {
  width: min(200px, 80vw);
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Virtualization Styles */
.virtualized-container {
  margin: 20px 0;
}

.virtualized-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.virtualized-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.virtualization-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.virtualization-info i {
  color: var(--primary);
}

.virtualized-content {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-primary);
}

.virtualized-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  padding: 15px;
}

.virtualized-controls .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* Additional Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Print Styles */
@media print {
  .header,
  .tabs,
  .upload-section,
  .actions,
  .btn {
    display: none !important;
  }
  
  .container {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* EXIF, IPTC, XMP, PDF, and File System Viewer Styles */
.exif-viewer-section,
.iptc-viewer-section,
.xmp-viewer-section,
.pdf-viewer-section,
.file-system-viewer-section {
  margin-bottom: 2rem;
}

/* PDF Viewer Section Styles */
.pdf-viewer-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.pdf-viewer-content {
  padding: 1rem 1.5rem;
}

.exif-viewer,
.iptc-viewer,
.xmp-viewer,
.file-system-viewer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exif-section,
.iptc-section,
.xmp-section,
.file-system-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.exif-section .section-header,
.iptc-section .section-header,
.xmp-section .section-header,
.file-system-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Make main viewer section headers clickable for collapsing */
.exif-viewer-section .section-header,
.iptc-viewer-section .section-header,
.xmp-viewer-section .section-header,
.pdf-viewer-section .section-header,
.file-system-viewer-section .section-header,
.structured-view-section .section-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* Chevron indicator for collapsible main sections */
.exif-viewer-section .section-header .section-title::after,
.iptc-viewer-section .section-header .section-title::after,
.xmp-viewer-section .section-header .section-title::after,
.pdf-viewer-section .section-header .section-title::after,
.file-system-viewer-section .section-header .section-title::after,
.structured-view-section .section-header .section-title::after {
  content: '▾';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.exif-viewer-section.collapsed .section-header .section-title::after,
.iptc-viewer-section.collapsed .section-header .section-title::after,
.xmp-viewer-section.collapsed .section-header .section-title::after,
.pdf-viewer-section.collapsed .section-header .section-title::after,
.file-system-viewer-section.collapsed .section-header .section-title::after,
.structured-view-section.collapsed .section-header .section-title::after {
  transform: rotate(-90deg);
}

/* Make viewer sections visually match metadata groups */
.exif-viewer-section,
.iptc-viewer-section,
.xmp-viewer-section,
.file-system-viewer-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.exif-viewer-content,
.iptc-viewer-content,
.xmp-viewer-content,
.file-system-viewer-content {
  padding: 1rem 1.5rem;
}

.section-icon {
  color: var(--text-secondary);
  font-size: 1.1em;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.section-content {
  padding: 1rem 1.5rem;
}

/* Collapsible states for main sections */
.exif-viewer-section.collapsed .exif-viewer-content,
.iptc-viewer-section.collapsed .iptc-viewer-content,
.xmp-viewer-section.collapsed .xmp-viewer-content,
.pdf-viewer-section.collapsed .pdf-viewer-content,
.file-system-viewer-section.collapsed .file-system-viewer-content,
.structured-view-section.collapsed .structured-viewer-content {
  display: none;
}

.exif-item,
.iptc-item,
.xmp-item,
.file-system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.exif-item:last-child,
.iptc-item:last-child,
.xmp-item:last-child,
.file-system-item:last-child {
  border-bottom: none;
}

.exif-item.critical-priority,
.iptc-item.critical-priority,
.xmp-item.critical-priority,
.file-system-item.critical-priority {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.05) 0%, transparent 100%);
  border-left: 3px solid var(--error);
  padding-left: 1rem;
  margin-left: -1rem;
}

.exif-item.high-priority,
.iptc-item.high-priority,
.xmp-item.high-priority,
.file-system-item.high-priority {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.05) 0%, transparent 100%);
  border-left: 3px solid var(--warning);
  padding-left: 1rem;
  margin-left: -1rem;
}

.exif-item.medium-priority,
.iptc-item.medium-priority,
.xmp-item.medium-priority,
.file-system-item.medium-priority {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin-left: -1rem;
}

.exif-key,
.iptc-key,
.xmp-key,
.file-system-key {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.exif-value,
.iptc-value,
.xmp-value,
.file-system-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Expandable text for IPTC values */
.iptc-value.expanded {
  max-width: 100%;
  text-align: left;
  white-space: pre-wrap;
  background: var(--bg-tertiary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

.empty-state-large {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state-large i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state-large h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.empty-state-large p {
  margin: 0;
  font-size: 0.9rem;
}

.section-actions {
  display: flex;
  gap: 0.5rem;
}

.section-actions .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

/* Responsive Toast Notifications */
@media (max-width: 768px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .error-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .exif-item,
  .iptc-item,
  .xmp-item,
  .file-system-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .exif-value,
  .iptc-value,
  .xmp-value,
  .file-system-value {
    text-align: left;
    max-width: none;
  }
  
  .section-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Export Dropdown Styles */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.export-dropdown .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.export-dropdown .btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

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

.export-dropdown .btn i.fa-chevron-down {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.export-dropdown .btn.active i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: min(200px, 80vw);
  max-width: 90vw;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  margin-top: 0.25rem;
  overflow: hidden;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-light);
}

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

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-secondary);
}

.dropdown-item:hover i {
  color: var(--primary);
}

/* Dark theme adjustments */
[data-theme="dark"] .export-dropdown .btn {
  background: var(--bg-card);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

[data-theme="dark"] .export-dropdown .btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
}

[data-theme="dark"] .dropdown-menu {
  background: var(--bg-card);
  border-color: var(--border-medium);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
  border-bottom-color: var(--border-medium);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--bg-tertiary);
}

/* Upload Section Styles */
.upload-section {
  margin-bottom: 2rem;
}

.upload-section .upload-area {
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  transition: all 0.2s ease;
}

.upload-section .upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-section .upload-btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.upload-section .upload-hint {
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.upload-section .upload-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.upload-section .upload-info p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-section .upload-info i {
  color: var(--primary);
  width: 16px;
}

/* Dark theme adjustments for upload section */
[data-theme="dark"] .upload-section .upload-area {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .upload-section .upload-area:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

[data-theme="dark"] .upload-section .upload-info {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

/* Re-upload Interface Styles */
.reupload-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.reupload-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

.reupload-header {
  background: var(--bg-secondary);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.reupload-header i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.reupload-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.reupload-content {
  padding: 2rem;
}

.reupload-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.file-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.file-list h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list li i {
  color: var(--text-secondary);
  width: 16px;
}

.file-list li span {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}

.file-list li small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.upload-area {
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  transition: all 0.2s ease;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-hint {
  margin: 0.75rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Dark theme adjustments for re-upload */
[data-theme="dark"] .reupload-card {
  background: var(--bg-card);
  border-color: var(--border-medium);
}

[data-theme="dark"] .reupload-header {
  background: var(--bg-secondary);
  border-bottom-color: var(--border-medium);
}

[data-theme="dark"] .file-list {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .file-list li {
  border-bottom-color: var(--border-medium);
}

[data-theme="dark"] .upload-area {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .upload-area:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  min-width: 140px;
  opacity: 0.9;
}

.floating-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.floating-btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

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

.floating-btn-secondary {
  background: var(--secondary);
  color: var(--text-inverse);
}

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

.floating-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.floating-btn-text {
  white-space: nowrap;
}

/* Hide text on mobile, show only icons */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
    gap: 0.75rem;
  }
  
  .floating-btn {
    min-width: auto;
    padding: 0.75rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  
  .floating-btn-text {
    display: none;
  }
  
  .floating-btn i {
    font-size: 1.1rem;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .floating-btn {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .floating-btn:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Homepage Styles */
.hero-section {
  text-align: center;
  padding: 2rem 2rem 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-tertiary) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 3rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 56px;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* What is Metadata Section */
.what-is-metadata-section {
  margin-bottom: 4rem;
}

.metadata-explanation {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.explanation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.explanation-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.explanation-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.metadata-types {
  display: grid;
  gap: 1.5rem;
}

.metadata-type {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.type-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.type-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.type-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* File Example Visual */
.explanation-visual {
  display: flex;
  justify-content: center;
}

.file-example {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 300px;
  width: 100%;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.file-preview i {
  font-size: 2rem;
  color: var(--primary);
}

.file-preview span {
  font-weight: 600;
  color: var(--text-primary);
}

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

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.metadata-key {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.metadata-value {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

/* Privacy Notice */
.privacy-notice {
  background: var(--bg-card);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.privacy-notice-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.privacy-text h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.privacy-text p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-link {
  color: var(--success);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-feature i {
  color: var(--primary);
}

/* Actions Section */
.actions-section {
  margin-bottom: 4rem;
}

.actions-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Action Cards */
.action-card .card-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.feature-list {
  margin-bottom: 1.5rem;
}

.feature-list .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.feature-list .feature-item i {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-list .feature-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.use-cases {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.use-cases h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.use-cases ul {
  margin: 0;
  padding-left: 1.25rem;
}

.use-cases li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Supported File Types Section */
.supported-files-section {
  margin-bottom: 4rem;
}

.file-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.file-type-category {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.file-type-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.file-type-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.file-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.file-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.file-type:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

.file-type i {
  font-size: 1.5rem;
  color: var(--primary);
}

.file-type span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.action-card .card-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.action-card .card-header .action-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.action-card .card-header h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.action-card .card-content {
  padding: 0 2rem 1.5rem;
}

.action-card .card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.action-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--primary);
}

.action-card .card-footer {
  padding: 0 2rem 2rem;
  text-align: center;
}

.action-card .card-footer .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Features Section */
.features-section {
  margin-bottom: 4rem;
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.how-it-works-section {
  margin-bottom: 4rem;
}

.how-it-works-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.step-details {
  margin-top: 1rem;
  text-align: left;
}

.step-details ul {
  margin: 0;
  padding-left: 1.25rem;
}

.step-details li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Use Cases Section */
.use-cases-section {
  margin-bottom: 4rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.use-case-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.use-case-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.use-case-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.use-case-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.use-case-item ul {
  text-align: left;
  margin: 0;
  padding-left: 1.25rem;
}

.use-case-item li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 4rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h4::before {
  content: '?'; 
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-features i {
  color: var(--success);
  font-size: 0.9rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 1rem 0 1.5rem;
}

.step-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Dark theme adjustments for homepage */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark-tertiary) 100%);
}

[data-theme="dark"] .hero-feature {
  background: var(--bg-dark-card);
  border-color: var(--border-dark-medium);
}

[data-theme="dark"] .action-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark-medium);
}

[data-theme="dark"] .action-card .card-header {
  background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
}

[data-theme="dark"] .feature-item {
  background: var(--bg-dark-card);
  border-color: var(--border-dark-medium);
}

[data-theme="dark"] .step-item {
  background: var(--bg-dark-card);
  border-color: var(--border-dark-medium);
}

/* Privacy Page Styles */
.privacy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.privacy-header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.privacy-header .privacy-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.privacy-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.privacy-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--success);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
}

.privacy-highlights {
  margin-bottom: 3rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.highlight-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.highlight-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.highlight-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.privacy-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.privacy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.privacy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-section h2 i {
  color: var(--primary);
  font-size: 1.25rem;
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-section ul,
.privacy-section ol {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
}

.privacy-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.last-updated {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  margin-top: 1rem;
}

.privacy-footer {
  text-align: center;
  padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 1rem 1rem 2rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  
  .explanation-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .metadata-explanation {
    padding: 2rem 1rem;
  }
  
  .action-cards {
    grid-template-columns: 1fr;
  }
  
  .file-types-grid {
    grid-template-columns: 1fr;
  }
  
  .file-types {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .actions-section h2,
  .features-section h2,
  .how-it-works-section h2,
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .privacy-header {
    padding: 2rem 1rem;
  }
  
  .privacy-header h1 {
    font-size: 2rem;
  }
  
  .privacy-subtitle {
    font-size: 1rem;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .privacy-content {
    padding: 1.5rem;
  }
  
  .privacy-section h2 {
    font-size: 1.25rem;
  }
}

/* Bulk View Styles */
.view-mode-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.view-mode-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-mode-btn:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.view-mode-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.bulk-mode-info {
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.bulk-results-section {
  margin-top: 1rem;
}

.bulk-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bulk-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bulk-result-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bulk-result-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.bulk-result-item.error {
  border-color: var(--error);
  background: rgba(220, 38, 38, 0.05);
}

.bulk-result-item.current {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.bulk-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.bulk-result-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.bulk-result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.bulk-result-icon.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

.bulk-result-icon.success {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.bulk-result-details {
  flex: 1;
}

.bulk-result-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.bulk-result-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bulk-result-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.bulk-result-status.success {
  color: var(--success);
}

.bulk-result-status.error {
  color: var(--error);
}

.bulk-result-actions {
  display: flex;
  gap: 0.5rem;
}

.bulk-result-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulk-result-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.bulk-result-btn.primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.bulk-result-btn.primary:hover {
  background: var(--primary-hover);
}

.bulk-result-summary {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.bulk-result-summary.error {
  background: rgba(220, 38, 38, 0.05);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.bulk-export-dropdown {
  position: relative;
}

.bulk-export-dropdown .dropdown-menu {
  min-width: min(280px, 90vw);
  max-width: 90vw;
}

/* Bulk Preview Grid Styles */
.bulk-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.bulk-selection-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.bulk-preview-item {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.bulk-preview-checkbox {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  z-index: 10;
}

.bulk-file-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.bulk-preview-status-text {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Before/After Grid Styles */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.before-after-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

.before-after-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
}

.before-after-preview {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.before-after-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.before-after-preview .file-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.before-after-labels {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.before-after-labels span {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.before-label {
  color: var(--warning);
}

.after-label {
  color: var(--success);
}

.before-after-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.bulk-preview-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.bulk-preview-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), var(--shadow-md);
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}

.bulk-preview-item.processing {
  border-color: var(--primary);
  background: var(--primary-light);
}

.bulk-preview-item.error {
  border-color: var(--error);
  background: rgba(220, 38, 38, 0.05);
}

.bulk-preview-item.success {
  border-color: var(--success);
  background: rgba(5, 150, 105, 0.05);
}

.bulk-preview-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.bulk-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  max-width: 100%;
  max-height: 100%;
}

.bulk-preview-status {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: bold;
}

.bulk-preview-status.processing {
  background: var(--primary);
  color: var(--text-inverse);
}

.bulk-preview-status.error {
  background: var(--error);
  color: var(--text-inverse);
}

.bulk-preview-status.success {
  background: var(--success);
  color: var(--text-inverse);
}

.bulk-preview-name {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  word-break: break-word;
  font-size: 0.75rem;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bulk-preview-meta {
  font-size: 0.625rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.bulk-preview-remove {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bulk-preview-item:hover .bulk-preview-remove {
  opacity: 1;
}

.bulk-preview-remove:hover {
  background: var(--error);
}

.bulk-preview-selection-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.bulk-preview-item.active .bulk-preview-selection-indicator {
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.bulk-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.bulk-preview-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Current File Indicator */
.current-file-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: auto;
  border: 1px solid var(--primary);
}

.current-file-indicator i {
  font-size: 0.75rem;
}

.current-file-indicator span {
  max-width: min(200px, 30vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Mobile responsive for bulk view */
@media (max-width: 768px) {
  .view-mode-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .view-mode-btn {
    flex: 1;
    justify-content: center;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .bulk-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .bulk-result-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .bulk-result-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .bulk-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0;
  }
  
  .bulk-preview-item {
    padding: 0.375rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  
  .bulk-preview-image {
    height: 60px;
  }
  
  .bulk-preview-name {
    font-size: 0.625rem;
  }
  
  .bulk-preview-meta {
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  .view-mode-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .bulk-result-item {
    padding: 0.75rem;
  }
  
  .bulk-result-icon {
    width: 32px;
    height: 32px;
  }
  
  .stat-item {
    padding: 0.5rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .bulk-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.375rem;
    padding: 0.5rem 0;
  }
  
  .bulk-preview-item {
    padding: 0.25rem;
  }
  
  .bulk-preview-image {
    height: 50px;
  }
  
  .bulk-preview-name {
    font-size: 0.5rem;
    line-height: 1.1;
  }
  
  .bulk-preview-meta {
    font-size: 0.4rem;
  }
  
  .bulk-export-dropdown .dropdown-menu {
    min-width: min(280px, 95vw);
    max-width: 95vw;
  }
}

/* Additional mobile overflow prevention */
@media (max-width: 768px) {
  .card-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .bulk-result-name {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .bulk-preview-name {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Comprehensive Metadata Guide Styles */
.metadata-guide-section {
  margin-bottom: 4rem;
}

/* TOC */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin: 1rem 0 2rem;
  position: sticky;
  top: var(--sticky-toc-top, 72px);
  z-index: 45;
  backdrop-filter: blur(6px);
}

.guide-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.guide-toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guide-toc a.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Compact styling when TOC is stuck */
.guide-toc.stuck {
  padding: 0.5rem;
  gap: 0.375rem;
}

.guide-toc.stuck a {
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

/* Intro Content Styles */
.intro-content {
  margin-top: 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.intro-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.intro-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.intro-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.intro-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.guide-section {
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.guide-header {
  text-align: center;
  margin-bottom: 2rem;
}

.guide-header h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.guide-header h3 i {
  color: var(--primary);
  font-size: 1.5rem;
}

.guide-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Metadata Types Grid */
.metadata-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.metadata-type-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.metadata-type-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.type-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.type-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.type-icon.exif {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.type-icon.iptc {
  background: linear-gradient(135deg, #10b981, #059669);
}

.type-icon.xmp {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.type-icon.pdf {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.type-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.type-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.type-details h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.type-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.type-details li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.type-details li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.privacy-risk {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 1rem;
}

.risk-level {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.risk-level.high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.risk-level.medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.risk-level.low {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
}

[data-theme="dark"] .risk-level.high {
  background: #1f2937;
  color: #fca5a5;
  border-color: #374151;
}

[data-theme="dark"] .risk-level.medium {
  background: #1f2937;
  color: #fbbf24;
  border-color: #374151;
}

[data-theme="dark"] .risk-level.low {
  background: #1f2937;
  color: #6ee7b7;
  border-color: #374151;
}

.privacy-risk p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cross-link {
  margin: 0.5rem 0 0;
}

.cross-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cross-link a:hover {
  text-decoration: underline;
}

/* Privacy Risks Grid */
.privacy-risks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.risk-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.risk-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  font-weight: 600;
}

.risk-header.high-risk {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.risk-header.medium-risk {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.risk-header.low-risk {
  background: linear-gradient(135deg, #059669, #047857);
}

.risk-header i {
  font-size: 1.25rem;
}

.risk-header h4 {
  margin: 0;
  font-size: 1.25rem;
}

.risk-content {
  padding: 1.5rem;
}

.risk-item {
  margin-bottom: 1.5rem;
}

.risk-item:last-child {
  margin-bottom: 0;
}

.risk-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.risk-item h5 i {
  color: var(--primary);
  font-size: 1rem;
}

.risk-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.risk-examples {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.risk-examples strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.risk-examples ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.risk-examples li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.risk-examples li::before {
  content: "→";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Best Practices Grid */
.best-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.practice-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.practice-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.practice-header i {
  font-size: 1.25rem;
}

.practice-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.practice-content {
  padding: 1.5rem;
}

.practice-item {
  margin-bottom: 1.5rem;
}

.practice-item:last-child {
  margin-bottom: 0;
}

.practice-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.practice-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.practice-tips {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.practice-tips strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.practice-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.practice-tips li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.practice-tips li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Technical Details Grid */
.technical-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.technical-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.technical-category h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.technical-category h4 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.field-explanations {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.field-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.field-item p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.field-item p:last-child {
  margin-bottom: 0;
}

.field-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.troubleshooting-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.troubleshooting-category h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.troubleshooting-category h4 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.troubleshooting-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.troubleshooting-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.troubleshooting-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.troubleshooting-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.solution {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid var(--primary);
}

.solution strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.solution li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.section-footer {
  margin-top: 1rem;
  text-align: right;
}

.back-to-top {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.back-to-top:hover { color: var(--primary); text-decoration: underline; }

/* Collapsible */
.collapsible .guide-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.collapse-toggle[aria-expanded="false"] i { transform: rotate(180deg); }

.collapsible-content[hidden] { display: none; }

/* Mini CTA */
.mini-cta {
  margin: 2rem 0 4rem;
}

.mini-cta-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.mini-cta-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.mini-cta-content p { color: var(--text-secondary); margin-bottom: 1rem; }

.mini-cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Floating Back to Top */
.floating-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.floating-top-btn:hover { color: var(--primary); border-color: var(--primary); }

/* Mobile responsive styles for metadata guide */
@media (max-width: 768px) {
  .guide-toc { gap: 0.5rem; }
  .guide-toc a { flex: 1 1 auto; justify-content: center; }

  /* Mobile top offset for sticky header */
  :root { --sticky-toc-top: 68px; }

  .guide-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .guide-header h3 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .metadata-types-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .privacy-risks-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .best-practices-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .technical-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .type-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .type-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .intro-card {
    padding: 1.5rem;
  }
  
  .intro-icon {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

/* Fix icon sizing/alignment in "What is File Metadata?" list */
.metadata-explanation .metadata-type {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.metadata-explanation .type-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.metadata-explanation .type-icon i {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}

/* Restore square icon background in file preview */
.file-example .file-preview i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
}


