/*
Theme Name: Wexira
Theme URI: https://wexira.com
Author: Neel Govind
Author URI: https://wexira.com
Description: A premium WordPress theme for 50+ browser-based PDF tools.
Version: 3.7.0
License: Proprietary
Text Domain: wexira
*/

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(99, 102, 241, 0.6);

  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;

  --accent-indigo: #6366f1;
  --accent-indigo-light: #818cf8;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #22d3ee;
  --accent-emerald: #10b981;

  --gradient-hero: linear-gradient(135deg, #60a5fa 0%, #a78bfa 40%, #f472b6 70%, #fb923c 100%);
  --gradient-cta: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));

  --shadow-glow: 0 0 40px rgba(99,102,241,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ===== 3D CANVAS ===== */
#canvas-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(6, 8, 15, 0.72);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(6, 8, 15, 0.92);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient-cta);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.site-logo a {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.875rem;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.main-navigation a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: var(--gradient-cta) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}


/* ===== HERO COMPACT ===== */
.hero-compact {
  padding: 7rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 24, 39, 0.6); /* Premium dark frosted glass */
  border: 1px solid rgba(255, 255, 255, 0.15); /* bright white-ish border */
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 0 10px rgba(99, 102, 241, 0.1); 
  color: #fff; /* High contrast text */
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInDown 0.6s var(--ease-out) both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: #38bdf8; /* Bright cyan to stand out */
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem); /* Slightly larger */
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 10%, #a78bfa 50%, #38bdf8 100%); 
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  animation: gradient-shift 6s ease-in-out infinite, fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #ffffff;
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Stronger readability shadow */
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

/* ===== SEARCH BOX ===== */
.search-wrapper {
  max-width: 580px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
  position: relative;
}

.search-box-lg {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-lg {
  position: absolute;
  left: 1.25rem;
  color: #fff;
  pointer-events: none;
  display: flex;
  transition: all 0.3s;
}

.search-box-lg input {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 3.5rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4); /* Highly visible border */
  background: rgba(255, 255, 255, 0.08); /* Brighter glass background */
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-primary);
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-box-lg input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.search-box-lg input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6); /* Cyan glowing border */
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 0 12px 40px rgba(0, 0, 0, 0.5);
  background: rgba(17, 24, 39, 0.85);
}

.search-box-lg input:focus ~ .search-icon-lg,
.search-box-lg input:focus + .search-icon-lg {
  color: #38bdf8;
  transform: scale(1.1);
}


.search-count {
  position: absolute;
  right: 1.5rem;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ===== FILTER PILLS ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03); /* Faint glass */
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: var(--font-primary);
  backdrop-filter: blur(8px);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  padding: 2rem 0 5rem;
  position: relative;
  z-index: 1;
}

/* ===== TOOLS GRID — COLUMNS ===== */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ===== TOOL CARD ===== */
.tool-card {
  width: calc(25% - 0.75rem);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(6px);

  /* Staggered entrance animation */
  opacity: 0;
  transform: translateY(20px);
  animation: cardEnter 0.5s var(--ease-out) var(--delay, 0s) forwards;
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--border-glass-hover);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

/* Icon colors per category */
.tool-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}

.tool-icon.indigo { background: rgba(99,102,241,0.12); color: var(--accent-indigo-light); }
.tool-icon.violet { background: rgba(139,92,246,0.12); color: var(--accent-violet); }
.tool-icon.cyan { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }
.tool-icon.emerald { background: rgba(16,185,129,0.12); color: var(--accent-emerald); }
.tool-icon.pink { background: rgba(236,72,153,0.12); color: var(--accent-pink); }

.tool-card:hover .tool-icon {
  transform: scale(1.08);
}

.tool-icon svg { width: 20px; height: 20px; }

.tool-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.tool-name {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-card:hover .tool-name { color: #fff; }

.tool-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-arrow {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-6px);
  color: #ffffff;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-shrink: 0;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== NO RESULTS / NO TOOLS ===== */
.no-results-msg,
.no-tools-msg {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results-msg svg,
.no-tools-icon svg {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.no-results-msg h3,
.no-tools-msg h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.no-results-msg p,
.no-tools-msg p {
  font-size: 0.9rem;
}

/* Note: Footer styles (.site-footer-pro) are located in assets/css/footer.css. 
   Single Page Tool Viewer styles are located in assets/css/single-tool.css.
   SEO Content and FAQ styles are located in assets/css/seo-content.css and assets/css/faq.css. */

/* ===== INFO SECTIONS ("Why Use It" & "About") ===== */
.info-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.about-section {
  background: rgba(6, 8, 15, 0.4);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

.feat-icon-wrapper {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover .feat-icon-wrapper {
  background: var(--gradient-cta);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About Section */
.about-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}

.glass-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  animation: orb-pulse 6s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.about-glass-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s var(--ease-out);
}

.about-glass-panel:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-glass-panel ul {
  list-style: none;
}

.about-glass-panel li {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.about-glass-panel li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .about-flex { flex-direction: column; gap: 2rem; text-align: center; }
  .about-glass-panel { transform: none; }
  .about-glass-panel:hover { transform: translateY(-5px); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .tool-card { width: calc(33.333% - 0.67rem); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0.75rem 1rem; }



  .hero-compact { padding: 6rem 0 1rem; }

  .tools-grid { gap: 0.75rem; }
  .tool-card { width: calc(50% - 0.375rem); }

  .tool-card { padding: 1rem; }

  .filter-bar { gap: 0.375rem; }
  .filter-pill { font-size: 0.72rem; padding: 0.375rem 0.75rem; }
}

@media (max-width: 480px) {
  .tool-card { width: 100%; }

  .hero-compact { padding: 5.5rem 0 0.5rem; }

  .search-box-lg input { font-size: 0.875rem; padding: 0.8rem 2.5rem 0.8rem 2.75rem; }
}

/* ===== FLOWING GRADIENT HOVER ANIMATION (Tool Cards) ===== */
.tool-card {
  --gradient-angle: 0deg;
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 65%,
    rgba(99, 102, 241, 0.8) 75%,
    rgba(139, 92, 246, 0.8) 85%,
    rgba(34, 211, 238, 0.7) 95%,
    transparent 100%
  );
  padding: 2.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  animation: gradient-rotate 4s linear infinite;
}


@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradient-rotate {
  to { --gradient-angle: 360deg; }
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  background: rgba(15, 15, 20, 0.9);
  border-color: transparent;
}

/* Flowing gradient hover for feature cards */
.feature-card {
  --gradient-angle: 0deg;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 20px;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 65%,
    rgba(99, 102, 241, 0.8) 75%,
    rgba(139, 92, 246, 0.8) 85%,
    rgba(34, 211, 238, 0.7) 95%,
    transparent 100%
  );
  padding: 2.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  animation: gradient-rotate 4s linear infinite;
}


.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  background: rgba(15, 15, 20, 0.85);
  border-color: transparent;
}

/* Flowing gradient on related cards */
.related-card {
  --gradient-angle: 0deg;
  position: relative;
}

.related-card::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 65%,
    rgba(99, 102, 241, 0.8) 75%,
    rgba(139, 92, 246, 0.8) 85%,
    rgba(34, 211, 238, 0.7) 95%,
    transparent 100%
  );
  padding: 2.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  animation: gradient-rotate 4s linear infinite;
}


.related-card:hover::before {
  opacity: 1;
}

.related-card:hover {
  border-color: transparent;
}

/* Filter pill gradient hover */
.filter-pill {
  --gradient-angle: 0deg;
  position: relative;
  overflow: hidden;
}

.filter-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 0%,
    var(--accent-indigo) 15%,
    var(--accent-violet) 30%,
    transparent 45%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s var(--ease-out);
  animation: gradient-rotate 2.5s linear infinite;
}

.filter-pill:hover::before {
  opacity: 0.7;
}

/* Search box gradient glow on focus */
.search-box-lg input:focus {
  border-color: transparent;
  box-shadow:
    0 0 0 2px rgba(99,102,241,0.4),
    0 0 20px rgba(99,102,241,0.15),
    0 8px 32px rgba(0,0,0,0.2);
}

/* ===== VIEW ALL TOOLS CTA BUTTON ===== */
.view-all-tools-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  position: relative;
  overflow: hidden;
}

.btn-view-all::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease-out);
}

.btn-view-all:hover::after {
  left: 100%;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}

/* ===== PDF TOOL DIRECT MOUNT THEMING ===== */
/* Force complete black background for the entire page on single tool views */
body.single-pdf_tool,
body.single-pdf_tool #page,
body.single-pdf_tool main,
body.single-pdf_tool .site-content,
body.single-pdf_tool .tool-viewer-wrapper,
body.single-pdf_tool .direct-tool-container {
  background-color: #000000 !important;
  background: #000000 !important;
}



/* Force dropzone dashed line to be white */
body.single-pdf_tool #tool-direct-container #drop-zone,
body.single-pdf_tool #tool-direct-container [id*="drop-zone"] {
  border: 2px dashed #ffffff !important;
  border-color: #ffffff !important;
  background-color: #000000 !important;
}

body.single-pdf_tool #tool-direct-container #drop-zone *,
body.single-pdf_tool #tool-direct-container [id*="drop-zone"] * {
  color: #ffffff !important;
}

body.single-pdf_tool #tool-direct-container #drop-zone svg,
body.single-pdf_tool #tool-direct-container #drop-zone i,
body.single-pdf_tool #tool-direct-container [id*="drop-zone"] svg,
body.single-pdf_tool #tool-direct-container [id*="drop-zone"] i {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Fix password modal popups style and prevent them from being squished */
/* ===== PREMIUM & PROFESSIONAL PASSWORD MODALS ===== */
#password-modal, #password-batch-modal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}

#password-modal.flex, #password-batch-modal.flex {
  display: flex !important;
}

#password-modal > div,
#password-batch-modal > div {
  width: 100% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  background: linear-gradient(145deg, #131524, #0b0c16) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
}

#password-batch-modal > div {
  max-width: 500px !important;
}

/* Modal Inner Spacing */
#password-modal .p-6,
#password-batch-modal .p-6 {
  padding: 2rem !important;
  box-sizing: border-box !important;
}

/* Header Flex Row */
#password-modal .flex.items-start.gap-4,
#password-batch-modal .flex.items-start.gap-4 {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Icon box */
#password-modal .w-12.h-12,
#password-batch-modal .w-12.h-12 {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background-color: rgba(99, 102, 241, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

/* Title & Subtitle */
#password-modal-title,
#batch-modal-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.3px !important;
}

#password-modal-subtitle,
#batch-modal-filelist {
  font-size: 0.875rem !important;
  color: rgba(156, 163, 175, 0.9) !important;
  margin: 0 !important;
  word-break: break-all !important;
  white-space: normal !important;
}

/* Input Container Spacing */
#password-modal .mt-4,
#password-batch-modal .mt-4 {
  margin-top: 1.5rem !important;
}

/* Input field */
#password-modal-input,
#batch-modal-shared-input {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0.75rem 2.5rem 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transition: all 0.25s ease !important;
}

#password-modal-input:focus,
#batch-modal-shared-input:focus {
  border-color: rgba(99, 102, 241, 0.8) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
  outline: none !important;
}

/* Eye button */
#password-modal-toggle,
#batch-modal-shared-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: rgba(156, 163, 175, 0.8) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#password-modal-toggle:hover,
#batch-modal-shared-toggle:hover {
  color: #ffffff !important;
}

/* Error/Progress texts */
#password-modal-error,
#password-modal-progress,
#batch-modal-error,
#batch-modal-progress {
  font-size: 0.75rem !important;
  margin-top: 0.5rem !important;
}

/* Footer & Buttons */
#password-modal .flex.gap-3.p-4,
#password-batch-modal .flex.gap-3.p-4 {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 1.25rem 2rem 1.75rem !important;
  box-sizing: border-box !important;
  border-top: none !important;
}

/* Button general styling */
#password-modal button.flex-1,
#password-batch-modal button.flex-1 {
  flex: 1 1 0% !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  text-align: center !important;
}

/* Cancel / Skip button */
#password-modal-cancel,
#batch-modal-cancel {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#password-modal-cancel:hover,
#batch-modal-cancel:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Submit / Unlock button */
#password-modal-submit,
#batch-modal-submit {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
}

#password-modal-submit:hover,
#batch-modal-submit:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Flatten card elements (remove grey/blue card backgrounds and solid borders) */
body.single-pdf_tool #tool-direct-container #tool-uploader,
body.single-pdf_tool #tool-direct-container #tool-interface,
body.single-pdf_tool #tool-direct-container .bg-gray-800,
body.single-pdf_tool #tool-direct-container .border-gray-700,
body.single-pdf_tool #tool-direct-container .border {
  background-color: #000000 !important;
  background: #000000 !important;
  border-style: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}






