/* MyPharm — Design Tokens (fonte única de verdade) */
:root {
    /* Marca */
    --mp-brand: #E63946;
    --mp-brand-dark: #C1121F;
    --mp-brand-light: #FF6B6B;
    --mp-brand-glow: rgba(230, 57, 70, 0.28);
    --mp-brand-soft: rgba(230, 57, 70, 0.1);

    /* Superfícies */
    --mp-bg: #F4F5F8;
    --mp-surface: #FFFFFF;
    --mp-surface-2: #F8FAFC;
    --mp-input: #F0F2F7;
    --mp-border: rgba(15, 23, 42, 0.08);
    --mp-border-strong: rgba(15, 23, 42, 0.14);

    /* Texto */
    --mp-text: #0F172A;
    --mp-text-2: #334155;
    --mp-text-muted: #64748B;
    --mp-text-faint: #94A3B8;

    /* Status semânticos */
    --mp-status-open: #2563EB;
    --mp-status-open-bg: #EFF6FF;
    --mp-status-success: #059669;
    --mp-status-success-bg: #ECFDF5;
    --mp-status-warning: #D97706;
    --mp-status-warning-bg: #FFFBEB;
    --mp-status-danger: #DC2626;
    --mp-status-danger-bg: #FEF2F2;
    --mp-status-neutral: #64748B;
    --mp-status-neutral-bg: #F1F5F9;

    /* Acentos auxiliares */
    --mp-accent: #06D6A0;
    --mp-info: #0284C7;
    --mp-chart-2: #06D6A0;
    --mp-chart-3: #118AB2;

    /* Layout */
    --mp-sidebar-w: 252px;
    --mp-sidebar-collapsed: 72px;
    --mp-topbar-h: 64px;
    --mp-content-max: 1440px;

    /* Tipografia */
    --mp-font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mp-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --mp-font-mono: ui-monospace, 'Cascadia Code', monospace;

    /* Raios e sombras */
    --mp-radius-sm: 8px;
    --mp-radius-md: 12px;
    --mp-radius-lg: 16px;
    --mp-radius-xl: 20px;
    --mp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --mp-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --mp-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

    /* Motion */
    --mp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mp-transition: 0.22s var(--mp-ease);

    /* Aliases legados (styles.css / módulos) */
    --primary: var(--mp-brand);
    --primary-dark: var(--mp-brand-dark);
    --primary-light: var(--mp-brand-light);
    --primary-glow: var(--mp-brand-glow);
    --accent: var(--mp-accent);
    --success: var(--mp-status-success);
    --warning: var(--mp-status-warning);
    --danger: var(--mp-status-danger);
    --info: var(--mp-info);
    --bg-dark: var(--mp-bg);
    --bg-card: var(--mp-surface);
    --bg-card-hover: var(--mp-surface-2);
    --bg-surface: var(--mp-surface);
    --bg-input: var(--mp-input);
    --border: var(--mp-border);
    --border-hover: var(--mp-border-strong);
    --text-primary: var(--mp-text);
    --text-secondary: var(--mp-text-2);
    --text-muted: var(--mp-text-muted);
    --text-accent: #4A5AC7;
    --shadow-sm: var(--mp-shadow-sm);
    --shadow-md: var(--mp-shadow-md);
    --shadow-lg: var(--mp-shadow-lg);
    --radius-sm: var(--mp-radius-sm);
    --radius-md: var(--mp-radius-md);
    --radius-lg: var(--mp-radius-lg);
    --radius-xl: var(--mp-radius-xl);
    --transition: var(--mp-transition);
    --transition-fast: 0.15s var(--mp-ease);
    --sidebar-width: var(--mp-sidebar-w);
    --sidebar-collapsed: var(--mp-sidebar-collapsed);
    --sidebar-bg: #1a1d23;
    --sidebar-bg-elevated: #22262e;
    --sidebar-active-bg: #2d1a1c;
    --sidebar-accent-line: var(--mp-brand);
}

[data-theme="light"] {
    --sidebar-bg: #ffffff;
    --sidebar-bg-elevated: #ffffff;
    --sidebar-active-bg: var(--mp-brand-soft);
}

[data-theme="dark"] {
    --mp-bg: #0F1117;
    --mp-surface: #1A1D2E;
    --mp-surface-2: #222640;
    --mp-input: #1E2235;
    --mp-border: rgba(255, 255, 255, 0.06);
    --mp-text: #F0F0F5;
    --mp-text-2: #9CA3B8;
    --mp-text-muted: #5C6378;
}
