:root {
    --space-xxs: 2px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 48px;
    --space-5xl: 64px;

    --font-size-display: 28px;
    --font-size-headline: 22px;
    --font-size-title: 20px;
    --font-size-regular: 16px;
    --font-size-secondary: 14px;
    --font-size-small: 12px;

    --font-sans-serif: 'sans-serif';
    --font-monospace: 'monospace';
    --font-inter: 'Inter', var(--font-sans-serif);
    --font-jet-brains-mono: 'JetBrains Mono', var(--font-monospace);

    --font-size-def: 14px;
    --font-weight-def: 400;
    --line-height-def: 1.3;

    --sidebar-width: 244px;
    --sidebar-width-landscape: 244px;
    --header-height: 68px;
    --footer-height: 90px;
    --transition-duration: 0.3s;
    --backdrop-filter: 7px;

    --top-bar-height: 44px;
}

@media only screen and (min-width: 1920px) {
    :root {
        --sidebar-width: 300px;
    }
}

@media only screen and (min-width: 576px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 50px;
    }
}

@media only screen and (max-width: 1024px) and (max-height: 440px) {
    :root {
        --sidebar-width: 0;
    }
}

@media only screen and (max-width: 575px) {
    :root {
        --header-height: 64px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--color-black);
    color: var(--color-steel);
    font-family: var(--font-inter);
    font-size: var(--font-size-def);
    font-weight: var(--font-weight-def);
    line-height: var(--line-height-def);
}

html.lock,
body.lock {
    overflow: hidden;
}

body.no-anim *:not(.switcher):not(.switcher *),
body.no-anim:not(.switcher):not(.switcher *) {
    transition: none !important;
    animation: none !important;
}

button {
    border: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}

.d-none {
    display: none;
}

.no-pb {
    padding-bottom: 0 !important;
}

.no-line {
    border: none !important;

    &::after {
        display: none !important;
    }
}

button {
    background-color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* ===== Component Light ===== */
.sunbeams {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.sunbeams__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

html[data-theme="light"] .sunbeams {
    display: none !important;
    pointer-events: none !important;
}

@media only screen and (max-width: 575px) {
    .sunbeams {
        top: -13px;
        width: 100%;
        height: 416px;
    }
    .sunbeams__svg--desktop {
        display: none;
    }
}

@media only screen and (min-width: 576px) {
    .sunbeams {
        top: 0;
        width: 1142px;
        height: 556px;
    }
    .sunbeams__svg--mobile {
        display: none;
    }
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    caret-color: var(--color-white) !important;
    -webkit-text-fill-color: var(--color-white) !important;
    transition: background-color 9999s ease-in-out 0s;
    font-size: 14px !important;
    -webkit-text-size-adjust: 100% !important;
}

input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    background-color: var(--color-black) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--color-black) inset !important;
}

input:autofill,
textarea:autofill,
select:autofill {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
}


body.active-top-bar {
    .workspace__header, 
    .content__header, 
    .sidebar {
        top: var(--top-bar-height);
    }

    .workspace, 
    .content {
        padding-top: calc(var(--header-height) + var(--top-bar-height));
    }
}