﻿/* =========================================================
   BONOKO - MAIN LAYOUT
   ========================================================= */

:root {
    --bonoko-bg: #08090c;
    --bonoko-bg-secondary: #0d0f14;
    --bonoko-surface: #12151c;
    --bonoko-surface-hover: #1b1f29;
    --bonoko-primary: #ff3158;
    --bonoko-primary-hover: #ff476a;
    --bonoko-text: #ffffff;
    --bonoko-text-secondary: #a5a9b5;
    --bonoko-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 245px;
    --header-height: 76px;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.bonoko-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient( circle at top right, rgba(255, 49, 88, 0.08), transparent 30% ), #08090c;
    color: var(--bonoko-text);
}


/* =========================================================
   SIDEBAR BONOKO
   ========================================================= */

.bonoko-sidebar {
    width: 255px;
    min-width: 255px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, rgba(18, 20, 27, 0.98) 0%, rgba(10, 11, 15, 0.99) 60%, #08090c 100% );
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    z-index: 1000;
    overflow: hidden;
}


/* =========================================================
   LOGO
   ========================================================= */

.sidebar-brand {
    min-height: 84px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}


.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}


.brand-symbol {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #ff3158 0%, #ff4f6d 55%, #ff7547 100% );
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 49, 88, 0.28);
}

.brand-symbol img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.brand-symbol i {
    font-size: 24px;
    margin-left: 2px;
}


.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}


.brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 2px;
}


.brand-subtitle {
    margin-top: 5px;
    color: #555c69;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 4px;
}


/* =========================================================
   PARTE SUPERIOR DO MENU
   ========================================================= */

.sidebar-menu-top {
    padding: 26px 14px 13px;
}


.sidebar-section-title {
    display: block;
    margin: 0 10px 12px;
    color: #555b68;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}


/* =========================================================
   LINKS FIXOS
   ========================================================= */

.sidebar-main-link {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 0 12px;
    border-radius: 10px;
    color: #8d929e !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}


    .sidebar-main-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.055);
        transform: translateX(2px);
    }


    .sidebar-main-link.active {
        color: #fff !important;
        background: linear-gradient( 90deg, rgba(255, 49, 88, 0.17), rgba(255, 49, 88, 0.035) );
    }


        .sidebar-main-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            width: 3px;
            height: 22px;
            border-radius: 5px;
            background: #ff3158;
            box-shadow: 0 0 12px rgba(255, 49, 88, 0.65);
        }


.sidebar-menu-icon {
    width: 23px;
    display: flex;
    justify-content: center;
    color: #686e7a;
}


.sidebar-main-link:hover .sidebar-menu-icon,
.sidebar-main-link.active .sidebar-menu-icon {
    color: #ff4a69;
}


.sidebar-menu-icon i {
    font-size: 17px;
}


/* =========================================================
   CATEGORIAS
   ========================================================= */

.sidebar-categories {
    flex: 1;
    min-height: 0;
    padding: 15px 14px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}


.sidebar-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}


    .sidebar-category-heading .sidebar-section-title {
        margin-bottom: 13px;
    }


    .sidebar-category-heading > i {
        margin-bottom: 12px;
        color: #464c57;
        font-size: 11px;
    }


/* Scrollbar */

.sidebar-categories::-webkit-scrollbar {
    width: 4px;
}


.sidebar-categories::-webkit-scrollbar-track {
    background: transparent;
}


.sidebar-categories::-webkit-scrollbar-thumb {
    background: #292d35;
    border-radius: 20px;
}


    .sidebar-categories::-webkit-scrollbar-thumb:hover {
        background: #3d424d;
    }

/* =========================================================
   MENU DE CATEGORIAS CUSTOMIZADO
   ========================================================= */

.custom-category-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}


/* =========================================================
   GRUPO
   ========================================================= */

.category-group {
    width: 100%;
    border-radius: 12px;
    transition: background 0.2s ease;
}


    .category-group.open {
        background: rgba(255, 255, 255, 0.025);
    }


/* =========================================================
   LINHA PRINCIPAL
   ========================================================= */

.category-row {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 11px;
    transition: background 0.18s ease;
}


    .category-row:hover {
        background: rgba(255, 255, 255, 0.05);
    }


/* =========================================================
   LINK PRINCIPAL
   ========================================================= */

.category-link {
    flex: 1;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 0 11px;
    border-radius: 11px;
    color: #8d929e !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.18s ease, transform 0.18s ease;
}


    .category-link:hover {
        color: #ffffff !important;
        transform: translateX(2px);
    }


    /* =========================================================
   ITEM ATIVO
   ========================================================= */

    .category-link.active {
        color: #ffffff !important;
        font-weight: 600;
        background: linear-gradient( 90deg, rgba(255, 49, 88, 0.14), rgba(255, 49, 88, 0.025) );
    }


        .category-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            width: 3px;
            height: 24px;
            border-radius: 8px;
            background: #ff3158;
            box-shadow: 0 0 12px rgba(255, 49, 88, 0.55);
        }


/* =========================================================
   ÍCONE
   ========================================================= */

.category-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: #656b77;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}


    .category-icon i {
        font-size: 14px;
    }


.category-row:hover .category-icon {
    color: #ff4c6a;
    background: rgba(255, 49, 88, 0.10);
    transform: scale(1.04);
}


.category-link.active .category-icon {
    color: #ff4c6a;
    background: rgba(255, 49, 88, 0.12);
}


/* =========================================================
   NOME
   ========================================================= */

.category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   BOTÃO DA SETA
   ========================================================= */

.category-toggle {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #454a55;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}


    .category-toggle i {
        font-size: 10px;
    }


    .category-toggle:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }


.category-group.open .category-toggle {
    color: #ff4968;
}


/* =========================================================
   SUBCATEGORIAS
   ========================================================= */

.subcategory-container {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.28s ease, opacity 0.2s ease;
}


    .subcategory-container.expanded {
        grid-template-rows: 1fr;
        opacity: 1;
    }


.subcategory-inner {
    min-height: 0;
    overflow: hidden;
    padding-left: 27px;
}


/* =========================================================
   LINK SUBCATEGORIA
   ========================================================= */

.subcategory-link {
    position: relative;
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 7px;
    color: #626875 !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 400;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}


    .subcategory-link:hover {
        color: #dfe2e8 !important;
        background: rgba(255, 255, 255, 0.025);
        transform: translateX(2px);
    }


    .subcategory-link.active {
        color: #ff6a82 !important;
    }


/* =========================================================
   LINHA DAS SUBCATEGORIAS
   ========================================================= */

.subcategory-line {
    width: 11px;
    height: 1px;
    flex-shrink: 0;
    background: #343944;
    transition: background 0.18s ease, width 0.18s ease;
}


.subcategory-link:hover .subcategory-line {
    width: 15px;
    background: #ff4968;
}


.subcategory-link.active .subcategory-line {
    width: 15px;
    background: #ff4968;
}


/* =========================================================
   CARREGAMENTO
   ========================================================= */

.sidebar-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 15px 10px;
    color: #626874;
    font-size: 11px;
}


/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.bonoko-main {
    margin-left: 255px;
    width: calc(100% - 255px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.bonoko-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(8, 9, 12, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bonoko-border);
}


.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   LINKS
   ========================================================= */

.header-link {
    padding: 9px 14px;
    text-decoration: none !important;
    color: var(--bonoko-text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s ease;
}

    .header-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.06);
    }


/* =========================================================
   AÇÕES
   ========================================================= */

.header-action {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    text-decoration: none !important;
    color: #d8dbe3 !important;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .header-action i {
        font-size: 17px;
    }

    .header-action:hover {
        color: white !important;
        background: var(--bonoko-surface-hover);
    }


/* =========================================================
   ÍCONES HEADER
   ========================================================= */

.header-icon-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #d3d6de !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.2s ease;
    background: rgba(255, 255, 255, 0.045);
}

    .header-icon-button i {
        font-size: 18px;
    }

    .header-icon-button:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.10);
        transform: translateY(-1px);
    }


/* =========================================================
   PERFIL
   ========================================================= */

.profile-button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: 25px;
    text-decoration: none !important;
    color: white !important;
    cursor: pointer;
    transition: 0.2s ease;
}

    .profile-button:hover {
        background: rgba(255, 255, 255, 0.07);
    }

.profile-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #303541, #171a21 );
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.profile-arrow {
    font-size: 10px;
    color: #777d8a;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-button {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #e9eaf0 !important;
    text-decoration: none !important;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
}

    .login-button:hover {
        background: rgba(255, 255, 255, 0.06);
    }


/* =========================================================
   CRIAR CONTA
   ========================================================= */

.register-button {
    background: var(--bonoko-primary);
    color: white !important;
    text-decoration: none !important;
    padding: 10px 17px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s ease;
    box-shadow: 0 7px 20px rgba(255, 49, 88, 0.22);
}

    .register-button:hover {
        background: var(--bonoko-primary-hover);
        transform: translateY(-1px);
    }


/* =========================================================
   LOGOUT
   ========================================================= */

.logout-button:hover {
    color: #ff6481 !important;
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 22px;
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.bonoko-content {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   NOTIFICAÇÃO
   ========================================================= */

.bonoko-notification {
    margin: 20px 35px 0;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 49, 88, 0.12);
    border: 1px solid rgba(255, 49, 88, 0.25);
    color: #ff8298;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 11px;
}

    .notification-content i {
        font-size: 19px;
    }

.notification-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
}


/* =========================================================
   FOOTER
   ========================================================= */

.bonoko-footer {
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    border-top: 1px solid var(--bonoko-border);
    background: #07080a;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-symbol {
    width: 31px;
    height: 31px;
    font-size: 15px;
    border-radius: 9px;
}

.footer-copy {
    color: #666c78;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1100px) {

    .header-action-text {
        display: none;
    }

    .header-link {
        display: none;
    }
}


@media (max-width: 850px) {

    .bonoko-sidebar {
        display: none;
    }

    .bonoko-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-button {
        display: flex;
    }

    .bonoko-header {
        padding: 0 18px;
    }

    .profile-name,
    .profile-arrow {
        display: none;
    }
}


@media (max-width: 600px) {

    .bonoko-header {
        padding: 0 12px;
    }

    .register-button {
        display: none;
    }

    .bonoko-footer {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }
}
