/* ==========================================================================
   KUI design tokens  (E-KYC)
   --------------------------------------------------------------------------
   Add code kingshuk 12/11/2026 : every colour and typography value below is taken from the
   "Infinity by Eureka UI Design Guideline" (Light and Dark themes). The guideline variable each
   token comes from is named in the comments. No other colour or font value is defined here.
   White-label / SDK vendors: override ONLY these variables. kui.css hard-codes no theme colours.
   ========================================================================== */
:root {
    /* Shape and control sizes (layout, not changed by the colour / typography update) */
    --kui-btn-radius: 8px;
    --kui-btn-h: 44px;
    --kui-btn-h-sm: 36px;
    --kui-btn-h-lg: 48px;
    --kui-radius-sm: 6px;
    --kui-radius: 8px;
    --kui-radius-lg: 12px;
    --kui-control-h: 42px;
    --kui-header-h: 60px;
    --kui-rail-w: 264px;

    /* Typography (guideline section 4.1 / 4.2): Roboto for content, Manrope for buttons */
    --kui-font: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --kui-font-heading: var(--kui-font);
    --kui-font-button: "Manrope", "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --kui-fw: 500;                    /* --font-weight */

    /* Fluid size tokens (guideline section 4.3): min + (max - min) * ((100vw - 1200px) / (1920 - 1200)) */
    --10: calc(8px + (10 - 8) * ((100vw - 1200px) / (1920 - 1200)));
    --12: calc(11px + (12 - 11) * ((100vw - 1200px) / (1920 - 1200)));
    --14: calc(12px + (14 - 12) * ((100vw - 1200px) / (1920 - 1200)));
    --16: calc(14px + (16 - 14) * ((100vw - 1200px) / (1920 - 1200)));
    --18: calc(14px + (18 - 14) * ((100vw - 1200px) / (1920 - 1200)));
    --20: calc(18px + (20 - 18) * ((100vw - 1200px) / (1920 - 1200)));
    --24: calc(22px + (24 - 22) * ((100vw - 1200px) / (1920 - 1200)));
    --30: calc(25px + (28 - 25) * ((100vw - 1200px) / (1920 - 1200)));

    /* Brand (guideline --eureka-blue-color / --eureka-red-color) */
    --kui-eureka-blue: rgb(10, 68, 122);
    --kui-eureka-red: rgb(223, 6, 26);

    /* Accent and buttons: --blue-color, --btn-hover, --btn-text */
    --kui-btn: #0B447A;
    --kui-btn-hover: #277db7;
    --kui-on-brand: #ffffff;
    --kui-brand-600: #0B447A;          /* --blue-color */
    --kui-brand-700: #0B447A;          /* --header (highlight text) */
    --kui-brand-500: #277db7;          /* --btn-hover */
    --kui-brand-100: rgb(128 171 205 / 30%);   /* --selected-color */
    --kui-brand-50: #f0f0f0;           /* --hover-grey */
    --kui-accent-600: #ff5954;         /* --red-color */
    --kui-link: #34abc6;               /* --links */
    --kui-header-border: #34ABC6;      /* --header-border (active underline) */
    --kui-focus: #0b447a81;            /* --blue-color-focus */

    /* Buy / Sell buttons: --btn-green*, --btn-red* */
    --kui-btn-green: #0b9f78;
    --kui-btn-green-hover: #22b98f;
    --kui-btn-green-text: #0b9f78;
    --kui-btn-red: #ff3e38;
    --kui-btn-red-hover: #fd5651;
    --kui-btn-red-text: #ff3e38;
    --kui-btn-yellow: #ecac3e;         /* --btn-yellow */
    --kui-btn-yellow-text: #ffffff;    /* --btn-yellow-text */

    /* Status colours (guideline section 3.7) */
    --kui-success: #0b9f78;            /* --green-color */
    --kui-success-text: #0b9f78;
    --kui-success-bg: #1ec49821;       /* --green-transparent */
    --kui-warning: #e78d00;            /* --yellow-color */
    --kui-warning-text: #e78d00;
    --kui-warning-line: #e78d00;
    --kui-warning-bg: #ffa10026;       /* --yellow-transparent */
    --kui-danger: #ff5954;             /* --red-color */
    --kui-danger-text: #ff5954;
    --kui-danger-bg: #ff3e3921;        /* --red-transparent */
    --kui-info: #2a84c3;               /* information (fixed) */
    --kui-info-bg: #edf6ff;            /* --confirm-info-background */

    /* Product tier cards use the guideline category tiles and yellow values */
    --kui-gold-500: rgb(253, 194, 91); /* --light-yellow-color */
    --kui-gold-600: rgb(180, 114, 0);  /* --dark-yellow-color */
    --kui-gold-bg: #fbe4c4;            /* --bonds-color */
    --kui-gold-text: #1C2E39;          /* --text-color */
    --kui-silver-bg: #C7D6E4;          /* --insurance-color */
    --kui-silver-text: #1C2E39;        /* --text-color */

    /* Surfaces */
    --kui-bg: #F8F8F8;                 /* --bg-color */
    --kui-card: #ffffff;               /* --container */
    --kui-surface: #ffffff;            /* --container */
    --kui-surface-2: #f5f6fa;          /* --sub-container */
    --kui-menu: #ffffff;               /* --setting-box */
    --kui-overlay: #0e0e0e5e;          /* --overlay-bg-color */
    --kui-hover: #f0f0f0;              /* --hover-grey */
    --kui-selected: rgb(128 171 205 / 30%);    /* --selected-color */

    /* Text */
    --kui-text: #1C2E39;               /* --text-color */
    --kui-text-muted: #788095;         /* --label-color */
    --kui-text-faint: rgb(108, 117, 125);      /* --placeholder-text */
    --kui-th: #788095;                 /* --th-color */

    /* Borders and inputs */
    --kui-border: #dddddd;             /* --border-color */
    --kui-border-strong: rgba(202, 202, 202, 1);   /* --outline-color */
    --kui-input-bg: #091e421c;         /* --input-bg */
    --kui-input-bg-hover: #091e4221;   /* --input-bg-hover */
    --kui-input-disabled: #091e421c;   /* disabled colour is not specified for Light: input background is kept */
    --kui-small-btn: #e3e3e3;          /* --small-button */
    --kui-small-btn-hover: #c7c7c7;    /* --small-button-hover */

    /* Shadows (guideline section 3.11) */
    --kui-shadow-1: 0px 0px 5px -1px #b9b9b9;                     /* --box-shadow */
    --kui-shadow-2: 0 4px 8px -2px #091e4240, 0 0 1px #091e4240;  /* --box-shadow-2 */
    --kui-shadow-3: 0 4px 8px -2px #091e4240, 0 0 1px #091e4240;  /* --box-shadow-2 */
    --kui-tooltip-bg: rgba(35, 35, 35, 0.63);                     /* tooltip (section 9.10) */
    --kui-tooltip-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px 0px;
    --kui-scrollbar: #afafaf;          /* --scrollbar */
    --kui-scrollbar-hover: #979797;    /* --scrollbar-hover */
}

/* Fixed size tokens at narrow widths (guideline section 4.3) */
@media (max-width: 1280px) {
    :root { --10: 8px; --12: 10px; --14: 12px; --16: 14px; --20: 16px; --24: 20px; --30: 24px; }
}
@media (max-width: 600px) {
    :root { --10: 10px; --12: 10px; --14: 12px; --16: 14px; --20: 16px; --24: 18px; --30: 20px; }
}

/* Dark mode: follows the OS, or force with <html data-kui-theme="dark|light"> */
@media (prefers-color-scheme: dark) {
    :root:not([data-kui-theme="light"]) {
        --kui-btn: #2A84C0;                        /* --blue-color: rgb(42,132,192) */
        --kui-btn-hover: #4b9ed5;
        --kui-brand-600: #2A84C0;
        --kui-brand-700: #ffffff;                  /* --header */
        --kui-brand-500: #4b9ed5;
        --kui-brand-100: rgb(128 171 205 / 30%);
        --kui-brand-50: #2a2a2a;                   /* --hover-grey */
        --kui-accent-600: #df5151;
        --kui-link: #00befe;
        --kui-header-border: #2a84c0;
        --kui-focus: rgba(42, 132, 192, .534);
        --kui-btn-green: #1ec498;
        --kui-btn-green-hover: #1ac497;
        --kui-btn-green-text: #1ec498;
        --kui-btn-yellow: transparent;
        --kui-btn-yellow-text: #ecac3e;
        --kui-success: #12ab82;
        --kui-success-text: #12ab82;
        --kui-warning: rgb(236, 172, 62);
        --kui-warning-text: rgb(236, 172, 62);
        --kui-warning-line: rgb(236, 172, 62);
        --kui-danger: #df5151;
        --kui-danger-text: #df5151;
        --kui-info-bg: rgb(25 39 51);
        --kui-gold-bg: #91611E;
        --kui-gold-text: rgb(248, 248, 248);
        --kui-silver-bg: #4e6981;
        --kui-silver-text: rgb(248, 248, 248);
        --kui-bg: #000000;
        --kui-card: #1e1e1e;
        --kui-surface: #1e1e1e;
        --kui-surface-2: #2D2D2D;
        --kui-menu: rgb(17, 17, 17);
        --kui-overlay: rgba(0, 0, 0, .4);
        --kui-hover: #2a2a2a;
        --kui-text: rgb(248, 248, 248);
        --kui-text-muted: #989898;
        --kui-th: #afafaf;
        --kui-border: #414040;
        --kui-border-strong: rgb(88, 88, 88);
        --kui-input-bg: #2A2A2A;
        --kui-input-bg-hover: #3f3f3f;
        --kui-input-disabled: rgb(68, 68, 68);
        --kui-small-btn: #2a2a2a;
        --kui-small-btn-hover: #414141;
        --kui-shadow-1: none;
        --kui-scrollbar: #6b6b6b;
    }
}
:root[data-kui-theme="dark"] {
    --kui-btn: #2A84C0;
    --kui-btn-hover: #4b9ed5;
    --kui-brand-600: #2A84C0;
    --kui-brand-700: #ffffff;
    --kui-brand-500: #4b9ed5;
    --kui-brand-100: rgb(128 171 205 / 30%);
    --kui-brand-50: #2a2a2a;
    --kui-accent-600: #df5151;
    --kui-link: #00befe;
    --kui-header-border: #2a84c0;
    --kui-focus: rgba(42, 132, 192, .534);
    --kui-btn-green: #1ec498;
    --kui-btn-green-hover: #1ac497;
    --kui-btn-green-text: #1ec498;
    --kui-btn-yellow: transparent;
    --kui-btn-yellow-text: #ecac3e;
    --kui-success: #12ab82;
    --kui-success-text: #12ab82;
    --kui-warning: rgb(236, 172, 62);
    --kui-warning-text: rgb(236, 172, 62);
    --kui-warning-line: rgb(236, 172, 62);
    --kui-danger: #df5151;
    --kui-danger-text: #df5151;
    --kui-info-bg: rgb(25 39 51);
    --kui-gold-bg: #91611E;
    --kui-gold-text: rgb(248, 248, 248);
    --kui-silver-bg: #4e6981;
    --kui-silver-text: rgb(248, 248, 248);
    --kui-bg: #000000;
    --kui-card: #1e1e1e;
    --kui-surface: #1e1e1e;
    --kui-surface-2: #2D2D2D;
    --kui-menu: rgb(17, 17, 17);
    --kui-overlay: rgba(0, 0, 0, .4);
    --kui-hover: #2a2a2a;
    --kui-text: rgb(248, 248, 248);
    --kui-text-muted: #989898;
    --kui-th: #afafaf;
    --kui-border: #414040;
    --kui-border-strong: rgb(88, 88, 88);
    --kui-input-bg: #2A2A2A;
    --kui-input-bg-hover: #3f3f3f;
    --kui-input-disabled: rgb(68, 68, 68);
    --kui-small-btn: #2a2a2a;
    --kui-small-btn-hover: #414141;
    --kui-shadow-1: none;
    --kui-scrollbar: #6b6b6b;
}
