/* Manual do sistema (App\Filament\Pages\Documentacao) */

.manual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .manual {
        grid-template-columns: 14rem minmax(0, 1fr);
    }
}

.manual__menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.03);
}

@media (min-width: 1024px) {
    .manual__menu {
        position: sticky;
        top: 5rem;
    }
}

.manual__menu-titulo {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.manual__menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.manual__menu-item:hover {
    background: rgb(255 255 255 / 0.05);
}

.manual__menu-item--ativo {
    background: rgb(245 158 11 / 0.12);
    color: rgb(251 191 36);
}

.manual__menu-icone {
    width: 1.25rem;
    height: 1.25rem;
}

.manual__conteudo {
    max-width: 62rem;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.03);
    line-height: 1.7;
    font-size: 0.95rem;
}

.manual__conteudo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.manual__conteudo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    color: rgb(251 191 36);
}

.manual__conteudo h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.manual__conteudo p,
.manual__conteudo ul,
.manual__conteudo ol,
.manual__conteudo table,
.manual__conteudo blockquote {
    margin-bottom: 1rem;
}

.manual__conteudo ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.manual__conteudo ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.manual__conteudo li {
    margin-bottom: 0.25rem;
}

.manual__conteudo strong {
    font-weight: 600;
}

.manual__conteudo code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: rgb(255 255 255 / 0.08);
    font-size: 0.85em;
}

.manual__conteudo blockquote {
    padding: 0.75rem 1rem;
    border-left: 3px solid rgb(245 158 11);
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgb(245 158 11 / 0.08);
}

.manual__conteudo blockquote p:last-child {
    margin-bottom: 0;
}

.manual__conteudo img {
    display: block;
    max-width: 100%;
    margin: 0.5rem 0 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

.manual__conteudo table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.manual__conteudo th,
.manual__conteudo td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    text-align: left;
    vertical-align: top;
}

.manual__conteudo th {
    background: rgb(255 255 255 / 0.05);
    font-weight: 600;
}

/* Tema claro */
:root:not(.dark) .manual__menu,
:root:not(.dark) .manual__conteudo {
    border-color: rgb(0 0 0 / 0.08);
    background: #fff;
}

:root:not(.dark) .manual__menu-item:hover {
    background: rgb(0 0 0 / 0.04);
}

:root:not(.dark) .manual__menu-item--ativo,
:root:not(.dark) .manual__conteudo h2 {
    color: rgb(180 83 9);
}

:root:not(.dark) .manual__conteudo h2 {
    border-top-color: rgb(0 0 0 / 0.08);
}

:root:not(.dark) .manual__conteudo code,
:root:not(.dark) .manual__conteudo th {
    background: rgb(0 0 0 / 0.05);
}

:root:not(.dark) .manual__conteudo th,
:root:not(.dark) .manual__conteudo td {
    border-color: rgb(0 0 0 / 0.1);
}

:root:not(.dark) .manual__conteudo img {
    border-color: rgb(0 0 0 / 0.1);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.manual__conteudo a:has(> img) {
    display: block;
    cursor: zoom-in;
}

.manual__video {
    display: block;
    width: 100%;
    margin: 0.5rem 0 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: #000;
}
