@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Industrial Precision Palette */
    --industrial-blue: #2563EB;
    --deep-slate: #0F172A;
    --app-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --subtle-bg: #F1F5F9;
    --success: #059669;
    --warning: #D97706;
    --error: #E11D48;
    --info: #3B82F6;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
}

body {
    margin: 0;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--app-bg);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

code, .font-mono {
    font-family: var(--font-mono);
}

@layer base {
    :root {
        --background: 210 40% 98%;
        --foreground: 222 47% 11%;
        --card: 0 0% 100%;
        --card-foreground: 222 47% 11%;
        --popover: 0 0% 100%;
        --popover-foreground: 222 47% 11%;
        --primary: 221 83% 53%;
        --primary-foreground: 0 0% 100%;
        --secondary: 215 25% 27%;
        --secondary-foreground: 0 0% 100%;
        --muted: 210 40% 96%;
        --muted-foreground: 215 16% 47%;
        --accent: 210 40% 96%;
        --accent-foreground: 222 47% 11%;
        --destructive: 343 81% 50%;
        --destructive-foreground: 0 0% 100%;
        --border: 214 32% 91%;
        --input: 214 32% 91%;
        --ring: 221 83% 53%;
        --chart-1: 221 83% 53%;
        --chart-2: 160 84% 39%;
        --chart-3: 38 92% 50%;
        --chart-4: 343 81% 50%;
        --chart-5: 215 25% 27%;
        --radius: 0.375rem;
    }
}

@layer base {
    * {
        @apply border-border;
    }
    body {
        @apply bg-background text-foreground;
    }
}

/* Machine Reference Badge */
.machine-badge {
    font-family: var(--font-mono);
    @apply bg-slate-100 text-slate-700 px-2 py-1 rounded-sm border border-slate-200 text-xs;
}

/* Card Style - Tactical Minimalism */
.card-tactical {
    @apply bg-white border border-slate-200 rounded-md p-6;
}

/* Table Style */
.table-industrial thead {
    @apply bg-slate-50 uppercase text-xs tracking-wider;
}

/* Smooth transitions */
.transition-smooth {
    @apply transition-colors duration-200 ease-out;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-slate-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-slate-300 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-slate-400;
}

@layer base {
    [data-debug-wrapper="true"] {
        display: contents !important;
    }
}
