/* ============================================
   Privy Tools - Privacy-First Utility Tools
   Redesigned with modern glassmorphism and gradients
   ============================================ */

/* Design Tokens from Figma Design System */
:root {
  /* Spacing */
  --spacing: 0.25rem;
  --radius: 1rem;
  --radius-2xl: 1rem;
  
  /* Container Sizes */
  --container-md: 28rem;
  --container-2xl: 42rem;
  --container-4xl: 56rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;
  
  /* Typography */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  
  /* Effects */
  --blur-3xl: 64px;
  --default-transition-duration: 0.15s;
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Light Theme Colors */
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #0a0a0f;
  --card: rgba(255, 255, 255, 0.8);
  --card-foreground: #0a0a0f;
  --popover: rgba(255, 255, 255, 0.98);
  --popover-foreground: #0a0a0f;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #0a0a0f;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #6366f1;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(139, 92, 246, 0.15);
  --input: transparent;
  --input-background: rgba(243, 244, 246, 0.5);
  --switch-background: #e5e7eb;
  --ring: #8b5cf6;
  
  /* Chart Colors */
  --chart-1: #8b5cf6;
  --chart-2: #6366f1;
  --chart-3: #06b6d4;
  --chart-4: #10b981;
  --chart-5: #f59e0b;
  
  /* Gradient Colors */
  --color-red-500: oklch(0.637 0.237 25.331);
  --color-red-600: oklch(0.577 0.245 27.325);
  --color-orange-500: oklch(0.705 0.213 47.604);
  --color-orange-600: oklch(0.646 0.222 41.116);
  --color-amber-500: oklch(0.769 0.188 70.08);
  --color-green-500: oklch(0.723 0.219 149.579);
  --color-green-600: oklch(0.627 0.194 149.214);
  --color-emerald-500: oklch(0.696 0.17 162.48);
  --color-emerald-600: oklch(0.596 0.145 163.225);
  --color-teal-600: oklch(0.6 0.118 184.704);
  --color-cyan-500: oklch(0.715 0.143 215.221);
  --color-cyan-600: oklch(0.609 0.126 221.723);
  --color-blue-500: oklch(0.623 0.214 259.815);
  --color-blue-600: oklch(0.546 0.245 262.881);
  --color-indigo-500: oklch(0.585 0.233 277.117);
  --color-indigo-600: oklch(0.511 0.262 276.966);
  --color-violet-500: oklch(0.606 0.25 292.717);
  --color-violet-600: oklch(0.541 0.281 293.009);
  --color-purple-500: oklch(0.627 0.265 303.9);
  --color-purple-600: oklch(0.558 0.288 302.321);
  --color-pink-500: oklch(0.656 0.241 354.308);
  --color-pink-600: oklch(0.592 0.249 0.584);
  --color-rose-600: oklch(0.586 0.253 17.585);
  --color-white: #ffffff;
  
  /* Legacy support */
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --text-primary: #0a0a0f;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: rgba(139, 92, 246, 0.15);
  --accent-color: #8b5cf6;
  --accent-hover: #7c3aed;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
  --border-radius: 1rem;
}

/* Dark Theme - Default with smooth transitions */
[data-theme="dark"] {
  --background: #0a0a0f;
  --foreground: #f8f8ff;
  --card: rgba(20, 20, 30, 0.7);
  --card-foreground: #f8f8ff;
  --popover: rgba(20, 20, 30, 0.95);
  --popover-foreground: #f8f8ff;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #1e1e2e;
  --secondary-foreground: #f8f8ff;
  --muted: #27273a;
  --muted-foreground: #a8a8b8;
  --accent: #6366f1;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(139, 92, 246, 0.2);
  --input: rgba(30, 30, 46, 0.5);
  --ring: #8b5cf6;
  
  /* Legacy support */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1e1e2e;
  --text-primary: #f8f8ff;
  --text-secondary: #a8a8b8;
  --text-tertiary: #8b949e;
  --border-color: rgba(139, 92, 246, 0.2);
  --accent-color: #8b5cf6;
  --accent-hover: #9d73f7;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
  outline-color: var(--ring);
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1 {
  letter-spacing: -0.02em;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h2 {
  letter-spacing: -0.01em;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

p {
  font-size: 1.125rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.7;
  color: var(--foreground);
}

/* Lists */
ol, ul {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--foreground);
  margin: 1rem 0;
  padding-left: 2rem;
}

ol {
  list-style-type: decimal;
}

ul {
  list-style-type: disc;
}

li {
  margin: 0.5rem 0;
  padding-left: 0.5rem;
}

/* Utility Classes */
.glass-effect {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.animated-gradient {
  background: linear-gradient(-45deg, #8b5cf6, #6366f1, #06b6d4, #8b5cf6);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.glow {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
  transition: box-shadow 0.3s ease;
}

.glow:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .glow {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .glow:hover {
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Privacy Banner */
.privacy-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.privacy-banner .icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Development Notice Banner */
.development-notice {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.development-notice .icon {
  font-size: 16px;
}

.development-notice .feedback-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.development-notice .feedback-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header with Glassmorphism */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

header > div {
  max-width: 80rem;
  margin: 0 auto;
}

header .glass-effect {
  border-radius: var(--radius-2xl);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

header h2 {
  margin: 0;
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header h2 .logo-icon {
  padding: 0.5rem;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

header h2 .gradient-text {
  font-size: 1.5rem;
  font-weight: 700;
}

header a {
  color: var(--foreground);
  opacity: 0.7;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
}

header a:hover {
  opacity: 1;
  background-color: rgba(139, 92, 246, 0.1);
}

header a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

header a:hover::after {
  transform: scaleX(1);
}

#theme-toggle {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
}

#theme-toggle:hover {
  background-color: rgba(139, 92, 246, 0.2);
  transform: rotate(180deg);
}

#theme-toggle:active {
  transform: scale(0.95);
}

/* Add top spacing to main content due to fixed header */
main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 100px 1rem 2rem;
}

/* Hero Section with Modern Design */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1rem 2rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 6rem 1rem 3rem;
  }
}

/* Animated Background Gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: 0;
  background: linear-gradient(-45deg, #8b5cf6, #6366f1, #06b6d4, #8b5cf6);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

[data-theme="dark"] .hero::before {
  opacity: 0.2;
}

/* Floating Orbs */
.hero::after {
  content: '';
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  filter: blur(64px);
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

[data-theme="dark"] .hero::after {
  background: rgba(139, 92, 246, 0.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero .floating-orb-secondary {
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  filter: blur(64px);
  animation: pulse 4s ease-in-out infinite;
  animation-delay: 2s;
  z-index: 0;
}

[data-theme="dark"] .hero .floating-orb-secondary {
  background: rgba(99, 102, 241, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  padding: 8rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.7;
  animation: fadeInUp 0.8s ease forwards 0.2s;
  opacity: 0;
}

.hero-badge .icon {
  font-size: 1rem;
  color: var(--primary);
}

.hero h1 {
  max-width: 64rem;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h1 .text-normal {
    font-size: 2.5rem;
  }
}

.hero h1 .gradient-text {
  display: block;
  margin-bottom: 0.5rem;
}

.hero h1 .text-normal {
  color: var(--foreground);
  font-size: 3.5rem;
  font-weight: 700;
}

.hero p {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--foreground);
  opacity: 0.7;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease forwards 0.6s;
  opacity: 0;
}

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

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease forwards 0.8s;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-actions .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1.063rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.25), 0 4px 6px -4px rgba(139, 92, 246, 0.25);
}

.hero-actions .btn-primary:hover {
  background: rgba(139, 92, 246, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -3px rgba(139, 92, 246, 0.3), 0 6px 8px -4px rgba(139, 92, 246, 0.3);
}

.hero-actions .btn-primary .arrow-icon {
  transition: transform 0.3s ease;
}

.hero-actions .btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.hero-actions .btn-outline {
  background: transparent;
  color: var(--foreground);
  padding: 0.75rem 2rem;
  font-size: 1.063rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.hero-actions .btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  animation: fadeInUp 0.8s ease forwards 1s;
  opacity: 0;
}

.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.7;
}

[data-theme="dark"] .hero-feature-pill {
  background: rgba(139, 92, 246, 0.1);
}

.hero-feature-pill .icon {
  font-size: 1rem;
  color: var(--primary);
}

/* Compact Top Animation */
.hero-animation-top {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.6s ease forwards 0.5s;
  opacity: 0;
}

.comparison-container-compact {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  padding: 1rem;
}

.comparison-side-compact {
  flex: 1;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.comparison-side-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.comparison-side-compact.bad-side {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(to bottom, var(--card), rgba(239, 68, 68, 0.03));
}

.comparison-side-compact.bad-side:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.comparison-side-compact.good-side {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(to bottom, var(--card), rgba(34, 197, 94, 0.03));
}

.comparison-side-compact.good-side:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.title-icon {
  font-size: 1.25rem;
}

.animation-content-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  flex: 1;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  text-align: center;
  white-space: nowrap;
}

.step-label.danger {
  color: #ef4444;
  font-weight: 700;
}

.step-label.success {
  color: #22c55e;
  font-weight: 700;
}

.user-icon-small {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.arrow-animated {
  font-size: 1.5rem;
  opacity: 0.6;
  animation: arrowPulse 2s ease-in-out infinite;
  color: var(--primary);
  font-weight: bold;
}

.server-icon-small {
  font-size: 2.5rem;
  animation: serverBlink 2s ease-in-out infinite;
}

.threat-icons {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
}

.threat-icon {
  animation: threatPulse 1.5s ease-in-out infinite;
}

.threat-icon:nth-child(2) {
  animation-delay: 0.3s;
}

.browser-box {
  position: relative;
  font-size: 2.5rem;
}

.browser-icon {
  animation: float 3s ease-in-out infinite;
}

.process-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.25rem;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.success-icon {
  font-size: 2.5rem;
  color: #22c55e;
  font-weight: bold;
  animation: successPop 2s ease-in-out infinite;
}

.animation-subtitle {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.9;
}

/* Animation Keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

@keyframes serverBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes threatPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}



.comparison-divider-compact {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge-compact {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .comparison-container-compact {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .comparison-divider-compact {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  
  .comparison-side-compact {
    width: 100%;
  }
  
  .animation-content-compact {
    gap: 0.5rem;
  }
  
  .user-icon-small,
  .server-icon-small,
  .browser-icon,
  .success-icon {
    font-size: 2rem;
  }
  
  .arrow-animated {
    font-size: 1.25rem;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
  animation: fadeIn 1s ease forwards 1.2s, scrollBounce 2s ease-in-out infinite 1.2s;
  opacity: 0;
}

.hero-scroll-indicator::before {
  content: '';
  width: 0.25rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 9999px;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Legacy Animal Faces - Hidden in new design */
.animal-faces {
  display: none;
}

/* Hero Stats - Updated Design */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease forwards 1.1s;
  opacity: 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.7;
  font-weight: 500;
}

/* Tools Section with Category Tabs */
.tools-section {
  position: relative;
  padding: 2rem 1rem 4rem;
  margin-bottom: 0;
  scroll-margin-top: 80px;
}

.tools-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tools-section-header h2 {
  margin-bottom: 0.5rem;
}

.tools-section-header p {
  max-width: 42rem;
  margin: 0 auto;
  opacity: 0.7;
}

/* Category Cards - Creative Display */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto 2rem;
}

@media (max-width: 640px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before,
.category-card.active::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.category-card.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}

[data-theme="dark"] .category-card.active {
  background: rgba(139, 92, 246, 0.15);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-card-icon {
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  transition: transform 0.3s ease;
}

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

.category-card-title {
  flex: 1;
}

.category-card-title h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.6;
}

.category-card-description {
  font-size: 0.938rem;
  color: var(--foreground);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-card-tools-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--foreground);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.category-card:hover .tool-preview-chip {
  background: rgba(139, 92, 246, 0.15);
  opacity: 1;
}

.tool-preview-chip .icon {
  font-size: 0.875rem;
}

/* Category Tabs (Fallback/Alternative View) */
.category-tabs {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.938rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  opacity: 0.7;
}

.category-tab .icon {
  font-size: 1rem;
}

.category-tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
  opacity: 1;
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.25), 0 4px 6px -4px rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
}

.category-tab:hover:not(.active) {
  opacity: 1;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 200px;
  position: relative;
}

.tools-grid::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tool Card */
.tool-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--foreground);
  display: block;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  text-decoration: none !important;
}

.tool-card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

/* Gradient backgrounds for tool icons */
.tool-card-icon.gradient-indigo-purple {
  background: linear-gradient(135deg, var(--color-indigo-500) 0%, var(--color-purple-600) 100%);
}

.tool-card-icon.gradient-amber-orange {
  background: linear-gradient(135deg, var(--color-amber-500) 0%, var(--color-orange-600) 100%);
}

.tool-card-icon.gradient-green-emerald {
  background: linear-gradient(135deg, var(--color-green-500) 0%, var(--color-emerald-600) 100%);
}

.tool-card-icon.gradient-blue-cyan {
  background: linear-gradient(135deg, var(--color-blue-500) 0%, var(--color-cyan-600) 100%);
}

.tool-card-icon.gradient-purple-pink {
  background: linear-gradient(135deg, var(--color-purple-500) 0%, var(--color-pink-600) 100%);
}

.tool-card-icon.gradient-red-rose {
  background: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-rose-600) 100%);
}

.tool-card-icon.gradient-red-orange {
  background: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-orange-600) 100%);
}

.tool-card-icon.gradient-blue-indigo {
  background: linear-gradient(135deg, var(--color-blue-500) 0%, var(--color-indigo-600) 100%);
}

.tool-card-icon.gradient-green-teal {
  background: linear-gradient(135deg, var(--color-green-500) 0%, var(--color-teal-600) 100%);
}

.tool-card-icon.gradient-pink-rose {
  background: linear-gradient(135deg, var(--color-pink-500) 0%, var(--color-rose-600) 100%);
}

.tool-card-icon.gradient-purple-violet {
  background: linear-gradient(135deg, var(--color-purple-500) 0%, var(--color-violet-600) 100%);
}

.tool-card-icon.gradient-cyan-blue {
  background: linear-gradient(135deg, var(--color-cyan-500) 0%, var(--color-blue-600) 100%);
}

.tool-card-icon.gradient-orange-red {
  background: linear-gradient(135deg, var(--color-orange-500) 0%, var(--color-red-600) 100%);
}

.tool-card-icon.gradient-emerald-green {
  background: linear-gradient(135deg, var(--color-emerald-500) 0%, var(--color-green-600) 100%);
}

.tool-card-icon .icon {
  font-size: 1.5rem;
  color: white;
}

.tool-card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  text-decoration: none !important;
}

.tool-card-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
  opacity: 0.6;
  margin-bottom: 1rem;
  text-decoration: none !important;
}

.tool-card-action {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.tool-card-action .arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-action .arrow {
  transform: translateX(4px);
}

/* Hide old dropdown navigation */
.dropdown-nav,
.dropdown,
.dropdown-btn,
.dropdown-content,
.nav-container,
.tool-categories {
  display: none !important;
}

/* Features Section */
.features {
  padding: 6rem 1rem;
  margin-bottom: 0;
}

.features h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-card p {
  color: var(--foreground);
  opacity: 0.7;
  line-height: 1.6;
  font-size: 1rem;
}

/* Popular Tools Section */
.recent-tools {
  padding: 6rem 1rem;
  margin-bottom: 0;
}

.recent-tools h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--foreground);
}

.popular-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.popular-tool {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.popular-tool:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.popular-tool:hover .tool-icon {
  transform: scale(1.1);
}

.tool-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tool-info {
  flex: 1;
}

.tool-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.tool-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.tool-info p {
  color: var(--foreground);
  opacity: 0.85;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tool-info ol,
.tool-info ul {
  font-size: 0.95rem;
  margin: 0.75rem 0 1rem 0;
}

.tool-info li {
  margin: 0.5rem 0;
}

.usage-count {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* Tool Cards */
.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow);
  will-change: transform;
  position: relative;
  z-index: 1;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-color: var(--accent-color);
}

.tool-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* Tool Pages - Section Styling */
main section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  overflow: visible;
}

main section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

main section h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

main section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

main section > p:first-of-type {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

main section code {
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: var(--accent-color);
}

main section pre {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

main section pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* Form Elements */
textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

textarea:hover, input:hover, select:hover {
  border-color: var(--accent-color);
}

textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-block;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

button:disabled {
  background: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
}

/* Results */
#result {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
}

pre {
  background: var(--bg-primary);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
}

/* Error Messages */
#error-msg {
  color: var(--error-color);
  font-weight: 500;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--error-color);
}

/* Success Messages */
.success-msg {
  color: var(--success-color);
  font-weight: 500;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--success-color);
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--accent-color);
  background: var(--bg-secondary);
}

.file-upload.dragover {
  border-color: var(--accent-color);
  background: rgba(0, 123, 255, 0.1);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .animal-faces {
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: center;
  }
  
  .dropdown-btn {
    min-width: 250px;
  }
  
  main {
    padding: 20px 16px;
  }
  
  .quick-tools {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .popular-tools {
    grid-template-columns: 1fr;
  }
  
  .popular-tool {
    flex-direction: column;
    text-align: center;
  }
  
  section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .privacy-banner {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .category h2 {
    font-size: 1.5rem;
  }
  
  .tool-card {
    padding: 16px;
  }
  
  button {
    width: 100%;
    margin: 8px 0;
  }
}

/* Ad Styles */
.ad-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.ad-container h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.ad-container p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.ad-cta {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ad-cta:hover {
  background: var(--accent-hover);
}

.ad-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.ad-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.ad-item span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.ad-sidebar {
  position: sticky;
  top: 20px;
  max-width: 300px;
  margin-left: 20px;
}

.monetization-notice {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.monetization-notice .notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.monetization-notice button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}

.monetization-notice button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text-primary);
}

/* Responsive ad layout */
@media (max-width: 768px) {
  .ad-sidebar {
    position: static;
    max-width: none;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .ad-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Timezone Converter Styles */
.world-clock-section {
  margin-bottom: 40px;
}

.world-clocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.clock-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.clock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--accent-color);
}

.clock-city {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.clock-time {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  margin-bottom: 8px;
}

.clock-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.converter-section {
  margin-bottom: 40px;
}

.converter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.conversion-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.conversion-result h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.result-display {
  display: grid;
  gap: 12px;
}

.original-time,
.converted-time,
.time-difference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.original-time .label,
.converted-time .label,
.time-difference .label {
  font-weight: 600;
  color: var(--text-secondary);
}

.original-time .time,
.converted-time .time,
.time-difference .time {
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.converted-time {
  border-color: var(--accent-color);
  background: rgba(0, 123, 255, 0.05);
}

.quick-convert-section {
  margin-bottom: 40px;
}

.quick-convert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-convert-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow);
}

.quick-convert-btn:hover {
  background: var(--bg-primary);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quick-convert-btn .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quick-convert-btn .text {
  font-weight: 500;
  color: var(--text-primary);
}

.error-message {
  color: var(--error-color);
  font-weight: 500;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--error-color);
}

/* JSON Diff Styles */
.diff-section {
  margin-bottom: 40px;
}

.diff-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.input-group textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
}

.diff-controls {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.diff-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.diff-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diff-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.diff-stats {
  display: flex;
  gap: 12px;
}

.stat-added,
.stat-removed,
.stat-changed {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-added {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}

.stat-removed {
  background: rgba(220, 53, 69, 0.2);
  color: var(--error-color);
}

.stat-changed {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning-color);
}

.diff-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
}

.diff-left,
.diff-right {
  border-right: 1px solid var(--border-color);
}

.diff-right {
  border-right: none;
}

.diff-title {
  background: var(--bg-primary);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.diff-view {
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}

.diff-line {
  margin-bottom: 4px;
  padding: 2px 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diff-added {
  background: rgba(40, 167, 69, 0.1);
  border-left: 3px solid var(--success-color);
}

.diff-removed {
  background: rgba(220, 53, 69, 0.1);
  border-left: 3px solid var(--error-color);
}

.diff-changed {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid var(--warning-color);
}

.diff-unchanged {
  background: rgba(108, 117, 125, 0.1);
  border-left: 3px solid var(--text-secondary);
  color: var(--text-secondary);
}

.diff-error {
  background: rgba(220, 53, 69, 0.1);
  border-left: 3px solid var(--error-color);
  color: var(--error-color);
}

.diff-key {
  font-weight: 600;
  color: var(--text-primary);
}

.diff-value {
  color: var(--text-secondary);
}

.diff-string {
  color: var(--accent-color);
}

.diff-number {
  color: var(--warning-color);
}

.diff-boolean {
  color: var(--accent-color);
}

.diff-null {
  color: var(--text-secondary);
  font-style: italic;
}

.diff-undefined {
  color: var(--text-secondary);
  font-style: italic;
}

.diff-array {
  color: var(--success-color);
}

.diff-object {
  color: var(--accent-color);
}

/* Responsive timezone converter */
@media (max-width: 768px) {
  .world-clocks {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .converter-form {
    grid-template-columns: 1fr;
  }
  
  .quick-convert-grid {
    grid-template-columns: 1fr;
  }
  
  .clock-time {
    font-size: 1.4rem;
  }
  
  .original-time,
  .converted-time,
  .time-difference {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  /* JSON Diff responsive */
  .diff-inputs {
    grid-template-columns: 1fr;
  }
  
  .diff-content {
    grid-template-columns: 1fr;
  }
  
  .diff-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .diff-controls {
    flex-direction: column;
  }
  
  .diff-controls button {
    width: 100%;
  }
}

/* PDF Compressor Styles */
.pdf-compressor-section {
  margin-bottom: 40px;
}

.file-upload-area {
  margin-bottom: 30px;
}

.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--accent-color);
  background: var(--bg-secondary);
}

.file-upload.dragover {
  border-color: var(--accent-color);
  background: rgba(0, 123, 255, 0.1);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.upload-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-text p {
  color: var(--text-secondary);
  margin: 0;
}

.compression-options {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.compression-options h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.compression-controls {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.progress-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--success-color));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
}

.compression-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.result-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

.result-header h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.compression-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.stat-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.result-actions {
  padding: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.download-btn {
  background: var(--success-color);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-btn:hover {
  background: var(--success-color);
  transform: translateY(-2px);
}

.compare-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

.file-comparison {
  border-top: 1px solid var(--border-color);
  padding: 20px;
  background: var(--bg-primary);
}

.file-comparison h5 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
}

.comparison-item h6 {
  margin: 0 0 12px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.file-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 0;
}

.file-detail:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

/* QR Code Generator Styles */
.qr-generator-section {
  margin-bottom: 40px;
}

.qr-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.qr-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.qr-display {
  text-align: center;
  padding: 20px;
}

.qr-display canvas {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
}

.qr-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.qr-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.qr-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.info-content ul {
  margin: 0;
  padding-left: 20px;
}

.info-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Password Generator Styles */
.password-generator-section {
  margin-bottom: 40px;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.password-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.password-list {
  padding: 20px;
}

.password-item {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.password-display {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.password-input {
  flex: 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 1rem;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.copy-btn {
  padding: 8px 12px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.password-strength-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strength-bar-mini {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill-mini {
  height: 100%;
  transition: width 0.3s ease;
}

.strength-text-mini {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 60px;
}

.password-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.password-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
}

.password-strength {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.strength-meter {
  margin-bottom: 16px;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.strength-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.strength-details div {
  margin-bottom: 4px;
}

/* Text Case Converter Styles */
.text-converter-section {
  margin-bottom: 40px;
}

.converter-form {
  margin-bottom: 30px;
}

.case-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.case-btn {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.case-btn:hover {
  background: var(--bg-primary);
  border-color: var(--accent-color);
}

.case-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.text-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.text-stats {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.stat-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.case-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.info-item {
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* JWT Generator Styles */
.jwt-generator-section {
  margin-bottom: 40px;
}

.jwt-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.jwt-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.jwt-token {
  padding: 20px;
}

.jwt-token label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.jwt-token textarea {
  width: 100%;
  min-height: 80px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.jwt-breakdown {
  padding: 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.jwt-breakdown h5 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.breakdown-section {
  margin-bottom: 16px;
}

.breakdown-section h6 {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.breakdown-section pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
  overflow-x: auto;
  margin: 0;
}

.jwt-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.jwt-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.info-section {
  margin-bottom: 20px;
}

.info-section h5 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.info-section ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.info-section li {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-section p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* GST Calculator Styles */
.gst-calculator-section {
  margin-bottom: 40px;
}

.gst-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gst-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.calculation-breakdown {
  padding: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.breakdown-item.total {
  background: var(--accent-color);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.breakdown-item .label {
  font-weight: 600;
  color: var(--text-secondary);
}

.breakdown-item.total .label {
  color: white;
}

.breakdown-item .value {
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.breakdown-item.total .value {
  color: white;
}

.gst-breakdown {
  padding: 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.gst-breakdown h5 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.cgst-sgst {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gst-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.gst-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.info-content h5 {
  margin: 16px 0 8px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.info-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.info-content li {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Unit Converter Styles */
.unit-converter-section {
  margin-bottom: 40px;
}

.unit-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.unit-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.unit-info ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.unit-info li {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.unit-info p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Currency Converter Styles */
.currency-converter-section {
  margin-bottom: 40px;
}

.converter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.conversion-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.result-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

.result-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.result-content {
  padding: 20px;
}

.conversion-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.original-amount,
.converted-amount {
  text-align: center;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  min-width: 150px;
}

.original-amount .amount,
.converted-amount .amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.original-amount .currency,
.converted-amount .currency {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.conversion-arrow {
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: bold;
}

.exchange-rate {
  text-align: center;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.rate-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 8px;
}

.rate-value {
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.rate-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.rate-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.rates-table {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.currency-pair {
  font-weight: 600;
  color: var(--text-primary);
}

.rate {
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.rate-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* IFSC Finder Styles */
.ifsc-finder-section {
  margin-bottom: 40px;
}

.search-form {
  margin-bottom: 30px;
}

.ifsc-result, .ifsc-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.result-item .label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
}

.result-item .value {
  color: var(--text-secondary);
  text-align: right;
  flex: 1;
}

.data-source {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.data-source small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.ifsc-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
}

.ifsc-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.ifsc-info ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.ifsc-info li {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ifsc-info p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Encoder Section Styles */
.encoder-section {
  margin-bottom: 40px;
}

.encoder-form {
  margin-bottom: 30px;
}

.encoder-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.result-display {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
}

.encoder-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
}

.encoder-info h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.encoder-info ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.encoder-info li {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.encoder-info p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive PDF compressor */
@media (max-width: 768px) {
  .compression-stats {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .compression-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .diff-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .qr-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .password-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .download-btn,
  .compare-btn {
    width: 100%;
    justify-content: center;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .file-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  /* Currency converter responsive */
  .converter-form {
    grid-template-columns: 1fr;
  }
  
  .conversion-display {
    flex-direction: column;
    gap: 16px;
  }
  
  .conversion-arrow {
    transform: rotate(90deg);
  }
  
  .original-amount,
  .converted-amount {
    min-width: auto;
    width: 100%;
  }
  
  /* GST calculator responsive */
  .gst-form {
    grid-template-columns: 1fr;
  }
  
  .cgst-sgst {
    grid-template-columns: 1fr;
  }
  
  /* JWT generator responsive */
  .jwt-form {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .text-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Print Styles */
@media print {
  .privacy-banner,
  header,
  footer,
  button,
  .ad-container,
  .monetization-notice {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .tool-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-color);
  }
}

/* Feedback Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Hidden elements (like Netlify honeypot) */
.hidden {
  display: none !important;
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.rating {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.rating input[type="radio"] {
  display: none;
}

.rating label {
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  margin: 0;
  padding: 0;
}

.rating label:hover {
  transform: scale(1.1);
}

.rating input[type="radio"]:checked + label {
  color: #ffc107;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.feedback-message {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header responsive design */
  header {
    padding: 15px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  header h2 {
    font-size: 1.5rem;
  }
  
  #theme-toggle {
    font-size: 1rem;
    padding: 6px 10px;
  }
  
  /* Navigation responsive design */
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .tool-categories {
    justify-content: center;
    flex: none;
  }
  
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 2% auto;
    width: 95%;
    max-height: 96vh;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .rating label {
    font-size: 20px;
  }
}

/* Dark mode adjustments for modal */
[data-theme="dark"] .modal-content {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Development Notice */
.development-notice {
  background: linear-gradient(135deg, var(--warning-color) 0%, #ff8c00 100%);
  color: #000;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  position: sticky;
  top: 60px;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.development-notice .icon {
  font-size: 16px;
}

.feedback-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Footer Styles */
footer {
  background: var(--bg-secondary);
  padding: 30px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-1px);
}

footer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: var(--text-primary);
}

/* Form Styles */
#feedback-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: border-color 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 5px;
  align-items: center;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
  margin: 0;
  padding: 0;
}

.rating-stars label:hover,
.rating-stars input[type="radio"]:checked + label {
  color: #ffc107;
}

.rating-stars input[type="radio"]:checked ~ label {
  color: #ffc107;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

/* Responsive adjustments for development notice */
@media (max-width: 768px) {
  .development-notice {
    flex-direction: column;
    gap: 8px;
    padding: 15px 20px;
  }
  
  .development-notice .feedback-btn {
    margin-top: 5px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-content {
    margin: 2% auto;
    width: 95%;
    max-height: 96vh;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  #feedback-form {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .rating-stars label {
    font-size: 20px;
  }
}

/* UUID Generator Styles */
.uuid-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.uuid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.uuid-item {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.uuid-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uuid-text {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-all;
}

/* Color Picker Styles */
.color-picker-form {
  margin-bottom: 20px;
}

.color-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-input-container input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.color-input-container input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.color-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.preview-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
}

.preview-info {
  flex: 1;
}

.color-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.color-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

.color-formats {
  margin: 20px 0;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.format-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.format-item label {
  font-weight: 600;
  color: var(--text-primary);
}

.format-display {
  display: flex;
  gap: 5px;
}

.format-display input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.copy-btn {
  padding: 8px 12px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

.color-palette {
  margin: 20px 0;
}

.palette-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.palette-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.palette-color {
  height: 60px;
  width: 100%;
}

.palette-info {
  padding: 8px;
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.palette-hex {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Timestamp Converter Styles */
.timestamp-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.timestamp-formats {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.timestamp-formats .format-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timestamp-formats .format-item label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.timestamp-formats .format-display {
  display: flex;
  gap: 5px;
}

.timestamp-formats .format-display input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

/* Google CMP Consent Banner Styles */
.gdpr-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gdpr-consent-banner.show {
  transform: translateY(0);
}

.gdpr-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gdpr-consent-text {
  flex: 1;
  min-width: 300px;
}

.gdpr-consent-text h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 16px;
}

.gdpr-consent-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.gdpr-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gdpr-consent-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 100px;
}

.gdpr-consent-btn.accept {
  background: var(--accent-color);
  color: white;
}

.gdpr-consent-btn.accept:hover {
  background: var(--accent-hover);
}

.gdpr-consent-btn.manage {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.gdpr-consent-btn.manage:hover {
  background: var(--bg-secondary);
}

.gdpr-consent-btn.decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.gdpr-consent-btn.decline:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Overlay for manage options */
.gdpr-manage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gdpr-manage-overlay.show {
  display: flex;
}

.gdpr-manage-modal {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.gdpr-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gdpr-manage-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.gdpr-manage-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdpr-manage-close:hover {
  color: var(--text-primary);
}

.gdpr-manage-content {
  margin-bottom: 20px;
}

.gdpr-manage-section {
  margin-bottom: 20px;
}

.gdpr-manage-section h4 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: 16px;
}

.gdpr-manage-section p {
  margin: 0 0 15px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.gdpr-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.gdpr-toggle:last-child {
  border-bottom: none;
}

.gdpr-toggle-label {
  flex: 1;
}

.gdpr-toggle-label strong {
  color: var(--text-primary);
  font-size: 14px;
}

.gdpr-toggle-label small {
  color: var(--text-secondary);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.gdpr-toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.gdpr-toggle-switch.active {
  background: var(--accent-color);
}

.gdpr-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.gdpr-toggle-switch.active::after {
  transform: translateX(26px);
}

.gdpr-manage-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.gdpr-manage-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gdpr-manage-btn.primary {
  background: var(--accent-color);
  color: white;
}

.gdpr-manage-btn.primary:hover {
  background: var(--accent-hover);
}

.gdpr-manage-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.gdpr-manage-btn.secondary:hover {
  background: var(--bg-secondary);
}

/* Responsive adjustments for new tools */
@media (max-width: 768px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
  
  .palette-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .color-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .color-input-container input[type="color"] {
    width: 100%;
    height: 50px;
  }
  
  .color-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .preview-box {
    width: 80px;
    height: 80px;
  }
  
  .gdpr-consent-content {
    flex-direction: column;
    text-align: center;
  }
  
  .gdpr-consent-text {
    min-width: auto;
  }
  
  .gdpr-consent-actions {
    justify-content: center;
  }
  
  .gdpr-manage-modal {
    margin: 10px;
  }
}

/* ============================================
   Missing Homepage Sections - SEO & Content
   ============================================ */

/* SEO Content Section */
.seo-content {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.seo-content h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--foreground);
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.content-block {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .content-block {
  background: rgba(139, 92, 246, 0.1);
}

.content-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.content-block h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.content-block p {
  color: var(--foreground);
  opacity: 0.7;
  line-height: 1.6;
  font-size: 0.938rem;
}

/* FAQ Section */
.faq-section {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.faq-section h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--foreground);
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
  background: rgba(139, 92, 246, 0.1);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.faq-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h4::before {
  content: "❓";
  font-size: 1.25rem;
}

.faq-item p {
  color: var(--foreground);
  opacity: 0.7;
  line-height: 1.6;
  font-size: 0.938rem;
  margin: 0;
}

/* ============================================
   Component Improvements
   ============================================ */

/* Enhanced Buttons with Icons */
button.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button.btn-icon::before {
  font-size: 1.1rem;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Improved code blocks */
code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--accent-color);
}

/* Better link underlines (exclude dropdown and navigation links) */
main section a:not(.popular-tool):not(.dropdown-btn) {
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

main section a:not(.popular-tool):not(.dropdown-btn):hover {
  text-decoration-color: var(--accent-hover);
}

/* Ensure dropdown links never have underlines */
.dropdown-content a {
  text-decoration: none !important;
}

/* Loading states */
button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Tooltips */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Badge component */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-color);
  color: white;
}

.badge.success {
  background: var(--success-color);
}

.badge.error {
  background: var(--error-color);
}

.badge.warning {
  background: var(--warning-color);
  color: var(--text-primary);
}

/* ============================================
   Theme Toggle Toast Animations
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* ============================================
   GDPR Consent Banner & Modal Styles
   ============================================ */

/* Banner */
.gdpr-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-banner.show {
  bottom: 0;
}

.gdpr-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.gdpr-banner-text h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem 0;
  color: var(--foreground);
}

.gdpr-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.gdpr-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gdpr-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.gdpr-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.gdpr-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gdpr-btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.gdpr-btn-secondary:hover {
  opacity: 0.9;
}

.gdpr-btn-text {
  background: transparent;
  color: var(--muted-foreground);
  padding: 0.625rem 0.75rem;
}

.gdpr-btn-text:hover {
  color: var(--foreground);
}

/* Modal Overlay */
.gdpr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gdpr-overlay.show {
  display: flex;
}

.gdpr-modal {
  background: var(--card);
  border-radius: 1rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gdpr-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gdpr-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--foreground);
}

.gdpr-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.gdpr-close-btn:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.gdpr-modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.gdpr-preference-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  margin-bottom: 1rem;
}

.gdpr-preference-item:last-child {
  margin-bottom: 0;
}

.gdpr-preference-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--foreground);
}

.gdpr-preference-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.gdpr-toggle {
  flex-shrink: 0;
}

.gdpr-toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--muted);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.gdpr-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.gdpr-toggle-switch.active {
  background: var(--primary);
}

.gdpr-toggle-switch.active::after {
  transform: translateX(20px);
}

.gdpr-toggle-disabled .gdpr-toggle-switch {
  opacity: 0.5;
  cursor: not-allowed;
}

.gdpr-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.gdpr-modal-footer .gdpr-btn {
  width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gdpr-banner-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }
  
  .gdpr-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .gdpr-btn {
    width: 100%;
    justify-content: center;
  }
  
  .gdpr-modal {
    margin: 1rem;
  }
}

/* ============================================
   Responsive Improvements
   ============================================ */

@media (max-width: 768px) {
  .content-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-content,
  .faq-section {
    padding: 24px;
  }
  
  .seo-content h3,
  .faq-section h3 {
    font-size: 1.5rem;
  }
  
  .content-block,
  .faq-item {
    padding: 20px;
  }
}

/* ============================================
   Enhanced Calculator Styling
   ============================================ */

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
}

.input-card, .result-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .input-card,
[data-theme="dark"] .result-card {
  background: rgba(20, 20, 30, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-card h2, .result-card h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.input-group input[type="number"],
.input-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--input-background);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
}

[data-theme="dark"] .input-group input[type="number"],
[data-theme="dark"] .input-group input[type="text"] {
  background: rgba(30, 30, 46, 0.5);
  border-color: rgba(139, 92, 246, 0.3);
}

.input-with-unit {
  position: relative;
}

.input-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-weight: 500;
  pointer-events: none;
}

.slider-container {
  margin-top: 0.5rem;
}

.range-slider,
.slider-container input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

[data-theme="dark"] .range-slider,
[data-theme="dark"] .slider-container input[type="range"] {
  background: #374151;
}

.range-slider::-webkit-slider-thumb,
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
}

.range-slider::-moz-range-thumb,
.slider-container input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: none;
}

.range-labels,
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.calculate-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.result-summary,
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .result-summary,
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.result-item,
.result-card {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

[data-theme="dark"] .result-item,
[data-theme="dark"] .result-card {
  background: linear-gradient(135deg, #1e1e2e 0%, #27273a 100%);
}

.result-item.highlight {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.result-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.result-value.green {
  color: #10b981;
}

.result-subvalue {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.breakdown-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.breakdown-table th,
.data-table th {
  background: #f3f4f6;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

[data-theme="dark"] .breakdown-table th,
[data-theme="dark"] .data-table th {
  background: #1e1e2e;
  color: var(--foreground);
}

.breakdown-table td,
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: var(--foreground);
}

[data-theme="dark"] .breakdown-table td,
[data-theme="dark"] .data-table td {
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.breakdown-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: none;
}

.chart-container,
.chart-wrapper {
  width: 100%;
  height: 300px;
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chart-container,
[data-theme="dark"] .chart-wrapper {
  background: rgba(20, 20, 30, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-box,
.info-note {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #1e40af;
}

[data-theme="dark"] .info-box,
[data-theme="dark"] .info-note {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toggle-switch input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
  width: 48px;
  height: 24px;
  position: relative;
  appearance: none;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

[data-theme="dark"] .toggle-switch input[type="checkbox"],
[data-theme="dark"] .checkbox-label input[type="checkbox"] {
  background: #374151;
}

.toggle-switch input[type="checkbox"]:checked,
.checkbox-label input[type="checkbox"]:checked {
  background: #6366f1;
}

.toggle-switch input[type="checkbox"]::before,
.checkbox-label input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: left 0.3s;
}

.toggle-switch input[type="checkbox"]:checked::before,
.checkbox-label input[type="checkbox"]:checked::before {
  left: 26px;
}

.toggle-switch label,
.checkbox-label span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.year-breakdown,
.breakdown-section {
  margin-top: 1.5rem;
}

.table-container {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1rem;
}

.table-container::-webkit-scrollbar {
  width: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

[data-theme="dark"] .table-container::-webkit-scrollbar-track {
  background: #1e1e2e;
}

.table-container::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 3px;
}

.breakdown-section h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.real-value-note {
  text-align: center;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 600;
}

[data-theme="dark"] .real-value-note {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}