@charset "UTF-8";

:root {
    --admin-ink: #172522;
    --admin-muted: #62716d;
    --admin-forest: #123a35;
    --admin-forest-deep: #092521;
    --admin-teal: #287f78;
    --admin-teal-soft: #dcefeb;
    --admin-sand: #d8b980;
    --admin-paper: #fffdf9;
    --admin-canvas: #f4f2ec;
    --admin-line: rgba(23, 37, 34, .12);
    --admin-shadow: 0 24px 70px rgba(9, 37, 33, .14);
    --admin-radius: 22px;
}

html {
    font-size: 16px;
}

html,
body {
    min-height: 100%;
    color: var(--admin-ink);
    background: var(--admin-canvas);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible {
    outline: 3px solid rgba(40, 127, 120, .35);
    outline-offset: 3px;
}

.loading {
    z-index: 2000;
    background: var(--admin-forest-deep);
}

.loader {
    width: 56px;
    height: 56px;
    border-width: 3px;
}

.loader::after,
.loader::before {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

.loader::before {
    width: 18px;
    height: 18px;
}

/* Dashboard */
body.admin-shell {
    overflow: hidden;
    background: var(--admin-canvas);
}

.admin-shell .nav {
    display: flex;
    flex-direction: column;
    width: 270px;
    height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .76);
    background:
        radial-gradient(circle at 0 0, rgba(61, 164, 154, .18), transparent 34%),
        var(--admin-forest-deep);
    box-shadow: 16px 0 50px rgba(8, 31, 28, .14);
}

.admin-shell .nav-header {
    display: flex;
    width: 100%;
    height: 86px;
    min-height: 86px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #fff;
    text-shadow: none;
}

.admin-shell .nav-brand-name {
    font-family: 'Ananda', cursive;
    font-size: 1.1rem;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
}

.admin-shell .nav-brand-caption {
    color: var(--admin-sand);
    font-family: "Poppins", sans-serif;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.admin-shell .nav-header:hover .nav-brand-name,
.admin-shell .nav-header:focus-visible .nav-brand-name {
    color: var(--admin-sand);
}

.admin-shell .nav-menu {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1;
    margin-top: 0;
    padding-top: 16px;
}

.admin-shell .nav ul li {
    min-height: 48px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(255, 255, 255, .72);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-shell .nav ul li:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .07);
}

.admin-shell .nav ul li img {
    width: 17px;
    margin-right: 12px;
    filter: brightness(0) invert(1);
    opacity: .68;
}

.admin-shell .nav ul a {
    color: inherit;
}

.admin-shell .nav-footer {
    height: 48px;
    flex: none;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .42);
}

.admin-shell .nav-footer a {
    color: var(--admin-sand);
}

.admin-shell .section {
    width: calc(100% - 270px);
    left: 270px;
    background: var(--admin-canvas);
}

.admin-shell .section-header {
    width: 100%;
    height: 78px;
    padding: 0 28px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 253, 249, .9);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.admin-shell .section-header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.admin-shell .section-header-btn-nav > span {
    color: var(--admin-ink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
}

.admin-shell .btn-nav {
    width: 42px;
    height: 42px;
    margin-right: 12px;
    padding: 0;
    border: 1px solid var(--admin-line);
    border-radius: 13px;
    color: var(--admin-teal);
    background: var(--admin-paper);
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.admin-shell .btn-nav span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.admin-shell .section-header-usuario {
    min-width: 0;
}

.admin-shell .user-photo {
    width: 42px;
    height: 42px;
    border: 2px solid var(--admin-teal-soft);
    border-radius: 14px;
}

.admin-shell .user-photo-image,
.admin-shell #photo-user {
    border-radius: 11px;
    object-fit: cover;
}

.admin-shell .user-photo-mask {
    border-radius: 11px;
    background: rgba(9, 37, 33, .72);
}

.admin-shell .click-menu {
    padding-left: 10px;
}

.admin-shell .user-name h4 {
    color: var(--admin-ink);
}

.admin-shell .triangle-menu {
    border-top-color: var(--admin-teal);
}

.admin-shell .pop-up-menu {
    top: 68px;
    width: 260px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: var(--admin-paper);
    box-shadow: var(--admin-shadow);
}

.admin-shell .header-pop-up-menu {
    background-image: linear-gradient(var(--admin-forest) calc(50% + 10px), var(--admin-paper) calc(50% - 10px));
}

.admin-shell .content {
    height: calc(100vh - 78px);
}

.admin-shell .includes {
    height: 100%;
    padding: clamp(24px, 4vw, 54px);
}

.admin-shell .includes > .intro {
    margin-bottom: 28px;
    color: var(--admin-ink);
    background: transparent;
}

.admin-shell .intro p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.admin-shell .books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.admin-shell .book {
    width: 100%;
    margin: 0;
}

.admin-shell .book a {
    display: block;
}

.admin-shell .imagem-livro {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: #e8e5de;
    box-shadow: 0 12px 34px rgba(9, 37, 33, .09);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-shell .imagem-livro:hover {
    transform: translateY(-6px);
    box-shadow: var(--admin-shadow);
}

.admin-shell .imagem-livro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-shell .not-book {
    padding: 28px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    color: var(--admin-muted);
    background: var(--admin-paper);
}

.admin-shell .not-book a {
    color: var(--admin-teal);
}

.admin-logout {
    width: 100%;
    padding: 10px 18px;
    border: 0;
    color: var(--admin-forest);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.admin-shell .loading-content {
    background: rgba(244, 242, 236, .82);
    backdrop-filter: blur(6px);
}

/* Reader */
.admin-shell #window-book {
    min-height: calc(100vh - 150px);
    border: 1px solid var(--admin-line);
    border-radius: 24px;
    background: var(--admin-paper);
    box-shadow: var(--admin-shadow);
}

.admin-shell .book-container {
    min-height: inherit;
    padding: 24px;
}

.admin-shell .book-page {
    border-radius: 18px;
    background: #e9e6df;
    box-shadow: inset 0 0 0 1px var(--admin-line);
}

.admin-shell .page {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(9, 37, 33, .12);
}

.admin-shell .num-page {
    border-radius: 999px;
    color: #fff;
    background: rgba(9, 37, 33, .78);
}

.admin-shell .book-btns-sup button,
.admin-shell button.play-pause,
.admin-shell button.mute-btn {
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--admin-teal), var(--admin-forest));
    box-shadow: 0 10px 24px rgba(18, 58, 53, .18);
}

.admin-shell .audio-player {
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: var(--admin-paper);
}

.admin-shell .progress-container {
    border-radius: 999px;
    background: #dfe7e4;
}

.admin-shell .progress {
    border-radius: 999px;
    background: var(--admin-teal);
}

@media (max-width: 960px) {
    .admin-shell .nav {
        position: fixed;
        top: 90px;
        left: -300px;
        width: min(270px, calc(100vw - 24px));
        height: calc(100vh - 102px);
        height: calc(100dvh - 102px);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 18px;
        z-index: 1100;
        transition: left 180ms ease;
    }

    .admin-shell .nav.is-open {
        left: 12px;
    }

    .admin-shell .nav-header {
        display: flex;
    }

    .admin-shell .section {
        width: 100%;
        left: 0;
    }

    .admin-shell .section-header {
        padding: 0 18px;
    }

    .admin-shell .section-header-logo {
        display: none;
    }

    .admin-shell .btn-nav {
        display: flex;
    }

    .admin-shell .includes {
        padding: 24px 18px;
    }
}

@media (max-width: 620px) {
    .admin-shell .section-header-btn-nav > span,
    .admin-shell .user-name {
        display: none;
    }

    .admin-shell .books {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .admin-shell .book-container {
        padding: 12px;
    }

    .admin-shell .book-page {
        width: 100%;
    }

    .admin-shell .book-btns {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
