@import './webforge-tokens.css';

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body.wf-body {
  font-family: var(--wf-font-sans);
  background-color: var(--wf-bg);
  color: var(--wf-text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wf-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.wf-container-narrow {
  max-width: 860px;
}

/* Header & Navbar */
.wf-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--wf-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wf-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wf-text-main);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wf-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: var(--wf-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.wf-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-nav-link {
  color: var(--wf-text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--wf-transition-fast);
  padding: 6px 0;
  position: relative;
}

.wf-nav-link:hover, .wf-nav-link.active {
  color: var(--wf-primary);
}

.wf-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--wf-primary);
  border-radius: 2px;
}

.wf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--wf-text-main);
  cursor: pointer;
}

/* Hero Section */
.wf-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--wf-bg-alt) 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--wf-border);
}

.wf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--wf-primary-subtle);
  color: var(--wf-primary);
  border-radius: var(--wf-radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.wf-hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wf-text-main);
  margin: 0 0 14px;
  line-height: 1.2;
}

.wf-hero-subtitle {
  font-size: 17px;
  color: var(--wf-text-muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* Search Bar */
.wf-search-wrapper {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.wf-search-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow-md);
  padding: 6px 8px 6px 16px;
  transition: var(--wf-transition);
}

.wf-search-input-group:focus-within {
  border-color: var(--wf-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.wf-search-icon {
  color: var(--wf-text-light);
  font-size: 18px;
  margin-right: 10px;
}

.wf-search-input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  font-family: inherit;
  color: var(--wf-text-main);
  background: transparent;
}

.wf-search-btn {
  background: var(--wf-primary);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--wf-radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--wf-transition-fast);
}

.wf-search-btn:hover {
  background: var(--wf-primary-hover);
}

/* Ad Slot System — Policy-Safe & Distinct */
.wf-ad-slot-wrapper {
  margin: 32px auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

.wf-ad-header {
  width: 100%;
  margin-bottom: 6px;
  text-align: center;
}

.wf-ad-slot-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  display: inline-block;
}

.wf-ad-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.wf-ad-header-slot { min-height: 90px; width: 100%; max-width: 728px; }
.wf-ad-top_content { min-height: 90px; width: 100%; max-width: 728px; }
.wf-ad-sidebar { min-height: 250px; width: 100%; max-width: 300px; }
.wf-ad-before_tool, .wf-ad-after_tool { min-height: 90px; width: 100%; max-width: 728px; }
.wf-ad-in_content { min-height: 90px; width: 100%; max-width: 728px; margin: 24px auto; }
.wf-ad-bottom_banner { min-height: 90px; width: 100%; max-width: 970px; }

/* Sections */
.wf-section {
  padding: 50px 0;
}

.wf-section-alt {
  background-color: var(--wf-bg-alt);
  border-top: 1px solid var(--wf-border);
  border-bottom: 1px solid var(--wf-border);
}

.wf-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.wf-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wf-text-main);
  margin: 0;
}

.wf-section-subtitle {
  font-size: 14.5px;
  color: var(--wf-text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Tool Grid & Cards */
.wf-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.wf-tool-card {
  background: #ffffff;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--wf-shadow-xs);
  transition: var(--wf-transition);
  position: relative;
}

.wf-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--wf-primary);
  box-shadow: var(--wf-shadow-md);
}

.wf-tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--wf-radius-md);
  background-color: var(--wf-primary-subtle);
  color: var(--wf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.wf-tool-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wf-text-main);
  margin: 0 0 6px;
}

.wf-tool-card-desc {
  font-size: 13.5px;
  color: var(--wf-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.wf-tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--wf-primary);
  font-weight: 600;
  border-top: 1px solid var(--wf-border-subtle);
  padding-top: 12px;
}

/* Category Pills */
.wf-category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wf-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-full);
  color: var(--wf-text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--wf-transition-fast);
}

.wf-category-pill:hover, .wf-category-pill.active {
  background: var(--wf-primary);
  color: #fff;
  border-color: var(--wf-primary);
}

/* Interactive Tool Page Workspace & Developer Workbench */
.wf-tool-workspace {
  background: #ffffff;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 24px;
  margin-bottom: 36px;
}

.wf-tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wf-border-subtle);
}

.wf-tool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wf-editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

@media (max-width: 991px) {
  .wf-editor-container {
    grid-template-columns: 1fr;
  }
}

.wf-editor-box {
  display: flex;
  flex-direction: column;
  border-radius: var(--wf-radius-md);
  overflow: hidden;
  border: 1px solid var(--wf-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wf-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--wf-border);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.wf-editor-header .wf-editor-stats {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  font-family: var(--wf-font-mono);
}

.wf-code-textarea {
  width: 100%;
  min-height: 340px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  background: #ffffff;
  border: none;
  color: #0f172a;
  resize: vertical;
  tab-size: 2;
}

.wf-code-textarea:focus {
  outline: none;
  background: #fafbfc;
}

.wf-code-textarea[readonly] {
  background-color: #f8fafc;
  color: #1e293b;
}

.wf-status-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wf-status-alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.wf-status-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wf-status-alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Article / Content Formatting */
.wf-prose {
  line-height: 1.8;
  font-size: 16px;
  color: #334155;
}

.wf-prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--wf-text-main);
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.wf-prose h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--wf-text-main);
  margin-top: 28px;
  margin-bottom: 12px;
}

.wf-prose p {
  margin-bottom: 18px;
}

.wf-prose ul, .wf-prose ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.wf-prose li {
  margin-bottom: 6px;
}

.wf-prose code {
  font-family: var(--wf-font-mono);
  background-color: var(--wf-bg-subtle);
  padding: 2px 6px;
  border-radius: var(--wf-radius-xs);
  font-size: 0.9em;
  color: var(--wf-accent-red);
}

.wf-prose pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 18px;
  border-radius: var(--wf-radius-md);
  overflow-x: auto;
  font-family: var(--wf-font-mono);
  font-size: 14px;
  margin: 20px 0;
}

/* FAQ Accordion */
.wf-faq-item {
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}

.wf-faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.wf-faq-question:hover {
  background-color: var(--wf-bg-subtle);
}

.wf-faq-answer {
  padding: 0 20px 16px;
  color: var(--wf-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Footer Contrast & Visibility Guarantee */
.wf-footer, .wf-ifsc-footer, .wf-jail-footer {
  background-color: #0f172a;
  color: #cbd5e1 !important;
  padding: 60px 0 24px;
  margin-top: auto;
}

.wf-footer h1, .wf-footer h2, .wf-footer h3, .wf-footer h4, .wf-footer h5, .wf-footer h6,
.wf-ifsc-footer h1, .wf-ifsc-footer h2, .wf-ifsc-footer h3, .wf-ifsc-footer h4, .wf-ifsc-footer h5, .wf-ifsc-footer h6,
.wf-jail-footer h1, .wf-jail-footer h2, .wf-jail-footer h3, .wf-jail-footer h4, .wf-jail-footer h5, .wf-jail-footer h6,
.wf-footer strong, .wf-ifsc-footer strong, .wf-jail-footer strong {
  color: #ffffff !important;
}

.wf-footer p, .wf-footer span, .wf-footer div, .wf-footer li,
.wf-ifsc-footer p, .wf-ifsc-footer span, .wf-ifsc-footer div, .wf-ifsc-footer li,
.wf-jail-footer p, .wf-jail-footer span, .wf-jail-footer div, .wf-jail-footer li,
.wf-footer .text-muted, .wf-ifsc-footer .text-muted, .wf-jail-footer .text-muted {
  color: #94a3b8 !important;
}

.wf-footer a, .wf-ifsc-footer a, .wf-jail-footer a {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.wf-footer a:hover, .wf-ifsc-footer a:hover, .wf-jail-footer a:hover,
.wf-footer .hover-white:hover, .wf-ifsc-footer .hover-white:hover, .wf-jail-footer .hover-white:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.wf-footer .border-secondary, .wf-ifsc-footer .border-secondary, .wf-jail-footer .border-secondary {
  border-color: #334155 !important;
}

.wf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.wf-footer-title {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.wf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wf-footer-links li {
  margin-bottom: 10px;
}

.wf-footer-links a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 14px;
  transition: var(--wf-transition-fast);
}

.wf-footer-links a:hover {
  color: #ffffff !important;
}

.wf-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 16px;
  color: #94a3b8 !important;
}

/* ==========================================================================
   Modern Floating Cookie Consent & Privacy Card
   ========================================================================== */
.wf-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  z-index: 99999;
  animation: wfCookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wfCookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wf-cookie-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease;
}

.wf-cookie-card:hover {
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.wf-cookie-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wf-cookie-icon-wrapper {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.wf-cookie-text {
  flex: 1;
  min-width: 0;
}

.wf-cookie-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wf-cookie-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.wf-cookie-link {
  color: var(--wf-primary, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 2px;
  transition: color 0.15s ease;
}

.wf-cookie-link:hover {
  color: var(--wf-primary-hover, #1d4ed8);
}

.wf-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.wf-btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

.wf-btn-cookie-accept {
  background: var(--wf-primary, #2563eb);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.wf-btn-cookie-accept:hover {
  background: var(--wf-primary-hover, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.wf-btn-cookie-accept:active {
  transform: translateY(0);
}

.wf-btn-cookie-decline {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.wf-btn-cookie-decline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

@media (max-width: 640px) {
  .wf-cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: none;
  }
  
  .wf-cookie-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .wf-btn-cookie {
    width: 100%;
    padding: 10px 16px;
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .wf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .wf-nav-menu {
    display: none;
  }
  .wf-mobile-toggle {
    display: block;
  }
  .wf-hero-title {
    font-size: 30px;
  }
  .wf-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities & Component Enhancements */
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.font-weight-600 { font-weight: 600 !important; }

.bg-primary-soft {
  background-color: rgba(37, 99, 235, 0.1) !important;
  color: #2563eb !important;
}

.bg-success-soft {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}

.hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar.avatar-lg {
  width: 64px;
  height: 64px;
}

/* Breadcrumbs */
.wf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--wf-text-muted);
}

.wf-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.wf-breadcrumb a {
  color: var(--wf-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--wf-transition-fast);
}

.wf-breadcrumb a:hover {
  color: var(--wf-primary);
}

.wf-breadcrumb .wf-breadcrumb-current,
.wf-breadcrumb li.active {
  color: var(--wf-text-main);
  font-weight: 600;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.25rem;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
}

.breadcrumb-item a {
  color: var(--wf-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--wf-transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--wf-primary);
}

.breadcrumb-item.active {
  color: var(--wf-text-main);
  font-weight: 600;
}

/* Prose Typography (Blog & CMS Articles) */
.wf-prose {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}

.wf-prose p {
  margin-bottom: 1.4em;
}

.wf-prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.wf-prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.wf-prose h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.wf-prose ul, .wf-prose ol {
  margin-top: 0.5em;
  margin-bottom: 1.4em;
  padding-left: 1.6em;
}

.wf-prose li {
  margin-bottom: 0.5em;
}

.wf-prose blockquote {
  border-left: 4px solid var(--wf-primary);
  background-color: var(--wf-primary-subtle);
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--wf-radius-md) var(--wf-radius-md) 0;
  font-style: italic;
  color: #334155;
}

.wf-prose code:not(pre code) {
  background-color: #f1f5f9;
  color: #e11d48;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--wf-font-mono);
}

.wf-prose pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: var(--wf-radius-md);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.5em 0;
  font-family: var(--wf-font-mono);
}

.wf-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.wf-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14.5px;
}

.wf-prose table th,
.wf-prose table td {
  border: 1px solid var(--wf-border);
  padding: 10px 14px;
  text-align: left;
}

.wf-prose table th {
  background-color: var(--wf-bg-alt);
  font-weight: 600;
  color: #0f172a;
}

.wf-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--wf-radius-md);
  margin: 1.5em 0;
}

.card {
  border-radius: 12px;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #475569;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table td {
  vertical-align: middle;
}

/* ==========================================================================
   Universal Badges & Guaranteed High-Contrast Legibility
   ========================================================================== */
.badge, .wf-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.badge-info, .badge.badge-info, .wf-badge-info, .bg-info-subtle {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.badge-primary, .badge.badge-primary, .wf-badge-primary {
  background-color: var(--wf-primary, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

.badge-success, .badge.badge-success, .wf-badge-success, .bg-success-subtle {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-warning, .badge.badge-warning, .wf-badge-warning, .bg-warning-subtle {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.badge-danger, .badge.badge-danger, .wf-badge-danger, .bg-danger-subtle {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.badge-secondary, .badge.badge-secondary, .wf-badge-secondary {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.badge-light, .badge.badge-light {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.badge-dark, .badge.badge-dark {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
.wf-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e22d36;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(226, 45, 54, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  z-index: 9999;
  border: none;
  outline: none;
}

.wf-back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wf-back-to-top:hover {
  background-color: #c71e27;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(226, 45, 54, 0.5);
}

.wf-back-to-top:active {
  transform: translateY(0);
}

/* ==========================================================================
   Universal WebForge Skeleton Shimmer Animations
   ========================================================================== */

@keyframes wf-skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.wf-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: wf-skeleton-shimmer 1.4s infinite linear;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}

.wf-skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.wf-skeleton-avatar {
  border-radius: 8px;
}

.wf-skeleton-badge {
  border-radius: 9999px;
}



