/*
 * Tabler Bridge: maps the Yisro Link palette (pcc-base.css --yl-*) onto Tabler's
 * variable system. Loaded after tabler.min.css, before app-specific CSS.
 * The -rgb triplets must be literal; keep them in step with the hex values.
 */

:root {
    /* Primary brand colour (blue) */
    --tblr-primary:         #2563EB;
    --tblr-primary-rgb:     37, 99, 235;
    --tblr-primary-fg:      #FFFFFF;

    /* Semantic colors (solid fills) */
    --tblr-success:         #15803D;
    --tblr-success-rgb:     21, 128, 61;
    --tblr-warning:         #B45309;
    --tblr-warning-rgb:     180, 83, 9;
    --tblr-danger:          #B91C1C;
    --tblr-danger-rgb:      185, 28, 28;
    --tblr-info:            #2563EB;
    --tblr-info-rgb:        37, 99, 235;
    --tblr-secondary:       #4B5563;
    --tblr-secondary-rgb:   75, 85, 99;

    /* Body defaults */
    --tblr-body-bg:         #F6F7F9;
    --tblr-body-bg-rgb:     246, 247, 249;
    --tblr-body-color:      #111827;
    --tblr-body-color-rgb:  17, 24, 39;
    --tblr-body-font-weight: 400;
    --tblr-bg-surface:      #FFFFFF;
    --tblr-bg-surface-secondary: #F9FAFB;
    --tblr-border-color:    #E6E8EC;
    --tblr-card-border-color: #E6E8EC;
    --tblr-border-radius:   8px;
    --tblr-card-border-radius: 12px;
    --tblr-box-shadow:      none;
    --tblr-box-shadow-card: none;

    /* Link color */
    --tblr-link-color:      #2563EB;
    --tblr-link-color-rgb:  37, 99, 235;
    --tblr-link-hover-color: #1D4ED8;
    --tblr-link-hover-color-rgb: 29, 78, 216;

    /* Font */
    --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tblr-font-monospace:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Tabler named colors follow the status palette (text-red, bg-green-lt, var(--tblr-orange)) */
    --tblr-green: #15803D; --tblr-green-rgb: 21, 128, 61; --tblr-green-lt: #ECFDF3; --tblr-green-lt-rgb: 236, 253, 243;
    --tblr-lime: #15803D; --tblr-lime-rgb: 21, 128, 61; --tblr-lime-lt: #ECFDF3; --tblr-lime-lt-rgb: 236, 253, 243;
    --tblr-teal: #15803D; --tblr-teal-rgb: 21, 128, 61; --tblr-teal-lt: #ECFDF3; --tblr-teal-lt-rgb: 236, 253, 243;
    --tblr-red: #B91C1C; --tblr-red-rgb: 185, 28, 28; --tblr-red-lt: #FEF2F2; --tblr-red-lt-rgb: 254, 242, 242;
    --tblr-pink: #B91C1C; --tblr-pink-rgb: 185, 28, 28; --tblr-pink-lt: #FEF2F2; --tblr-pink-lt-rgb: 254, 242, 242;
    --tblr-orange: #B45309; --tblr-orange-rgb: 180, 83, 9; --tblr-orange-lt: #FFF7E8; --tblr-orange-lt-rgb: 255, 247, 232;
    --tblr-yellow: #B45309; --tblr-yellow-rgb: 180, 83, 9; --tblr-yellow-lt: #FFF7E8; --tblr-yellow-lt-rgb: 255, 247, 232;
    --tblr-blue: #2563EB; --tblr-blue-rgb: 37, 99, 235; --tblr-blue-lt: #EFF4FF; --tblr-blue-lt-rgb: 239, 244, 255;
    --tblr-azure: #2563EB; --tblr-azure-rgb: 37, 99, 235; --tblr-azure-lt: #EFF4FF; --tblr-azure-lt-rgb: 239, 244, 255;
    --tblr-cyan: #2563EB; --tblr-cyan-rgb: 37, 99, 235; --tblr-cyan-lt: #EFF4FF; --tblr-cyan-lt-rgb: 239, 244, 255;
    --tblr-purple: #1D4ED8; --tblr-purple-rgb: 29, 78, 216; --tblr-purple-lt: #EFF4FF; --tblr-purple-lt-rgb: 239, 244, 255;
    --tblr-indigo: #1D4ED8; --tblr-indigo-rgb: 29, 78, 216; --tblr-indigo-lt: #EFF4FF; --tblr-indigo-lt-rgb: 239, 244, 255;
}

/* Dark mode overrides for Tabler variables */
[data-bs-theme="dark"] {
    --tblr-primary:         #2563EB;
    --tblr-primary-rgb:     37, 99, 235;
    --tblr-primary-fg:      #FFFFFF;
    --tblr-success:         #3E7D55;
    --tblr-success-rgb:     62, 125, 85;
    --tblr-warning:         #9A6700;
    --tblr-warning-rgb:     154, 103, 0;
    --tblr-danger:          #C0392B;
    --tblr-danger-rgb:      192, 57, 43;
    --tblr-info:            #2563EB;
    --tblr-info-rgb:        37, 99, 235;
    --tblr-secondary:       #A3ACB9;
    --tblr-secondary-rgb:   163, 172, 185;
    --tblr-body-bg:         #12161C;
    --tblr-body-bg-rgb:     18, 22, 28;
    --tblr-body-color:      #E6E9EE;
    --tblr-body-color-rgb:  230, 233, 238;
    --tblr-bg-surface:      #1A1F27;
    --tblr-bg-surface-secondary: #1F252E;
    --tblr-border-color:    #2A303A;
    --tblr-card-border-color: #2A303A;
    --tblr-link-color:      #93B4F8;
    --tblr-link-color-rgb:  147, 180, 248;
    --tblr-link-hover-color: #B9CEFA;
    --tblr-link-hover-color-rgb: 185, 206, 250;

    --tblr-green: #3E7D55; --tblr-green-rgb: 62, 125, 85; --tblr-green-lt: #17301F; --tblr-green-lt-rgb: 23, 48, 31;
    --tblr-lime: #3E7D55; --tblr-lime-rgb: 62, 125, 85; --tblr-lime-lt: #17301F; --tblr-lime-lt-rgb: 23, 48, 31;
    --tblr-teal: #3E7D55; --tblr-teal-rgb: 62, 125, 85; --tblr-teal-lt: #17301F; --tblr-teal-lt-rgb: 23, 48, 31;
    --tblr-red: #C0392B; --tblr-red-rgb: 192, 57, 43; --tblr-red-lt: #3A1C1C; --tblr-red-lt-rgb: 58, 28, 28;
    --tblr-pink: #C0392B; --tblr-pink-rgb: 192, 57, 43; --tblr-pink-lt: #3A1C1C; --tblr-pink-lt-rgb: 58, 28, 28;
    --tblr-orange: #9A6700; --tblr-orange-rgb: 154, 103, 0; --tblr-orange-lt: #352812; --tblr-orange-lt-rgb: 53, 40, 18;
    --tblr-yellow: #9A6700; --tblr-yellow-rgb: 154, 103, 0; --tblr-yellow-lt: #352812; --tblr-yellow-lt-rgb: 53, 40, 18;
    --tblr-blue: #2563EB; --tblr-blue-rgb: 37, 99, 235; --tblr-blue-lt: #1C2740; --tblr-blue-lt-rgb: 28, 39, 64;
    --tblr-azure: #2563EB; --tblr-azure-rgb: 37, 99, 235; --tblr-azure-lt: #1C2740; --tblr-azure-lt-rgb: 28, 39, 64;
    --tblr-cyan: #2563EB; --tblr-cyan-rgb: 37, 99, 235; --tblr-cyan-lt: #1C2740; --tblr-cyan-lt-rgb: 28, 39, 64;
    --tblr-purple: #93B4F8; --tblr-purple-rgb: 147, 180, 248; --tblr-purple-lt: #1C2740; --tblr-purple-lt-rgb: 28, 39, 64;
    --tblr-indigo: #93B4F8; --tblr-indigo-rgb: 147, 180, 248; --tblr-indigo-lt: #1C2740; --tblr-indigo-lt-rgb: 28, 39, 64;
}
