/* SwiftPDF - Premium Dark Theme (Midnight Pro) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  --sw-bg: #f8fafc; /* Light Gray Background */
  --sw-card: #ffffff; /* White Card */
  --sw-primary: #e3342f; /* Red - Standard PDF Color */
  --sw-primary-hover: #cc1f1a;
  --sw-text: #1e293b; /* Dark Text */
  --sw-text-muted: #64748b; /* Muted Text */
  --sw-border: #e2e8f0; /* Light Border */
  --sw-success: #10b981; /* Emerald */
  --sw-danger: #ef4444; /* Red */
  --sw-gradient: linear-gradient(135deg, #e3342f 0%, #ff5252 100%);
}

body.premium-tool-page {
  background-color: var(--sw-bg);
  color: var(--sw-text);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sw-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 1rem 2rem !important;
}

.logo span {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--sw-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i {
  color: var(--sw-primary);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--sw-text-muted) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--sw-primary) !important;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn-login {
  color: var(--sw-text) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.btn-signup {
  background: var(--sw-gradient);
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 99px !important;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-signup:hover {
  opacity: 0.9;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
/* ========================================
   HERO SECTIONS
   ======================================== */
.tool-page-hero,
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem !important;
  background: radial-gradient(
    circle at top center,
    rgba(227, 52, 47, 0.05) 0%,
    transparent 70%
  );
}

.hero-icon {
  font-size: 3.5rem;
  color: var(--sw-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  background: white;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(227, 52, 47, 0.15);
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.tool-page-hero h1,
.hero h1 {
  color: var(--sw-text) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.02em;
}

.tool-page-hero p,
.hero p {
  color: var(--sw-text-muted) !important;
  font-size: 1.15rem !important;
  max-width: 700px;
  margin: 0 auto 2rem !important;
  line-height: 1.6;
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */
.upload-container,
.split-options,
.protect-options,
.options-box,
.selected-files-container,
.process-container {
  background: var(--sw-card) !important;
  border: 1px solid var(--sw-border) !important;
  border-radius: 20px !important;
  padding: 3rem !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1) !important;
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.upload-container:hover {
  transform: translateY(-5px);
  border-color: var(--sw-primary) !important;
}

/* Index Tool Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.tool-card {
  background: var(--sw-card) !important;
  border: 1px solid var(--sw-border) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  text-decoration: none;
  transition: all 0.3s ease !important;
  display: block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--sw-primary) !important;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  background: #ffffff !important;
}

.tool-icon {
  font-size: 2.5rem !important;
  color: var(--sw-primary) !important;
  margin-bottom: 1.5rem !important;
}

.tool-info h3 {
  color: var(--sw-text) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.tool-info p {
  color: var(--sw-text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.5;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-upload,
.btn-select-huge,
.btn-convert,
.btn-action {
  background: var(--sw-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 1rem 2.5rem !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(227, 52, 47, 0.25) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-upload:hover,
.btn-select-huge:hover,
.btn-convert:hover,
.btn-action:hover {
  opacity: 0.9;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px rgba(227, 52, 47, 0.35) !important;
}

.btn-drive,
.btn-dropbox {
  background: var(--sw-bg) !important;
  border: 1px solid var(--sw-border) !important;
  color: var(--sw-text-muted) !important;
  font-size: 1.2rem;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.2s;
}
.btn-drive:hover,
.btn-dropbox:hover {
  border-color: var(--sw-primary) !important;
  color: var(--sw-primary) !important;
}

/* ========================================
   FILE ITEMS & LISTS
   ======================================== */
.file-item {
  background: var(--sw-bg) !important;
  border: 1px solid var(--sw-border) !important;
  color: var(--sw-text) !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  margin-bottom: 0.5rem;
}

.badge {
  background: rgba(227, 52, 47, 0.1) !important;
  color: var(--sw-primary) !important;
  border: 1px solid rgba(227, 52, 47, 0.2) !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.popular {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #fb923c !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: #f1f5f9 !important; /* Very light gray */
  border-top: 1px solid var(--sw-border) !important;
  padding: 4rem 1rem 2rem !important;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  color: var(--sw-text) !important;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section ul li a {
  color: var(--sw-text-muted) !important;
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: var(--sw-primary) !important;
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sw-border);
  color: var(--sw-text-muted);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-4 {
  margin-bottom: 1rem;
}

/* Ad Slots */
.ad-slot {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px dashed var(--sw-border) !important;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--sw-text-muted);
  font-size: 0.9rem;
  width: 100%;
}

/* Tool Description Section */
.tool-description-section {
  padding: 4rem 1rem;
  background: transparent; /* Blends with body */
}
.tool-description-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--sw-text);
}
/* Feature Cards */
.feature-card {
  background: var(--sw-card) !important;
  border: 1px solid var(--sw-border) !important;
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-card h3 {
  color: var(--sw-text) !important;
}
.feature-card p {
  color: var(--sw-text-muted) !important;
}

/* Steps */
.step-card {
  background: var(--sw-card) !important;
  border: 1px solid var(--sw-border) !important;
  color: var(--sw-text) !important;
}
.step-number {
  background: var(--sw-primary) !important;
  color: white !important;
}
.step-card h3 {
  color: var(--sw-text) !important;
}
.step-card p {
  color: var(--sw-text-muted) !important;
}

/* Inputs in dark mode */
input[type="text"],
input[type="password"],
textarea,
select {
  background: var(--sw-bg) !important;
  border: 1px solid var(--sw-border) !important;
  color: var(--sw-text) !important;
  border-radius: 8px;
  padding: 10px 15px;
}
input:focus,
select:focus {
  border-color: var(--sw-primary) !important;
  outline: none;
}

/* Google Translate Customization */

/* Google Translate Customization - Icon Overlay */
.language-selector {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.language-selector:hover {
  background-color: rgba(227, 52, 47, 0.1); /* Light red hover */
}

.icon-globe {
  color: var(--sw-text-muted);
  font-size: 1.25rem;
  pointer-events: none; /* Let clicks pass through to google element */
  z-index: 1;
}

.language-selector:hover .icon-globe {
  color: var(--sw-primary);
}

#google_translate_element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hide the element but keep it clickable */
  z-index: 2;
  overflow: hidden;
}

.goog-te-gadget-simple {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Hide Google top bar */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--sw-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .language-selector {
    margin-right: 1rem;
  }

  /* Adjust hero padding on mobile */
  .tool-page-hero,
  .hero {
    padding-top: 3rem !important;
  }
}
