/* ==========================================================================
   Engineering Toolkit - Global CSS Design Tokens & Theme Variable Registry
   ========================================================================== */

:root {
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Size Scale (Standardized to match Tailwind for perfect project-wide parity) */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Global Color Accents (Electric Teal by Default - Change here to swap project-wide) */
  --accent-primary: #0d9488;
  --accent-primary-hover: #0f766e;
  --accent-primary-glow: rgba(13, 148, 136, 0.08);
  
  --accent-secondary: #2563eb;
  --accent-secondary-hover: #1d4ed8;
  --accent-secondary-glow: rgba(37, 99, 235, 0.08);

  /* Semantic Status Colors (Light Mode) */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.08);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.08);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.08);

  /* Light Theme Layout Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Interactive Fields (Inputs, Selects, Textareas) */
  --bg-interactive: #ffffff;
  --bg-interactive-disabled: #f1f5f9;
  
  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1600px;
}

/* ── Unified Tool Footer Styles ──────────────────────────────── */
.tool-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 40px auto 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  box-sizing: border-box;
  flex-shrink: 0;
}
.tool-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.tool-footer-content p {
  margin: 0;
}
.tool-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.tool-footer-links a:hover {
  color: var(--accent-primary);
}
.tool-footer-links .divider {
  color: var(--border-color);
  user-select: none;
}
.tool-footer-links .coffee-link {
  background: #FFDD00;
  color: #000000 !important;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.tool-footer-links .coffee-link:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .tool-footer {
    padding: 16px;
    margin-top: 24px;
  }
  .tool-footer-content {
    flex-direction: column;
    text-align: center;
  }
}
