@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
    --main-color: #ffffff;
    --main-color-dark: #3651d4;
    --main-color-light: #5872f5;
    --text-color: #000000;
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    position: relative;
    font-size: 0.9rem;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: var(--main-color);
    width: 15rem;
    padding-top: 1.8rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.5s ease-in-out;
    border-right: 1px solid black;
}

nav::before {
    content: "";
    position: absolute;
    width: 2rem;
    height: 100%;
    top: 0;
    left: 100%;
}

main {
    padding: 2rem;
}

.sidebar-links a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    height: 30px;
    text-decoration: none;
}

.sidebar-top {
    position: relative;
    display: flex;
    align-items: center;
}

.shrink-btn {
    position: absolute;
    top: 50%;
    height: 27px;
    padding: 0 0.3rem;
    background-color: #3651d4;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px -3px rgba(70, 46, 118, 0.3);
    right: -2.65rem;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.shrink-btn i {
    line-height: 27px;
    transition: 0.3s;
}

.shrink-btn:hover {
    background-color: var(--main-color-dark);
}

nav:hover .shrink-btn,
.shrink-btn.hovered {
    transform: translateY(-50%) translateX(0px);
    opacity: 1;
    pointer-events: all;
}

.search {
    min-height: 2.5rem;
    margin: 0 0.5rem 0.7rem;
    display: grid;
    align-items: center;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid var(--text-color);
}

.search input {
    height: 100%;
    width: 100%;
    padding: 0 1rem 0 1rem;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}

/* When the menu shrinks */

.hide {
    transition: opacity 0.3s 0.2s;
}

body.shrink nav {
    width: 0;
}

body.shrink .hide {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
}

.description-truncate {
    max-width: 25rem
}

.table_item:hover {
    --text-color: var(--main-color-dark);
}

/* Styles for code coloring */
pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em
}

code.hljs {
    padding: 3px 5px
}

.hljs {
    color: #a9b7c6;
    background: linear-gradient(60deg, #0c0f18, #131b30);
    border-radius: 5px;
    max-height: 700px;
}

.hljs-bullet, .hljs-literal, .hljs-number, .hljs-symbol {
    color: #6897bb
}

.hljs-deletion, .hljs-keyword, .hljs-selector-tag {
    color: #cc7832
}

.hljs-link, .hljs-template-variable, .hljs-variable {
    color: #629755
}

.hljs-comment, .hljs-quote {
    color: grey
}

.hljs-meta {
    color: #bbb529
}

.hljs-addition, .hljs-attribute, .hljs-string {
    color: #6a8759
}

.hljs-section, .hljs-title,
.hljs-type {
    color: #ffc66d
}

.hljs-name, .hljs-selector-class, .hljs-selector-id {
    color: #e8bf6a
}

.hljs-emphasis {
    font-style: italic
}

.hljs-strong {
    font-weight: 700
}

.migration-files {
    padding-left: 30px;
    margin-bottom: 30px;
    margin-left: 7px;
    border-left: 1px solid #48628b;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}