* {
    box-sizing: border-box;
}

html {
    height: auto;
    min-height: 100%;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hard);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    background-clip: content-box;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background: var(--border-soft);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
}

html, body {
    height: auto !important;
    min-height: 100vh !important;
}

body {
    font-family: var(--font-family);
    margin: 0;
    background: var(--primary-background);
    color: var(--text-color);
    display: flex; /* Added flex to body */
    flex-direction: column;
}

body.layout-with-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

*::selection {
    background: var(--primary-color);
    color: white;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.layout-with-sidebar main {
    width: calc(100% - (var(--sidebar-width))*2);
    margin-left: var(--sidebar-width);
}

body.layout-no-sidebar main {
    width: 100%;
    margin-left: 0;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    main {
        width: 100%;
        margin-left: 0;
        padding: 0.5rem;
    }


}

.WIP {
    cursor: not-allowed;
    opacity: 0.5;
}