:root {
  /* From dashboard_frontend.css (base values) */
  --font-family-sans: "Inter", sans-serif;
  --font-family-mono: "Roboto Mono", monospace;
  --reilink-blue: #0ea5e9;
  --reilink-blue-dark: #0369a1;
  --reilink-blue-light-bg: #f0f9ff;
  --color-bg-main: #f8fafc;
  --color-bg-sidebar: #ffffff;
  --color-bg-left-col: #f1f5f9;
  --color-bg-right-col: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-card-alt: #f8fafc;
  --color-border: #e5e7eb;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #9ca3af;
  --color-text-sidebar: #374151;
  --color-text-sidebar-hover: #000000;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 0.75rem;

  /* Main Accent Colors (identical in both) */
  --color-accent: #0ea5e9;
  --color-accent-secondary: #10b981;
  --color-accent-purple: #8b5cf6;
  --color-accent-amber: #f59e0b;
  --color-accent-red: #ef4444;

  /* Darker shades for vibrant gradients (unique to dashboard_frontend.css) */
  --color-accent-red-dark: #b91c1c;
  --color-accent-amber-dark: #b45309;
  --color-accent-green-dark: #047857;
  --color-accent-blue-dark: #0369a1;
  --color-accent-purple-dark: #6d28d9;
  --color-accent-teal-dark: #0f766e;
  --color-accent-teal: #14b8a6; /* Unique to dashboard_frontend.css */

  /* Custom overlay color (unique to dashboard_frontend.css) */
  --color-bg-overlay: rgba(240, 249, 255, 0.85);

  /* --- Overrides/Additions from orientation_hub.css (takes precedence) --- */
  --color-bg-main: #f0f2f5; /* Overwrites dashboard_frontend's --color-bg-main */
  --color-bg-sidebar: #0d1a2e; /* Overwrites dashboard_frontend's --color-bg-sidebar */
  --color-bg-content: #f8fafc; /* Overwrites dashboard_frontend's --color-bg-left-col (conceptually) */
  --color-bg-card-alt: #f1f5f9; /* Overwrites dashboard_frontend's --color-bg-card-alt */
  --color-border: #e2e8f0; /* Overwrites dashboard_frontend's --color-border */
  --color-text-primary: #1e293b; /* Overwrites dashboard_frontend's --color-text-primary */
  --color-text-secondary: #475569; /* Overwrites dashboard_frontend's --color-text-secondary */
  --color-text-tertiary: #94a3b8; /* Overwrites dashboard_frontend's --color-text-tertiary */

  /* Category-specific accent colors (unique to orientation_hub.css) */
  --color-cat-core: #8b5cf6;
  --color-cat-dealflow: #f59e0b;
  --color-cat-protools: #ef4444;
  --color-cat-community: #10b981;
  --color-cat-manual: #649ffd; /* New */

  /* Darker shades for gradients (unique to orientation_hub.css) */
  --color-cat-core-dark: #6d28d9;
  --color-cat-dealflow-dark: #b45309;
  --color-cat-protools-dark: #b91c1c;
  --color-cat-community-dark: #047857;
  --color-cat-manual-dark: #1d4ed8; /* New */

  /* BuyerPulse Tutorial specific variables (unique to orientation_hub.css) */
  --bp-bg-color: #0d1117;
  --bp-primary-pane-bg: #161b22;
  --bp-text-primary: #e6edf3;
  --bp-text-secondary: #8b949e;
  --bp-border-color: #30363d;
  --bp-input-bg: #010409;
  --bp-accent-blue: #58a6ff;
  --bp-btn-primary-bg: #2f81f7;
  --bp-color-green: #22c55e;
  --bp-color-blue: #3b82f6;
  --bp-color-yellow: #eab308;
  --bp-color-red: #ef4444;
}

/* =================================================================
   GLOBAL RESETS & BASE STYLES (Common to both, orientation_hub.css precedence)
================================================================= */

/* Common reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* html styles - orientation_hub.css overrides font-size */
html {
  scroll-behavior: smooth; /* Identical */
  font-size: 80%;
}

/* body styles - properties from orientation_hub.css will take precedence */
body {
  font-family: var(--font-family-sans); /* Identical variable usage */
  background-color: var(--color-bg-main); /* Variable handled in :root */
  color: var(--color-text-primary); /* Variable handled in :root */
  line-height: 1.5; /* Identical */
  -webkit-font-smoothing: antialiased; /* Identical */
  -moz-osx-font-smoothing: grayscale; /* Identical */
}

/* --- UPDATED: Tutorial Styles --- */
.hidden {
  display: none !important;
}

#tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
}

#tutorial-highlight-box {
  position: absolute;
  border: 3px solid var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.7);
  /* Darker overlay */
  transition: all 0.35s ease-in-out;
  z-index: 9999;
}

#tutorial-tooltip {
  position: absolute;
  background-color: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  width: 340px;
  max-width: 90vw;
  box-shadow: var(--shadow-md);
  z-index: 10000;
  transition: all 0.35s ease-in-out;
  border-top: 4px solid var(--color-accent);
}

#tutorial-tooltip h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

#tutorial-tooltip p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

#tutorial-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

#tutorial-step-counter {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

#tutorial-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

#tutorial-overlay .btn-primary {
    background-color: var(--color-accent);
    color: white;
}

#tutorial-overlay .btn-primary:hover {
    opacity: 0.9;
}

#tutorial-overlay .btn-secondary {
    background-color: var(--color-bg-card);
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

#tutorial-overlay .btn-secondary:hover {
    background-color: var(--color-bg-card-alt);
    border-color: #d1d5db;
}