* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
:root {
    --main-color: #1e0d63;
    --main-color-light: #afb3f8;
    --main-color-light-opacity: #afb3f850;
    --danger-color: #d32f2f;
    --danger-color-light: #f05252;
    --white: #fff;

    --main-light: #f0f0f0;
    --main-dark: #3f3f3f;
}
.ai-chat {
    max-width: 460px;
    height: 600px;
    width: 100%;
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 20px;
    background: #e0e0e0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    overflow: hidden;
    .head {
        display: flex;
        margin-bottom: 10px;
        h2 {
            padding: 10px;
        }
        .clear {
            margin-left: auto;
            margin-right: 10px;
        }
    }
    .messages {
        height: 100%;
        width: 100%;
        background: #fff;
        overflow: auto;
        .message {
            max-width: 300px;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 10px;
            word-wrap: break-word;
            &.user {
                background: #e3f7ff;
                margin: 10px 10px 0 auto;
            }
            &.ai {
                background: #eaeaea;
                margin: 10px auto 0 10px;
            }
            &.system {
                background: #fffde3;
                margin: 10px auto 0 10px;
            }
            &.err {
                background: #ffdadf;
                margin: 10px auto 0 10px;
            }
        }
    }
    .message-input {
        width: 100%;
        background: var(--main-color-light);
        display: flex;
        gap: 10px;
        padding: 10px;
        input {
            width: 100%;
            padding: 10px;
        }
        button {
            padding: 10px;
        }
    }
    &.hide {
        width: 60px;
        height: 60px;
        cursor: pointer;
        &::after {
            content: '+';
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            color: var(--white);
            font-size: 30px;
            align-items: center;
            justify-content: center;
            display: flex;
            background: var(--main-color-light);
        }
        &:hover {
            &::after {
                background: var(--main-color);
            }
        }
    }
}
body {
    height: 100vh;
    width: 100vw;
    .content {
        display: flex;
        width: 100%;
        height: 100%;
        .inner {
            display: flex;
            width: calc(100% - 180px);
            height: 100%;
            padding: 10px;
            background: #f0f0f0;
            .page-data {
                background: #fff;
                border-radius: 10px;
                width: 100%;
                height: 100%;
                display: flex;
                padding: 10px;
            }
        }
    }
}
a {
    text-decoration: none;
    color: var(--white);
}
input {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--main-color-light);
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    &::placeholder {
        font-size: 16px;
    }
    &:focus {
        border-color: var(--main-color);
    }
}
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    &.primary {
        background: var(--main-color);
        color: var(--white);
        height: 40px;
        padding: 10px;
        &:hover {
            background: var(--main-color-light);
        }
    }
    &.danger {
        background: var(--danger-color);
        color: var(--white);
        height: 40px;
        padding: 10px;
        &:hover {
            background: var(--danger-color-light);
        }
    }
}
.sidebar {
    max-width: 180px;
    width: 100%;
    background: var(--main-light);
    display: flex;
    flex-direction: column;
    padding: 10px;
    .logo {
        padding: 10px;
        margin-bottom: 20px;
    }
    .navigation {
        display: flex;
        flex-direction: column;
        gap: 2px;
        .item {
            width: 100%;
            display: flex;
            a, p {
                width: 100%;
                padding: 7px;
                display: block;
                color: var(--main-dark);
                border-radius: 10px;
                font-size: 15px;
                &:hover {
                    background: var(--main-color-light-opacity);
                    /* color: var(--main-light); */
                }
                &.active {
                    background: var(--main-color-light);
                    color: var(--main-light);
                }
            }
        }
    }
    .user {
        margin-top: auto;
        margin-bottom: 10px;
    }
    form {
        padding: 0;
        button {
            width: 100%;
        }
    }
}
.app {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
* {
    /* scrollbar-width: thin; */
    /* scrollbar-color: var(--main-color-light) transparent; */
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4px;
}
::-webkit-scrollbar-button {
    display: none !important;
}
.my-scrollable::-webkit-scrollbar-button {
    display: none !important;
}