body {
    background-color: #fff;
    color: #2c3e50;
    font-family: 'Segoe UI', sans-serif;

}

.pagination-item {
    font-weight: bold;
    color: #007acc;
}

.pagination-item a {
    text-decoration: none;
}

.pagination-item-title {
    font-size: 0.9em;
}

#splash {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 1.2rem;
    color: #001133;
}

#overlay-loading {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

main {
    display: block;
    /* display: none; */
}

.app-sub-sidebar li:before {
    content: none;
}

.sidebar-nav {

    a {
        color: #505d6b;
    }

    h2 {
        font-size: 1.2rem;
        font-weight: bold;
        cursor: default;
        text-decoration-line: unset !important;
        margin-top: 2rem;
    }

    ul li p.active>a {
        font-weight: bold;
    }

    ul li.active a {
        font-weight: bold;
        color: #505d6b;
        border-right: 2px solid;
    }
}

.sidebar {
    position: relative;
    padding: 1.5rem;
    background: #f0f0f0;

    button {
        color: #2c3e50;
    }

    ul {
        line-height: 1em;
    }

    li {
        margin: 0;
    }

    ul li a {
        white-space: unset;
        font-size: 12px;
        padding: 0.5rem;
    }

    h1 {
        text-align: initial;
    }

    h3 {
        font-size: 1.2rem;
        font-weight: bold;
        line-height: 1.2;
        color: #505d6b;
    }

    .collapse:not(.show) {
        display: unset;
    }
    
}

.sidebar-toggle {
    background-color: transparent;
}

.sidebar-toggle span {
    background-color: #505d6b;
}


.content {
    padding: 0;
}


.markdown-section {
    display: flex;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0;

    .top-img {
        width: 100%;
        border-radius: 0;
    }

    img {
        border-radius: 0.5rem;
    }

    .alf-body {
        display: flex;
        flex-direction: column;
        max-width: 80%;
        padding-top: 3rem;
        padding-bottom: 2.5rem;

        .title,
        .title-welcome {
            color: #34495e;
            text-align: center;
            font-size: 2rem;
            font-weight: 600;
            line-height: 1.2;
            font-family: 'Segoe UI', sans-serif;
            letter-spacing: 0;
            margin: 0 0 1rem 0;
        }

        .title-dashboard {
            text-align: center;
        }

        .info {
            display: grid;
            padding-inline: 1rem;
            background-color: #f3f3f3;
            border-radius: 0.5rem;
            font-style: italic;
            font-size: 0.9rem;
        }

        .images-rel {
            display: flex;
        }

        .image {
            display: flex;
            justify-content: center;
            margin: 1rem 0 2rem;
        }

        .circle-ref {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 1rem;
            color: #566e98;
            background-color: #f7faff;
            border-radius: 50%;
            box-shadow: 1.5px 1px 1.5px 1.5px #909090;
            min-width: 30px;
            min-height: 30px;
            width: 30px;
            height: 30px;
        }

        td {
            text-align: center;
            vertical-align: center;
            padding: 3px 6px;

            img {
                aspect-ratio: 3/2;
                object-fit: cover;
                border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
                max-height: 20vh;
            }
        }

        table {
            margin-top: 1.5rem;
            width: 100%;
            table-layout: fixed;
            border-collapse: collapse;
            display: table;

            .caption-image {
                display: flex;
                justify-content: center;
                text-align: center;
            }
        }

        table,
        tr,
        td,
        th {
            border: transparent;
        }

        a {
            color: #2c3e50;
        }

        strong {
            color: unset;
        }

        mark {
            background-color: transparent;
            font-weight: bold;
        }

        h1,
        h3,
        h4,
        h5 {
            font-weight: bold;
            line-height: 1.2;
            font-family: 'Segoe UI', sans-serif;
            letter-spacing: 0;
        }

        h1 {
            text-align: center;
        }

        h2 {
            font-size: 2rem;
            color: #34495e;
            text-align: initial;
        }

        h3 {
            font-size: 1.5rem;
            color: #34495e;
        }

        h4 {
            display: flex;
            align-items: center;
            font-size: 1.25rem;
            color: #34495e;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        h5 {
            font-size: 1rem;
            color: #656973;
        }

        ul li {
            margin: 0 0 0 2rem;
        }

        hr {
            margin: 1rem 0;
            color: inherit;
            border: 0;
            border-top: var(--bs-border-width) solid;
            opacity: .5;
        }
    }


}

.docsify-pagination-container {
    font-size: 0.6rem;
    width: 80%;
    flex-wrap: nowrap;
    gap: 2px;

    .pagination-item-label {
        font-size: 1rem;
    }

    .pagination-item a {
        color: #2c3e50;
    }
}

/* Título da página */
.app-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #007acc;
}

/* Botões de rolagem rápida */
#scroll-top,
#scroll-bottom {
    display: none;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 45px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    z-index: 9999;
}

#scroll-top:hover,
#scroll-bottom:hover {
    opacity: 1;
}

#scroll-top {
    bottom: 80px;
}

#scroll-bottom {
    bottom: 20px;
}

.form-label {
    font-weight: bold;
}

#userDialogNovoUsuario {
    margin-top: 1rem !important;
    max-width: 800px;
    width: 90%;
    border: none;
    border-radius: 8px;
    padding: 0;

    button {
        background-color: transparent !important;
        color: #2c3e50 !important;
        border: none;
    }
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

video {
    pointer-events: auto;
    user-select: none;
}

@media screen and (max-width: 768px) {

    .markdown-section {

        th {
            padding: 6px;
        }

        h1 {
            font-size: 22px !important;
        }

        h2 {
            font-size: 30px !important;
        }

        h4 {
            font-size: 18px !important;
        }

        & .alf-body {
            & .title-welcome {
                font-size: 1.5rem;
            }

            & table {
                .caption-image {
                    font-size: 8px;
                }
            }
        }

        video {
            width: 100%;
        }
    }

    body.close .sidebar-toggle {
        background-color: transparent;
    }

    .images-rel {
        flex-direction: column;
    }

    .docsify-pagination-container {
        font-size: 0.4rem;
        flex-wrap: nowrap !important;
        gap: 2px;

        .pagination-item-label {
            font-size: 0.7rem;
        }
    }

    #scroll-top,
    #scroll-bottom {
        right: 5px !important;
    }

    /* #logout-btn {
        font-size: 10px !important;
        top: 0.5rem !important;
        left: 0 !important;
    } */

    .langSwitcher {
        top: 0rem !important;
        right: 3.7rem !important;
        width: 45px;

        #langSwitcher {
            width: 60px;
            font-size: 10px !important;
        }
    }

}