/* Button tokens *********************************************************************************************************************

   The colours, shadows and heights of a button, shared by Svenskalag.Web (css/shared/buttons.css) and svelte-web
   (lib/components/buttons/button.svelte, through tailwind.config.js), so a button looks the same in both. Change a value
   here and both follow.

   - Svenskalag.Web: in the same combres sets as buttons.css, before it; a page that links buttons.css on its own links
     this file just before it.
   - svelte-web: linked in the root layout (src/routes/+layout.svelte). Its app.css holds the same values as a fallback for
     when this file is not served (component tests), in @layer base, so this file wins when it is loaded: keep the two
     in step.

   ***********************************************************************************************************************************/

:root {
    --color-primary: #298ccd;
    --color-primary-hover: #3e96d2;
    --color-primary-active: #286090;

    --color-success: #41bd7f;
    --color-success-hover: #51c98d;
    --color-success-active: #1f975b;

    --color-danger: #eb445a;
    --color-danger-hover: #fe566c;
    --color-danger-active: #d9283f;

    --color-warning: #f2b736;
    --color-warning-hover: #f4c14f;
    --color-warning-active: #d9a020;

    --color-border-default: #00000029;

    /* Default (white) button. */
    --button-default-bg: #fcfcfc;
    --button-default-hover-bg: #fff;
    --button-default-active-bg: #f2f2f2;
    --button-default-color: #555;
    --button-default-hover-color: #333;
    --button-default-disabled-color: #aaa;

    /* A default button lifts on hover and is pressed in when active. */
    --button-hover-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    --button-active-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.06);

    --button-height: 34px;
    --button-height-lg: 40px;
    --button-height-sm: 30px;
    --button-height-xs: 26px;

    --button-disabled-opacity: 0.5;
}
