@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --warm-accent: #fbbf24; /* Golden yellow for creativity */
  --soft-green: #34d399; /* Soft green for success */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  direction: rtl;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Static Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(138, 43, 226, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #60a5fa, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(50, 205, 50, 0.7), transparent),
    radial-gradient(2px 2px at 160px 30px, #e879f9, transparent),
    radial-gradient(1.5px 1.5px at 250px 60px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 300px 90px, #8a2be2, transparent),
    radial-gradient(2px 2px at 350px 40px, #34d399, transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  pointer-events: none;
  z-index: -1;
}

/* Static Cosmic particles */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(138, 43, 226, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #60a5fa, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(50, 205, 50, 0.7), transparent),
    radial-gradient(2px 2px at 160px 30px, #e879f9, transparent),
    radial-gradient(1.5px 1.5px at 250px 60px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 300px 90px, #8a2be2, transparent),
    radial-gradient(2px 2px at 350px 40px, #34d399, transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  pointer-events: none;
  z-index: -1;
}

nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.nav-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 12px 20px;
  border-radius: 25px;
  overflow: hidden;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-links a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.dark-mode-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 144, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(50, 205, 50, 0.2) 0%, transparent 50%);
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero p {
  margin-top: 25px;
  font-size: 22px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.hero-btn {
  display: inline-block;
  margin-top: 40px;
  background: linear-gradient(135deg, #8a2be2, #1e90ff);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e90ff, #8a2be2);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(138, 43, 226, 0.5);
}

.hero-btn:hover::before {
  opacity: 1;
}

.home-container {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  margin-bottom: 25px;
  font-size: 26px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.tool-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.tool-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.08) 30%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(6, 182, 212, 0.08) 70%,
    transparent 100%);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.tool-box::after {
  content: '';
}

body.dark-mode .dark-mode-toggle:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  border-color: rgba(251, 191, 36, 0.6);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 144, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(50, 205, 50, 0.2) 0%, transparent 50%);
}



.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  color: var(--primary-color);
  text-shadow:
    0 0 20px rgba(212, 175, 55, 0.8),
    2px 2px 4px rgba(10, 10, 10, 0.8);
  animation: ancientReveal 3s ease-out;
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes ancientReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    text-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 20px rgba(212, 175, 55, 0.8),
      2px 2px 4px rgba(10, 10, 10, 0.8);
  }
}

.hero p {
  margin-top: 25px;
  font-size: 22px;
  opacity: 0.9;
  color: var(--text-secondary);
  font-family: 'Orbitron', monospace;
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
  animation: ancientReveal 3s ease-out 0.5s both;
}

.hero-btn {
  display: inline-block;
  margin-top: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
  padding: 20px 50px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Cinzel', serif;
  border: 3px solid var(--primary-color);
  background-clip: padding-box;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.4),
    inset 0 0 0 0 rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: ancientReveal 3s ease-out 1s both;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 15px 50px rgba(212, 175, 55, 0.6),
    inset 0 0 20px rgba(212, 175, 55, 0.3);
  color: var(--bg-primary);
}

.hero-btn:hover::before {
  opacity: 1;
}

.home-container {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  margin-bottom: 25px;
  font-size: 26px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

/* Ancient Artifact Tool Boxes */
.tool-box {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  border: 3px solid var(--primary-color);
  border-radius: 0;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.3),
    inset 0 0 0 2px rgba(212, 175, 55, 0.1),
    0 0 50px rgba(212, 175, 55, 0.1);
  cursor: pointer;
  font-family: 'Cinzel', serif;
}

.tool-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 25%,
    rgba(184, 115, 51, 0.3) 50%,
    rgba(212, 175, 55, 0.2) 75%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}

.tool-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(74, 14, 78, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(184, 115, 51, 0.08) 0.5px, transparent 0.5px);
  background-size: 30px 30px, 40px 40px, 25px 25px;
  opacity: 0.3;
  z-index: -1;
}

.tool-box:hover::before {
  opacity: 1;
}

.tool-box:hover::after {
  opacity: 0.6;
}

.tool-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(212, 175, 55, 0.5),
    inset 0 0 30px rgba(212, 175, 55, 0.2),
    0 0 80px rgba(212, 175, 55, 0.3);
  border-color: var(--secondary-color);
}

.tool-box:active {
  transform: translateY(-4px) scale(1.01);
  transition: all 0.1s ease;
}

.tool-box .icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--primary-color);
  transition: all 0.6s ease;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.tool-box:hover .icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--secondary-color);
  text-shadow: 0 0 30px rgba(184, 115, 51, 1);
  filter: drop-shadow(0 0 20px rgba(184, 115, 51, 0.8));
}

.tool-box h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.tool-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
}

.btn {
  background: linear-gradient(135deg, #8a2be2, #1e90ff);
  color: white;
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  display: inline-block;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #2c7be5;
}

.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-left: 30px;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #2c7be5;
}

.icon {
  font-size: 36px;
  margin-bottom: 15px;
}

/* ===== PDF TOOLS SPECIFIC STYLES ===== */

/* Header for PDF tools pages */
header {
  background: linear-gradient(135deg, #2c7be5, #1a5fd0);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  margin: 0;
  font-size: 30px;
}

header p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

/* Tool Page Container */
.tool-page {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.tool-page:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tool-page h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.tool-page p {
  color: #555;
  font-size: 15px;
  margin-bottom: 20px;
}

/* File Upload Area */
.upload-area {
  border: 2px dashed #2c7be5;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  background: #f8f9fa;
  transition: background 0.3s;
  cursor: pointer;
}

.upload-area:hover {
  background: #e9ecef;
}

.upload-area.dragover {
  background: #d1ecf1;
  border-color: #17a2b8;
}

.upload-icon {
  font-size: 48px;
  color: #2c7be5;
  margin-bottom: 10px;
}

.upload-text {
  color: #555;
  font-size: 16px;
}

/* Inputs */
input[type="file"] {
  display: none;
}

/* Buttons */
button,
.btn {
  background: #2c7be5;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover,
.btn:hover {
  background: #1f63c3;
}

/* Loading */
.loading {
  margin-top: 20px;
  font-weight: bold;
  color: #2c7be5;
  text-align: center;
  display: none;
}

.loading.show {
  display: block;
}

/* Result Section */
.result {
  margin-top: 40px;
  display: none;
}

.result.show {
  display: block;
}

/* Images Grid */
#images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

#images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Download Button */
.download-btn {
  display: inline-block;
  margin-top: 10px;
  background: #28a745;
  padding: 8px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.download-btn:hover {
  opacity: 0.9;
}

/* Back Link */
.back-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: #2c7be5;
  text-decoration: none;
  font-weight: bold;
}

/* PDF Tools Grid */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* PDF Card */
.pdf-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* PDF Icon */
.pdf-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* PDF Card Text */
.pdf-card h3 {
  margin: 10px 0;
  font-size: 18px;
}

.pdf-card p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== CALCULATOR STYLES ===== */

/* Calculator Container */
.calculator-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.calculator-container:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* History Section */
.history-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.history-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: var(--text-primary);
}

.history-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.history-item {
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  font-family: 'Cairo', monospace;
  font-size: 14px;
}

.history-item .expression {
  color: var(--text-secondary);
}

.history-item .result {
  color: var(--success-color);
  font-weight: bold;
}

.clear-history {
  width: 100%;
  background: var(--error-color) !important;
  color: white !important;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-normal);
}

.clear-history:hover {
  background: #dc3545 !important;
  transform: translateY(-1px);
}

/* Calculator Inputs */
.calc-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s ease;
}

.calc-input:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* Calculator Buttons */
.buttons-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.calc-btn {
  background: #2c7be5;
  color: white;
  border: none;
  padding: 20px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 123, 229, 0.3);
}

.calc-btn:hover {
  background: #1f63c3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 123, 229, 0.4);
}

.calc-btn:active {
  transform: translateY(0);
}

/* Result Display */
.result-display {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  animation: fadeIn 0.5s ease;
}



/* Error Display */
.error-display {
  margin-top: 15px;
  padding: 15px;
  background: #fee;
  color: #c33;
  border-radius: 8px;
  border-left: 4px solid #c33;
  text-align: center;
  font-weight: bold;
}

/* ===== CURRENCY CONVERTER ENHANCEMENTS ===== */

/* Converter Container */
.converter-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* Currency Group */
.currency-group {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 25px;
}

.currency-select {
  flex: 1;
}

.currency-select label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.currency-select select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.currency-select select:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* Swap Button */
.swap-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-btn:hover {
  background: #218838;
  transform: rotate(180deg);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Result Container */
.result-container {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  animation: fadeIn 0.5s ease;
}

.result-container h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
}

#conversion-result {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

#rate-info {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== DATE COUNTER ENHANCEMENTS ===== */

/* Date Inputs */
input[type="date"] {
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  width: 100%;
  transition: border-color 0.3s ease;
}

input[type="date"]:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* Results Container */
#results {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-item {
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
  transition: transform 0.3s ease;
}

.result-item:hover {
  transform: translateY(-2px);
}

/* ===== DARK MODE SUPPORT ===== */

/* Dark mode variables - Vintage Sepia Theme */
:root {
  --bg-color: #f4f6f9;
  --text-color: #333;
  --card-bg: white;
  --nav-bg: #fff;
  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --footer-bg: #333;
}

body.dark-mode {
  --bg-color: #2c1810; /* Dark Sepia Brown */
  --text-color: #d4c4a8; /* Warm Beige */
  --card-bg: #3d2518; /* Darker Sepia */
  --nav-bg: #2c1810; /* Matching background */
  --hero-bg: linear-gradient(135deg, #3d2518 0%, #4a2c1a 50%, #5d3520 100%);
  --footer-bg: #1a0f0a; /* Deep Sepia */
  --primary-color: #daa520; /* Goldenrod */
  --secondary-color: #cd853f; /* Peru */
  --accent-color: #f4a460; /* Sandy Brown */
  --text-primary: #d4c4a8; /* Warm Beige */
  --text-secondary: #b8a085; /* Muted Beige */
  --border-color: #8b7355; /* Sepia Border */
}

body.dark-mode {
  background: var(--bg-color);
  color: var(--text-color);
}

body.dark-mode nav {
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .tool-page,
body.dark-mode .calculator-container,
body.dark-mode .converter-container {
  background: var(--card-bg);
  color: var(--text-color);
}

body.dark-mode .hero {
  background: var(--hero-bg);
}

body.dark-mode .footer {
  background: var(--footer-bg);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.dark-mode-toggle:hover {
  background: rgba(0,0,0,0.1);
}

body.dark-mode .dark-mode-toggle {
  color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* Loading States and Progress Indicators */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  will-change: transform;
}



.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: var(--radius-sm);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.875rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Help Section */
.help-section {
  background: var(--bg-secondary);
  padding: 60px 20px;
  text-align: center;
}

.help-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--text-primary);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.help-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.help-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.help-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.help-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus management */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --border-color: #000000;
  }

  body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --border-color: #ffffff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility Classes for Inline Styles */
.hidden {
  display: none;
}

.mt-15 {
  margin-top: 15px;
}

.text-red {
  color: var(--error-color);
}

.text-gray {
  color: var(--text-secondary);
}

.flex-gap {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.w-100 {
  width: 100%;
}

.h-200 {
  height: 200px;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .nav-container {
    padding: 15px 25px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .tool-box {
    padding: 2rem 1.5rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (min-width: 1201px) {
  .nav-container {
    padding: 25px 40px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }

  .tool-box {
    padding: 3rem 2.5rem;
  }

  .btn {
    padding: 16px 32px;
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .nav-logo {
    font-size: 24px;
  }

  .nav-links a {
    padding: 10px 18px;
    font-size: 15px;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 20px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .tool-box {
    padding: 1.5rem;
  }

  .help-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links li {
    margin: 5px;
  }

  .nav-links a {
    padding: 8px 16px;
    font-size: 14px;
  }

  .user-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-top: 10px;
  }

  .user-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .user-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .user-form button {
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
  }

  .hero {
    padding: 60px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-btn {
    padding: 15px 30px;
    font-size: 16px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-box {
    padding: 1.25rem;
    text-align: center;
  }

  .tool-box .icon {
    font-size: 2.5rem;
  }

  .tool-box h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .tool-box p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .tool-page {
    margin: 15px;
    padding: 20px;
  }

  .upload-area {
    padding: 25px 15px;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-links li {
    margin: 0 10px;
  }

  /* Mobile calculator adjustments */
  .buttons-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calc-btn {
    padding: 18px;
    font-size: 18px;
    min-height: 50px;
  }

  /* Mobile currency converter */
  .currency-group {
    flex-direction: column;
    gap: 12px;
  }

  .currency-select select,
  .input-group input {
    padding: 12px;
    font-size: 16px;
  }

  .swap-btn {
    align-self: center;
    margin: 8px 0;
    width: 50px;
    height: 50px;
  }

  .help-section {
    padding: 40px 20px;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-item {
    padding: 1.5rem;
  }

  .modal-content {
    margin: 20px;
    width: calc(100vw - 40px);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 15px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .tool-box {
    padding: 1rem;
  }

  .tool-box .icon {
    font-size: 2rem;
  }

  .tool-box h3 {
    font-size: 1rem;
  }

  .tool-box p {
    font-size: 0.8125rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .tool-page {
    margin: 10px;
    padding: 15px;
  }

  .upload-area {
    padding: 20px 12px;
  }

  .calc-btn {
    padding: 15px;
    font-size: 16px;
    min-height: 45px;
  }

  .help-section {
    padding: 30px 15px;
  }

  .help-item {
    padding: 1.25rem;
  }

  .help-item h3 {
    font-size: 1.125rem;
  }

  .help-item p {
    font-size: 0.875rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .tool-box:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .nav-links a:hover {
    transform: none;
  }
}

/* ===== CV BUILDER TEMPLATES ===== */

/* Professional Template - Corporate Style */
.cv-document.template-professional {
  font-family: 'Times New Roman', serif;
  background: #ffffff;
  border: 2px solid #2c3e50;
  color: #2c3e50;
}

.cv-document.template-professional .cv-header {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
  padding: 30px;
  border-bottom: 3px solid #3498db;
}

.cv-document.template-professional .cv-name-section h1 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: white;
}

.cv-document.template-professional .cv-name-section h2 {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: normal;
  margin: 5px 0 0 0;
  color: #bdc3c7;
}

.cv-document.template-professional .cv-contact-info {
  margin-top: 20px;
}

.cv-document.template-professional .contact-item {
  color: #ecf0f1;
  margin-bottom: 8px;
}

.cv-document.template-professional .cv-section {
  border-bottom: 1px solid #bdc3c7;
  padding: 20px 0;
  margin-bottom: 15px;
}

.cv-document.template-professional .cv-section h3 {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.cv-document.template-professional .cv-section p,
.cv-document.template-professional .cv-section div {
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  color: #34495e;
}

/* Creative Template - Modern Design */
.cv-document.template-creative {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.cv-document.template-creative .cv-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 40px 30px;
  position: relative;
}

.cv-document.template-creative .cv-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="90" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cv-document.template-creative .cv-name-section h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.cv-document.template-creative .cv-name-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  margin: 10px 0 0 0;
  color: #ffeaa7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-document.template-creative .cv-contact-info {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cv-document.template-creative .contact-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cv-document.template-creative .contact-item .contact-icon {
  margin-left: 5px;
}

.cv-document.template-creative .cv-content {
  background: rgba(255, 255, 255, 0.95);
  color: #2d3436;
  padding: 30px;
  margin: 0;
}

.cv-document.template-creative .cv-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 5px solid #f093fb;
  transition: transform 0.3s ease;
}

.cv-document.template-creative .cv-section:hover {
  transform: translateY(-2px);
}

.cv-document.template-creative .cv-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f093fb;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-document.template-creative .cv-section p,
.cv-document.template-creative .cv-section div {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: #636e72;
}

/* Template Preview Thumbnails */
.template-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.template-option {
  position: relative;
}

.template-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.template-preview {
  width: 180px;
  height: 120px;
  border: 3px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.template-option input[type="radio"]:checked + .template-preview {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  transform: scale(1.05);
}

.template-name {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 5px;
}

.template-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

/* Professional Template Preview */
.template-option input[value="professional"]:checked + .template-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  opacity: 0.1;
  border-radius: 5px;
}

.template-option input[value="professional"]:checked + .template-preview .template-name {
  color: #2c3e50;
}

/* Creative Template Preview */
.template-option input[value="creative"]:checked + .template-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.1;
  border-radius: 5px;
}

.template-option input[value="creative"]:checked + .template-preview .template-name {
  color: #667eea;
}

/* Modern Template Preview (existing) */
.template-option input[value="modern"]:checked + .template-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0.1;
  border-radius: 5px;
}

.template-option input[value="modern"]:checked + .template-preview .template-name {
  color: #6366f1;
}

/* Classic Template Preview (existing) */
.template-option input[value="classic"]:checked + .template-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  opacity: 0.1;
  border-radius: 5px;
}

.template-option input[value="classic"]:checked + .template-preview .template-name {
  color: #374151;
}
