/* =========================================================
   BOS POS – Design Tokens & Brand Identity System
   Single Source of Truth for Web, Tablet & Mobile Devices
   ========================================================= */
:root {
    /* PRIMARY (Burgundy / Wine) */
    --primary-main: #7a1c32;
    --primary-dark: #5c1224;
    --primary-light: #9c2d47;
    --primary-soft: #fdf2f4;
    --primary-text: #ffffff;

    /* SECONDARY (Champagne Gold / Sand Accent) */
    --secondary-main: #d4af37;
    --secondary-dark: #b89324;
    --secondary-light: #f5eed8;
    --secondary-text: #1e293b;

    /* TERTIARY & NEUTRALS */
    --tertiary-main: #f1f5f9;
    --tertiary-dark: #e2e8f0;
    --tertiary-light: #f8fafc;
    --tertiary-text: #334155;

    /* DARK & BLACK */
    --black-main: #0f172a;
    --black-dark: #020617;

    /* SEMANTIC STATUS */
    --success: #10b981;
    --success-soft: #ecfdf5;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --error: #ef4444;
    --error-soft: #fef2f2;
    --info: #0ea5e9;
    --info-soft: #f0f9ff;

    /* BACKGROUNDS & SURFACES */
    --background-default: #f8fafc;
    --background-paper: #ffffff;
    --surface-card: #ffffff;
    --surface-subtle: #f1f5f9;

    /* TYPOGRAPHY COLORS */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-disabled: #cbd5e1;

    /* BORDERS & DIVIDERS */
    --divider: #e2e8f0;
    --border-color: #e2e8f0;
    --border-focus: #7a1c32;

    /* ELEVATION & SHADOWS */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 32px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);

    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 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);
}

/* Global Reset & Typography Baseline */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-primary);
    background-color: var(--background-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* Mobile & Touch Improvements */
button, input, select, textarea, .clickable {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Container helpers */
.pos-touch-target {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    :root {
        --radius-lg: 12px;
        --radius-xl: 16px;
    }
}
