/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    --color-txt: rgb(31 41 55);
    --color-txt--subtle: rgb(75 85 99);
    --color-txt--validation: rgb(153 27 27);
    /* text-red-800*/
    --color-txt--danger: oklch(0.444 0.177 26.899);
    --color-txt--success: oklch(0.448 0.119 151.328);
    --color-link: rgb(29 78 216);
    /* text-blue-700 */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-input-bg: white;

    --color-bg--brand-secondary: color-mix(in srgb, var(--color-primary) 15%, var(--color-input-bg));
    --color-bg--brand-secondary-hover: color-mix(in srgb, var(--color-primary) 25%, var(--color-input-bg));
    --color-txt--brand-secondary: color-mix(in srgb, var(--color-primary) 70%, var(--color-txt));
    --color-txt--brand-secondary-hover: color-mix(in srgb, var(--color-primary) 50%, var(--color-txt));
    

    --color-bg--success: oklch(0.982 0.018 155.826);
    --color-bg--danger: oklch(0.971 0.013 17.38);

    --color-border: oklch(86.9% 0.022 252.894);
    /* slate-300 */
}

:root:is(.dark) {
    --color-txt: rgb(249 250 251);
    --color-txt--subtle: rgb(209 213 219);
    --color-txt--validation: rgb(220 38 38);
    /* text-red-600*/
    --color-txt--success: oklch(0.925 0.084 155.995);
    --color-link: rgb(147 197 253);
    /* text-blue-300 */
    --color-input-bg: rgb(17 24 39);
    --color-bg--success: oklch(0.266 0.065 152.934);
}

body {
    color: var(--color-txt);
}

h2 {
    font-weight: bold;
}

footer {
    color: var(--color-txt--subtle);
}

.dark input[type="date"] {
    color-scheme: dark;
}

[x-cloak] {
    display: none !important;
}

details:not([open]) {
    display: none;
}