.hidden {
  display: none !important;
}

:root {
  --primary-color: #6366f1;
  /* Indigo */
  --primary-hover: #4f46e5;
  --bg-color: #0f172a;
  /* Slate 900 */
  --bg-secondary: #1e293b;
  /* Slate 800 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-color: #10b981;
  /* Emerald */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 5% 6rem;
  position: relative;
  background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.1), transparent 70%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  filter: blur(150px);
  opacity: 0.1;
  z-index: -1;
  border-radius: 50%;
}

.hero::before {
  top: -10%;
  left: 0;
}

.hero::after {
  bottom: 0;
  right: 0;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero h1.animate-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #6366f1 40%, #10b981 70%, #f8fafc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  letter-spacing: -0.02em;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero p.animate-fade {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  max-width: 750px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out;
}

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

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

/* Search Bar */
.search-wrapper {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.search-bar {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.6rem 1.2rem 0.6rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  position: relative;
}

.search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2), 0 25px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.search-bar i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
  outline: none;
  font-weight: 400;
}

.search-bar input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.search-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--accent-color);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  animation: smoothPulse 2.5s infinite;
}

@keyframes smoothPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
}

/* Category Filter */
.category-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.cat-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Tools Grid Filtering */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  transition: opacity 0.3s ease;
  padding-bottom: 4rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  animation: fadeInUp 0.6s ease backwards;
}

.glass-card.hidden {
  display: none !important;
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--primary-color);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.glass-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* No Results Message */
#noResults {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Tool Page Specific Styles */
.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Modern Footer Styles */
footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 5% 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-section ul li a::before {
  content: '→';
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
  opacity: 1;
}

.footer-bottom {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Cleanup */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 5% 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .search-bar {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    width: 95%;
    margin: 0 auto;
  }

  .tools-grid {
    grid-template-columns: 1fr !important;
    padding: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem 0;
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0.75rem 0;
    padding: 0.5rem 5%;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
  }

  .nav-links a:hover {
    border-left-color: var(--primary-color);
  }

  .menu-toggle {
    display: block;
  }

  .category-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 1rem 1rem;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    white-space: nowrap;
  }

  .category-menu::-webkit-scrollbar {
    display: none;
  }

  .cat-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .tool-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  /* Footer responsive for tablets */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-section:first-child {
    grid-column: span 2;
  }

  .footer-logo {
    font-size: 1.6rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .tool-header h1 {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .logo span {
    display: none;
  }

  /* Footer responsive for mobile */
  footer {
    padding: 3rem 5% 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section:first-child {
    grid-column: span 1;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-tagline {
    font-size: 0.85rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-bottom {
    margin-top: 3rem;
    padding: 1rem 0;
    font-size: 0.8rem;
  }

  /* Compact logo for small phones */
}

/* AdSense Placeholders */
.ad-placeholder {
  background: var(--glass-bg);
  border: 1px dashed var(--primary-color);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  margin: 2rem auto;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.ad-placeholder h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 0;
}

.ad-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.ad-placeholder .ad-label {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tool Page Components */
.tool-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Stats Row for Word Counter etc. */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-value span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Input Groups */
.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.input-group textarea,
.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="email"],
.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group textarea:focus,
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-group textarea {
  min-height: 200px;
  resize: vertical;
  font-family: 'Inter', monospace;
  line-height: 1.6;
}

.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236366f1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Result Box */
.result-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.result-content {
  padding-right: 4rem;
  word-break: break-all;
}

/* Schema Generator Specific */
.schema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-section,
.preview-section {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

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

.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.code-block {
  background: #1a1f2e;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Output Group */
.output-group {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.output-group h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Mobile-Friendly Test specific styles */
.score-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.score-circle {
  background: var(--primary-color);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.8rem;
}

.score-circle small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.status-badge.excellent {
  background: #10b981;
  color: white;
}

.status-badge.good {
  background: #3b82f6;
  color: white;
}

.status-badge.warning {
  background: #f59e0b;
  color: white;
}

.status-badge.poor {
  background: #ef4444;
  color: white;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.result-value {
  font-weight: 500;
  font-size: 0.9rem;
}

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

.result-value.warning {
  color: #f59e0b;
}

.issues-list {
  list-style: none;
  padding: 0;
}

.issues-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.issues-list li i {
  color: #ef4444;
  margin-right: 0.5rem;
}

.recommendations {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.recommendations ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.recommendations li {
  margin-bottom: 0.5rem;
}

.recommendations code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  color: #38bdf8;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-section {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid var(--primary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Tool Pages */
@media (max-width: 768px) {
  .tool-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .schema-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .tool-header h1 {
    font-size: 1.6rem;
  }

  .input-group textarea {
    min-height: 150px;
  }
}

/* Responsive ads */
@media (max-width: 768px) {
  .ad-placeholder {
    padding: 1.5rem;
    min-height: 70px;
    margin: 1.5rem auto;
  }
}