/* ============================================================
   ⚡ QuickConverter — Split PDF by Size
   ------------------------------------------------------------
   Visual Language:
     • Blue  = Trust / Action
     • Green = Success
     • Orange = Limits / Usage
   ============================================================ */

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.88);
  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;
}

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

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

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

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

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

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

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

/* ========================= Usage Badge ========================= */
#usage-container {
  display: none;
  margin-bottom: 20px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
  width: fit-content;
  margin-inline: auto;
}

.dark-mode #usage-container {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

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

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

.dark-mode .drop-zone {
  background: #0f172a;
  border-color: #38bdf8;
}

.drop-zone p {
  font-size: 1.05rem;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================= Input ========================= */
.input-group {
  margin-top: 25px;
}

.input-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.input {
  width: 100%;
  max-width: 280px;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #0078d7;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.input:focus {
  outline: none;
  background: #eef6ff;
}

.dark-mode .input {
  background: #020617;
  border-color: #38bdf8;
  color: #e5e7eb;
}

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

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

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

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

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

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

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

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

.dark-mode #progressText {
  color: #cbd5f5;
}

/* ========================= Result ========================= */
#resultSection {
  display: none;
  margin-top: 25px;
  padding: 25px;
  border-radius: 12px;
  border: 2px dashed #22c55e;
  background: #f0fdf4;
  animation: fadeIn 0.4s ease;
}

.dark-mode #resultSection {
  background: #022c22;
  border-color: #16a34a;
  color: #d1fae5;
}

/* ========================= 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 26px;
  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;
  }
}

