:root {
  --dark-color:var(--dark,#1a1a2e);
  --primary-color:var(--primary,#4361ee);
  --accent-color:var(--accent,#4cc9f0);
  --success-color:var(--success,#06d6a0);
  --warning-color:var(--warning,#ff9f1c);
  --danger-color:var(--danger,#ef476f);
  --gradient-primary:linear-gradient(135deg,#4361ee,#3a0ca3);
  --gradient-hero:linear-gradient(135deg,#4361ee 0%,#3a0ca3 50%,#7209b7 100%);
  --gradient-accent:linear-gradient(135deg,#4cc9f0,#4361ee);
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-500:#64748b;
  --shadow-sm:0 2px 8px rgba(0,0,0,.06);
  --shadow-md:0 4px 16px rgba(0,0,0,.1);
  --shadow-xl:0 12px 40px rgba(0,0,0,.15);
  --radius-sm:8px;
  --radius-md:12px;
  --transition:all .25s ease;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 40%, #f5f0ff 100%);
}

.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #7209b7 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 40%, #f5f0ff 100%);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
}

.tool-wrapper {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.tool-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.08);
}

.upload-zone {
  border: 2.5px dashed rgba(67, 97, 238, 0.3);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(67, 97, 238, 0.03);
  cursor: pointer;
  transition: all 0.3s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.07);
}

.content-section {
  padding: 40px 0;
}

.content-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.08);
}

.content-card h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.content-card p {
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.8;
}

.content-card ul {
  color: #475569;
  margin-bottom: 14px;
  padding-left: 20px;
}

.content-card ul li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .tool-card {
    padding: 1.2rem;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
  color: var(--dark-color);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.06) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(114, 9, 183, 0.06) 0%, transparent 25%), radial-gradient(circle at 50% 50%, rgba(6, 214, 160, 0.04) 0%, transparent 35%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
  color: #444;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Navigation */
.main-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 5px 25px rgba(67, 97, 238, 0.15);
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.5;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 650px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.trust-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.trust-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  position: relative;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--gray-300), var(--gray-200));
  z-index: 1;
  border-radius: 3px;
}

.step {
  text-align: center;
  z-index: 2;
  position: relative;
  flex: 1;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
  font-size: 1.2rem;
  border: 3px solid var(--gray-300);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.step.active .step-number {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2), var(--shadow-md);
  transform: scale(1.1);
}

.step.completed .step-number {
  background: var(--success-color);
  color: white;
  border-color: transparent;
}

.step-label {
  font-weight: 600;
  color: var(--gray-500);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: 700;
}

/* Tool Section */
.tool-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(67, 97, 238, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tool-card:hover {
  box-shadow: 0 30px 80px rgba(67, 97, 238, 0.2);
}

/* Upload Area */
.upload-area {
  border: 3px dashed rgba(67, 97, 238, 0.3);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, rgba(114, 9, 183, 0.03) 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default !important;
  user-select: none;
}

.upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(67, 97, 238, 0.08);
  transform: scale(1.01);
}

.upload-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.6s ease;
}

.upload-area:hover::before {
  left: 100%;
}

.upload-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.35);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.upload-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.upload-subtext {
  color: var(--gray-500);
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.browse-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer !important;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.35);
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.browse-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.45);
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer !important;
}

#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer !important;
  z-index: 20;
  pointer-events: auto !important;
}

/* Preview Section */
.preview-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
  display: none;
  border: 2px solid var(--gray-200);
}

.preview-section.active {
  display: block;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Selection Controls */
.selection-controls {
  background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
  border-radius: var(--radius-md);
  padding: 25px;
  margin: 30px 0;
  border: 2px solid var(--gray-200);
}

.selection-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.selection-btn {
  background: white;
  border: 2px solid var(--gray-300);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.selection-btn:hover {
  border-color: var(--primary-color);
  background: rgba(67, 97, 238, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

/* Stats Cards */
.stats-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.25);
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.35);
}

.stats-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.stats-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* Settings Cards */
.settings-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.settings-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 35px rgba(67, 97, 238, 0.12);
}

.settings-card .card-header {
  background: var(--gradient-primary);
  color: white;
  border-radius: 10px 10px 0 0;
  padding: 1rem 1.5rem;
  margin: -1.5rem -1.5rem 1.5rem;
  font-weight: 600;
}

.control-group {
  margin-bottom: 35px;
}

.control-label {
  display: block;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.control-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.control-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234361ee' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

.control-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
  transform: translateY(-2px);
}

/* File List */
.file-list-container {
  margin: 25px 0;
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
}

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

.file-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}

.file-item:hover {
  background: rgba(67, 97, 238, 0.04);
}

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

.file-checkbox {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-details {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.file-item.selected {
  background: rgba(6, 214, 160, 0.08);
  border-left: 4px solid var(--accent-color);
}

/* Thumbnails Grid */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 15px;
  max-height: 180px;
  overflow-y: auto;
  padding: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.thumbnail-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: white;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.thumbnail-item.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.3);
}

.thumbnail-img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.thumbnail-index {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.thumbnail-checkbox {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

/* Preview Container */
.preview-container {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fafafa;
  padding: 25px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
}

#pdf-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  display: block;
  transition: var(--transition);
  background-color: white;
}

/* Action Buttons */
.action-btn {
  padding: 18px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.convert-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.35);
}

.convert-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(67, 97, 238, 0.45);
}

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

.reset-btn {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.35);
}

.reset-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(6, 214, 160, 0.45);
}

/* Result Card */
.result-card {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35);
  display: none;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Content Sections */
.content-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  margin: 60px auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Article Content Styles */
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  color: var(--dark-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.article-content p {
  margin-bottom: 1.2rem;
  color: #444;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--dark-color);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
  color: #555;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(114, 9, 183, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.info-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-box ul {
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.08) 0%, rgba(6, 214, 160, 0.03) 100%);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.highlight-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Feature Item */
.feature-item {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Use Case */
.use-case {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

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

.use-case h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.use-case p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, rgba(255, 158, 0, 0.1) 0%, rgba(255, 158, 0, 0.05) 100%);
  border-left: 4px solid var(--warning-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.warning-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warning-color);
  margin-bottom: 0.8rem;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.tip-card {
  background: linear-gradient(135deg, white, var(--gray-100));
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.tip-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

.tip-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.tip-text {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-card {
  background: linear-gradient(135deg, white, var(--gray-100));
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  color: white;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
}

.feature-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.feature-description {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, var(--gray-100), white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 60px auto;
  box-shadow: var(--shadow-lg);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

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

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-color);
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: var(--transition);
  min-width: 24px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-answer ul {
  margin-bottom: 0;
}

.faq-answer li {
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}

/* Why Choose Section */
.why-choose-section {
  background: var(--gradient-hero);
  color: white;
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  margin: 60px auto;
  position: relative;
  overflow: hidden;
}

.why-choose-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.why-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Related Tools */
.related-tools-section {
  margin: 80px auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tool-card-item {
  background: linear-gradient(135deg, white, var(--gray-100));
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
  border: 2px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.tool-card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tool-card-item:hover .tool-icon-bg {
  transform: rotate(15deg) scale(1.1);
}

.tool-icon-bg {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.6rem;
  color: white;
  transition: var(--transition);
}

.tool-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Markdown Preview */
.markdown-preview {
  background: #fafafa;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Custom Range Input */
.custom-range-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.custom-range-input input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.custom-range-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(67, 97, 238, 0.15);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.notification.error {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning-color), #D97706);
}

.notification.info {
  background: var(--gradient-accent);
}

/* Theme Toggle */
#floatThemeToggle {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

#floatThemeToggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
  transition: all 0.3s ease;
}

.back-to-top.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(67, 97, 238, 0.5);
}

/* Image Styles */
.article-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  display: block;
  max-width: 100%;
  height: auto;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
}

.comparison-table tr:hover {
  background: rgba(67, 97, 238, 0.03);
}

.comparison-table .check {
  color: var(--success-color);
  font-size: 1.2rem;
}

.comparison-table .cross {
  color: var(--danger-color);
  font-size: 1.2rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
}
@media (max-width: 992px) {
  .hero-section {
    padding: 140px 0 80px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .content-section {
    padding: 50px 30px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .faq-section {
    padding: 50px 30px;
  }
  .why-choose-section {
    padding: 50px 30px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  .step-indicator {
    flex-direction: column;
    gap: 1.5rem;
  }
  .step-indicator::before {
    display: none;
  }
  .content-section {
    padding: 40px 20px;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .faq-section {
    padding: 40px 20px;
  }
  .why-choose-section {
    padding: 40px 20px;
  }
  .selection-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .upload-area {
    padding: 50px 15px;
  }
  .browse-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}
/* Utility Classes */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

/* ===================================================================
   Dark Theme Overrides
   =================================================================== */
#app-content[data-theme=dark] .tool-card {
  background: var(--bg-card, #1e293b);
  border-color: var(--border, #334155);
}
#app-content[data-theme=dark] .upload-area {
  background: rgba(67, 97, 238, 0.05);
}
#app-content[data-theme=dark] .step-number {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] .file-item {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] .settings-card, #app-content[data-theme=dark] .stats-card {
  background: var(--bg-card-hover, #334155);
}
#app-content[data-theme=dark] .result-card {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] p {
  color: var(--text-secondary, #94a3b8);
}
#app-content[data-theme=dark] .content-card {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] .content-card p {
  color: var(--text-secondary, #94a3b8);
}
#app-content[data-theme=dark] .tip-card {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] .feature-card {
  background: var(--bg-card, #1e293b);
}
#app-content[data-theme=dark] .related-card-item {
  background: var(--bg-card-hover, #334155);
}
#app-content[data-theme=dark] .markdown-preview {
  background: #0f172a;
  color: #f1f5f9;
}
#app-content[data-theme=dark] #floatThemeToggle {
  background: var(--bg-card, #1e293b);
  color: var(--text-primary, #e2e8f0);
  border-color: var(--border, #334155);
}
#app-content[data-theme=dark] #floatThemeToggle:hover {
  background: var(--primary, #4361ee);
  color: #fff;
}
#app-content[data-theme=dark] .back-to-top {
  background: var(--gradient-primary, linear-gradient(135deg, #4361ee, #7209b7));
}
#app-content[data-theme=dark] {
  /* Controls - dark backgrounds instead of white */
}
#app-content[data-theme=dark] .control-select {
  background: #1e293b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: #e2e8f0;
  border-color: #334155;
  background-size: 16px;
}
#app-content[data-theme=dark] .control-label {
  color: #e2e8f0;
}
#app-content[data-theme=dark] .selection-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
#app-content[data-theme=dark] .file-list-container {
  background: #0f172a;
  border-color: #334155;
}
#app-content[data-theme=dark] .file-item {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
#app-content[data-theme=dark] .file-item .file-name {
  color: #f1f5f9;
}
#app-content[data-theme=dark] .file-item .file-details {
  color: #94a3b8;
}
#app-content[data-theme=dark] .thumbnail-item {
  background: #1e293b;
  border-color: #334155;
}
#app-content[data-theme=dark] .thumbnail-index {
  color: #94a3b8;
}
#app-content[data-theme=dark] .preview-container {
  background: #0f172a;
  border-color: #334155;
}
#app-content[data-theme=dark] {
  /* FAQ Section dark */
}
#app-content[data-theme=dark] .faq-section {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
#app-content[data-theme=dark] .faq-item {
  background: #1e293b;
  border-color: #334155;
}
#app-content[data-theme=dark] .faq-question {
  color: #f1f5f9;
}
#app-content[data-theme=dark] .faq-question:hover {
  background: #334155;
}
#app-content[data-theme=dark] .faq-answer p {
  color: #94a3b8;
}
#app-content[data-theme=dark] {
  /* Case details - clear readable colors instead of blue */
}
#app-content[data-theme=dark] .case-detail {
  color: #cbd5e1;
}
#app-content[data-theme=dark] .case-detail strong {
  color: #38bdf8;
  font-weight: 700;
}
#app-content[data-theme=dark] .case-card {
  background: #1e293b;
  border-color: #334155;
}
#app-content[data-theme=dark] .case-number {
  color: #38bdf8;
}
#app-content[data-theme=dark] .case-card h3 {
  color: #f1f5f9;
}

/* ===================================================================
   Mobile Responsive
   =================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
  .tool-card {
    padding: 1rem !important;
  }
  .upload-area {
    padding: 2rem 1rem !important;
  }
  .step-indicator {
    flex-direction: column;
    gap: 1rem;
  }
  .step-indicator::before {
    display: none;
  }
  .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  .step-number {
    margin: 0;
    flex-shrink: 0;
  }
  .thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
  }
  .stats-card {
    padding: 1rem;
  }
  .settings-card {
    padding: 1rem;
  }
  .file-list-container {
    max-height: 200px;
  }
  .hero-section {
    padding: 120px 0 60px;
  }
  .hero-badges {
    flex-direction: column;
  }
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  .selection-controls {
    flex-wrap: wrap;
  }
  .action-buttons {
    flex-direction: column;
  }
  .container {
    padding: 0 12px;
  }
  .content-section {
    padding: 20px 0;
  }
  .content-card {
    padding: 20px;
  }
  .faq-section {
    padding: 20px;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .tool-card {
    padding: 0.8rem !important;
    border-radius: 12px;
  }
  .upload-area {
    padding: 1.5rem 0.8rem !important;
  }
  #floatThemeToggle {
    width: 40px;
    height: 40px;
    top: 80px;
    right: 10px;
    font-size: 1rem;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 10px;
  }
  .step {
    flex-direction: column;
    text-align: center;
  }
  .control-group select, .control-group input {
    font-size: 16px;
  }
  .preview-section {
    padding: 0.5rem;
  }
  .thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) !important;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .hero-section {
    padding: 100px 0 40px;
  }
  .tool-section {
    margin-top: -40px;
  }
  .hero-title {
    font-size: 1.3rem !important;
  }
  .result-card {
    padding: 1rem;
  }
  .result-actions {
    flex-direction: column;
    gap: 8px;
  }
  .result-actions .btn {
    width: 100%;
  }
}
