﻿body {
}

/* Reset e estilos base */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* Variáveis */
:root {
    --cor-fundo: #0d0f14;
    --cor-superficie: #15171f;
    --cor-superficie-alt: #1c1f29;
    --cor-accent: #5b8cff;
    --cor-accent-hover: #7ba1ff;
    --cor-azul-claro: #dcefff;
    --texto-claro: #f5f6fa;
    --texto-muted: #9aa0ac;
    --borda-sutil: rgba(255, 255, 255, .08);
}

.text-brand {
    color: var(--cor-accent);
}

.bg-dark-soft {
    background-color: var(--cor-superficie-alt) !important;
}

/* Botões */
.btn-brand {
    color: #fff !important;
    background-color: var(--cor-accent) !important;
    border-color: var(--cor-accent) !important;
    transition: 0.3s;
}

.btn-brand:hover {
    background-color: var(--cor-accent-hover) !important;
    border-color: var(--cor-accent-hover) !important;
}

.btn-check:focus + .btn-brand,
.btn-brand:focus {
    box-shadow: 0 0 0 0.25rem rgba(91, 140, 255, 0.4);
}

.btn-check:checked + .btn-brand,
.btn-check:active + .btn-brand,
.btn-brand:active,
.btn-brand.active,
.show > .btn-brand.dropdown-toggle {
    color: #fff;
    background-color: var(--cor-accent-hover);
    border-color: var(--cor-accent-hover);
}

.btn-brand:disabled,
.btn-brand.disabled {
    color: #fff;
    background-color: #444;
    border-color: #3a3a3a;
}

.btn-outline-brand {
    color: var(--cor-accent) !important;
    border: 1px solid var(--cor-accent) !important;
    background-color: transparent !important;
    transition: 0.3s;
}

.btn-outline-brand:hover {
    color: #fff !important;
    background-color: var(--cor-accent) !important;
}

/* Estrutura do site */
html, body {
    height: 100%;
    margin: 0;
    background-color: var(--cor-fundo);
    color: var(--texto-claro);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Menu lateral */
.sidebar {
    width: 260px;
    background-color: var(--cor-superficie);
    color: var(--texto-claro);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    border-right: 1px solid var(--borda-sutil);
}

.sidebar-header {
    padding: 20px 20px 22px;
    text-align: center;
    border-bottom: 1px solid var(--borda-sutil);
}

.sidebar-brand,
.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.sidebar .sidebar-brand {
    flex-direction: column;
}

.sidebar-brand:hover,
.mobile-brand:hover {
    color: #fff;
}

.sidebar-brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cor-accent), var(--cor-accent-hover));
    box-shadow: 0 8px 24px rgba(35, 141, 227, .3);
}

.sidebar-brand-logo {
    width: 104px;
    height: 104px;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    clip-path: inset(2px round 24px);
}

.sidebar-company-name {
    display: block;
    margin-top: 13px;
    color: #fff;
    font-size: 1.12rem;
}

.sidebar-company-tagline {
    display: block;
    margin-top: 4px;
    color: var(--texto-muted);
    font-size: .75rem;
}

.mobile-brand .sidebar-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    clip-path: inset(1px round 11px);
}

.sidebar-footer {
    display: flex;
    padding: 20px 16px;
    flex-direction: column;
    gap: 3px;
    color: var(--texto-muted);
    font-size: .78rem;
    text-align: center;
    border-top: 1px solid var(--borda-sutil);
}

.sidebar-footer strong {
    color: var(--texto-claro);
    font-weight: 600;
}

.sidebar-footer b {
    color: var(--texto-claro);
    font-weight: 600;
}

.sidebar-footer-login {
    color: inherit;
    text-decoration: none;
}

.sidebar-footer-login:hover,
.sidebar-footer-login:focus {
    color: inherit;
    text-decoration: none;
}

.sidebar-footer-heart {
    color: #ef4444;
}

.sidebar-footer-coffee {
    color: #f59e0b;
}

    .sidebar-header img {
        max-width: 140px;
    }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    color: var(--texto-claro);
    text-decoration: none;
    font-size: .98rem;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, padding-left .2s ease;
}

.sidebar-menu a > i:first-child {
    width: 20px;
    color: var(--cor-accent-hover);
    text-align: center;
}

    .sidebar-menu a:hover {
        padding-left: 26px;
        background-color: rgba(91, 140, 255, .14);
        color: #fff;
    }

    .sidebar-menu a.active {
        border-left: 3px solid var(--cor-accent-hover);
        background: linear-gradient(90deg, rgba(91, 140, 255, .22), rgba(91, 140, 255, .05));
        color: #fff;
    }

    .sidebar-menu a.active > i:first-child {
        color: #fff;
    }

.submenu {
    background-color: var(--cor-superficie-alt);
    margin-left: 20px;
}

    .submenu a {
        padding-left: 30px;
        font-size: .9rem;
        color: var(--texto-muted);
    }

    .submenu a:hover {
        color: #fff;
    }

/* Conteúdo */
.page-shell {
    width: 100%;
    min-height: 100vh;
    margin-left: 260px;
    background: radial-gradient(circle at 88% 16%, rgba(40, 123, 255, .5) 0, rgba(31, 92, 196, .28) 26%, transparent 52%), linear-gradient(125deg, #0d0f14 0%, #101d33 44%, #16417b 76%, #1d56a0 100%);
    background-attachment: fixed;
}

.content {
    min-height: calc(100vh - 45px);
    padding: 25px;
    width: 100%;
}

/* Layout mobile */
@media (max-width: 991px) {
    .sidebar {
        display: none;
    }

    .content {
        padding-top: 72px;
        padding-bottom: 80px;
    }

    .page-shell {
        margin-left: 0;
    }
}

/* Menu mobile */
.mobile-menu {
    background-color: var(--cor-superficie);
    border-top: 1px solid var(--borda-sutil);
}

    .mobile-menu a {
        color: var(--texto-claro);
        text-decoration: none;
    }

        .mobile-menu a div {
            font-size: .7rem;
        }

/* Cabeçalho mobile */
.mobile-topbar {
    background-color: var(--cor-superficie);
    color: var(--texto-claro);
    padding: .5rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: start;
    border-bottom: 1px solid var(--borda-sutil);
}

    .mobile-topbar img {
        height: 30px;
        object-fit: contain;
        margin-right: 2px;
    }

    .mobile-topbar .mobile-brand strong {
        font-size: 1.3rem;
    }

    .mobile-topbar span {
        font-weight: 600;
        font-size: 1.2rem;
        text-align: center;
        flex-grow: 1;
    }

/* Rodapé */
.footer {
    background-color: rgba(21, 23, 31, .82);
    color: var(--texto-muted);
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid var(--borda-sutil);
}

.footer-signature {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.footer-signature strong,
.footer-signature b {
    color: var(--texto-claro);
    font-weight: 600;
}

.restricted-access {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    color: rgba(255, 255, 255, .28);
    border-radius: 50%;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.restricted-access:hover {
    color: rgba(255, 255, 255, .75);
    background-color: rgba(255, 255, 255, .08);
}

.restricted-access-footer {
    width: 22px;
    height: 22px;
    margin: 0 0 0 8px;
    font-size: .68rem;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .footer {
        margin-bottom: 60px;
    }
}

/* Cartões */
.card {
    border-radius: 15px;
    background-color: var(--cor-superficie);
    border: 1px solid var(--borda-sutil);
    box-shadow: 0 18px 45px rgba(0, 8, 20, .24);
}

    .card h5 {
        font-weight: 600;
        color: var(--texto-claro);
    }

    .card p {
        font-size: .9rem;
        color: var(--texto-muted);
    }

/* Espaçamento das páginas */
.page-offset {
    margin-top: 10px;
}

@media (max-width: 991px) {
    .page-offset {
        margin-top: 40px;
    }
}
