:root {
    /* Design Tokens from Chatbot.Zanxa */
    --bg-main: #0d0d0d;
    --bg-surface: #161616;
    --bg-input: #1e1e1e;
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.15);
    --text-primary: #dbdbdb;
    --text-secondary: #8a8a8a;
    --text-muted: #555;
    --accent: #8b5cf6;
    /* Original Chatbot Accent */
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #a78bfa, #8b5cf6);
    --strong: #ffffff;

    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* MD2PDF Specifics */
    --accent-md: #f0e040;
    --accent2: #40e0c8;

    /* Code Block Themes (Dark) */
    --bg-code: #1e1e1e;
    --text-code: #e8e8f0;
    --border-code: rgba(255, 255, 255, 0.08);

    /* Mac Buttons */
    --mac-red: #ff5f56;
    --mac-yellow: #ffbd2e;
    --mac-green: #27c93f;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: .5;
}