/* ============================================================
   ⚡ QuickConverter — Delete PDF Pages Tool
   ------------------------------------------------------------
   Visual Psychology:
     • Blue  = Trust / Professional
     • Red   = Warning / Removal
     • Green = Success / Completion
   ============================================================ */

body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  color: #1e293b;
  margin: 0;
  padding: 0;
  transition: background 0.4s, color 0.4s;
}

.dark-mode {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
}

/* ========================= Header ========================= */
header.glass-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header.glass-header .logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0078d7;
}

.dark-mode header.glass-header {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ========================= Hero Section ========================= */
.hero {
  text-align: center;
  padding: 70px 20px 30px;
  color: #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 20px rgba(0, 120, 215, 0.3);
  background: linear-gradient(135deg, #0078d7, #00b4d8);
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.hero p {
  color: #e0f7ff;
  font-size: 1.1rem;
}

/* ========================= Tool Container ========================= */
.tool-container {
  max-width: 720px;
  margin: 40px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.4s;
}

.dark-mode .tool-container {
  background: #1e293b;
}

/* ========================= Drop Zone ========================= */
.drop-zone {
  border: 3px dashed #0078d7;
  border-radius: 12px;
  padding: 50px;
  color: #475569;
  background: #f9fbfd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone:hover {
  background: #eaf5ff;
}

/* ========================= Delete Options ========================= */
.delete-options {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.dark-mode .delete-options {
  background: #1e293b;
  border-color: #334155;
}

#pagesToDelete {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  border: 2px solid #dc2626;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #dc2626;
  transition: 0.3s ease;
}

#pagesToDelete:focus {
  outline: none;
  border-color: #ef4444;
  background: #fff5f5;
}

/* ========================= Buttons ========================= */
.btn-primary {
  background: linear-gradient(90deg, #0078d7, #00a6ff);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,120,215,0.3);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #005fa3, #0084d1);
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: #fff;
  border: 2px solid #dc2626;
  color: #dc2626;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline-danger:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

/* ========================= Progress Bar ========================= */
#progressContainer {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
  display: none;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0078d7, #22c55e);
  transition: width 0.3s ease-in-out;
}

#progressText {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #475569;
}

/* ========================= Result Section ========================= */
#resultSection {
  display: none;
  text-align: center;
  margin-top: 25px;
  padding: 25px 20px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  box-shadow: 0 2px 10px rgba(34,197,94,0.1);
  animation: fadeIn 0.5s ease;
}

#downloadLink {
  display: inline-block;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s;
}

#downloadLink:hover {
  background: linear-gradient(90deg, #16a34a, #15803d);
  transform: translateY(-2px);
}

/* ========================= Related Tools ========================= */
.related-tools {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb, #f0f9ff);
  border-radius: 14px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.related-tools h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 20px;
}

.related-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.related-grid a {
  background: linear-gradient(90deg, #0078d7, #00a2ff);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.related-grid a:hover {
  background: linear-gradient(90deg, #005fa3, #0078d7);
  transform: translateY(-3px);
}

/* ========================= Footer ========================= */
footer {
  text-align: center;
  padding: 35px 10px;
  margin-top: 60px;
  color: #64748b;
  font-size: 1rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f9fafb, #f1f5f9);
}

footer strong {
  color: #0078d7;
  font-weight: 700;
}

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

/* ========================= Responsive ========================= */
@media (max-width: 650px) {
  .tool-container {
    padding: 25px;
  }
  .btn-primary, .btn-outline-danger {
    width: 100%;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
}

