﻿

/* Componente do Menu */
.menu-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.menu-container a:not([href]) {
    color: #000000;
}

.menu-container a:not([href]):hover {
    color: #000000;
}

/* Menu lateral */
.side-menu {
    background: #fff;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    will-change: width;
    transition: all  0.3s ease;
}

/* Estado fechado - apenas barra vertical */
.side-menu.closed {
    width: 85px;
    animation: menuClose 0.3s forwards;
}

/* Estado aberto - menu completo */
.side-menu.open {
    width: 350px;
    padding: 0px 35px 0px 35px;
    animation: menuOpen 0.3s forwards;
}

@keyframes menuOpen {
    from {
        width: 85px;
    }
    
    to {
        width: 350px;
    }
}

@keyframes menuClose {
    from {
        width: 350px;
    }

    to {
        width: 85px;
    }
}

/* Cabeçalho do menu */
.menu-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 33px 0px 16px 0px;
    width: 100%;
}

.menu-header-mobile {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: fit-content;
    cursor: pointer;
}

.logo-icon {
    color: #3498db;
    font-size: 28px;
    flex-shrink: 0;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

/* Itens do menu */
.menu-items {
    flex-grow: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
}

.menu-item-row {
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 5px 0px;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.menu-item:hover {
    color: var(--primary-color) !important;
}

.menu-item-whatsapp {
    display: flex;
    align-items: center;
    border-radius: 100px;
    background-color: #2fd04c;
    padding: 8px;
}

.menu-item-crisp {
    display: flex;
    align-items: center;
    border-radius: 100px;
    background-color: #289efd;
    color: #ffffff;
    padding: 8px;
}

/* Hub único: Suporte e feedback — botão no menu; opções em painel fixo à direita da barra (fora do overflow do aside) */
.menu-suporte-hub-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Suporte: alinhado aos outros .menu-item (padding/altura); cor só no círculo do ícone */
.menu-item.menu-item-suporte-hub {
    border: none;
    outline: none;
    box-shadow: none;
    font: inherit;
    width: 100%;
    text-align: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 100px;
    box-sizing: border-box;
    padding: 5px 0;
    align-items: center;
    background: transparent;
    color: #000000 !important;
}

.menu-item.menu-item-suporte-hub:focus,
.menu-item.menu-item-suporte-hub:focus-visible,
.menu-item.menu-item-suporte-hub:active {
    outline: none;
    box-shadow: none;
}

.menu-item.menu-item-suporte-hub:hover {
    color: var(--primary-color) !important;
    filter: none;
    background-color: #f2eff5;
}

.side-menu.closed .menu-item-suporte-hub {
    justify-content: center !important;
    padding: 5px 0;
}

.menu-item-suporte-hub .menu-label {
    margin-left: 10px;
    line-height: 1.35;
    user-select: none;
    background: transparent;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

/* Mesmo “recorte” dos outros itens: .menu-icon com padding 8px + gradiente no círculo */
.menu-icon.menu-icon-suporte-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-color);
}

.menu-icon.menu-icon-suporte-hub img {
    filter: brightness(0) invert(1);
    display: block;
}

/* Painel flutuante à direita do menu (position + inset via JS inline) */
.menu-suporte-flyout-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 14px;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.menu-suporte-flyout-panel--mobile {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 8px;
    padding: 10px 12px;
}

.menu-suporte-opcao {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 10px;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
    flex-direction: row;
    border-radius: 10px;
}

.menu-suporte-flyout-panel--mobile .menu-suporte-opcao {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 6px;
    font-size: 11px;
    gap: 6px;
}

button.menu-suporte-opcao {
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.menu-suporte-opcao:focus,
.menu-suporte-opcao:focus-visible {
    outline: none;
}

.menu-suporte-opcao-texto {
    display: block;
    max-width: 100%;
}

.menu-suporte-opcao:hover {
    background: #f4effa;
    color: var(--primary-color) !important;
}

.menu-suporte-opcao-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-suporte-opcao.sugestao .menu-suporte-opcao-ico {
    background: #8c2ce1;
}

.menu-suporte-opcao.sugestao .menu-suporte-opcao-ico img {
    transform: scaleX(-1);
    filter: brightness(0) invert(1);
}

.menu-suporte-opcao.whatsapp .menu-suporte-opcao-ico {
    background: #2fd04c;
}

.menu-suporte-opcao.crisp .menu-suporte-opcao-ico {
    background: #289efd;
}

.menu-suporte-opcao.crisp .menu-suporte-opcao-ico img {
    filter: brightness(0) invert(1);
}


.menu-item-sugestao {
    display: flex;
    align-items: center;
    background-color: #8c2ce1;
    transform: scaleX(-1);
}

.menu-item:hover {
    background-color: #f2eff5;
    border-radius: 40px;
}

.menu-icon {
    font-size: 20px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 50%;
}

.menu-label {
    white-space: nowrap;
    margin-left: 10px;
    font-weight: 500;
    overflow: hidden;
}

/* Rodapé do menu */
.menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.user-details {
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    white-space: nowrap;
}

.user-role {
    font-size: 0.85rem;
    color: #95a5a6;
    white-space: nowrap;
}

/* Botão de toggle */
.toggle-btn {
    position: absolute;
    top: 25px;
    right: -15px;
    background-color: #3498db;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
    transition: all 0.3s;
    z-index: 20;
}

.toggle-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* Conteúdo principal */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f8fafc;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.content-header p {
    color: #7f8c8d;
    line-height: 1.5;
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.controls {
    flex: 1;
    display: flex; flex-direction: column;
    height: calc(100% - 30px); 
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.controls::-webkit-scrollbar {
    display: none;
}

.titulo-header {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    color: #000000;
}

.estabelecimento-perfil-loja {
    width: 60px;
    height: 60px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    padding: 4px;
    object-fit: cover;
}

.toggle-menu-lateral {
    width: 30px;
    height: 30px;
}

/* Responsividade */
@media (max-width: 768px) {
 
    .side-menu.open {
        width: 100%;
    }
    
    .menu-container {
        flex-direction: column;
        min-height: 500px;
    }
    
    .toggle-btn {
        top: 20px;
        right: 20px;
    }
    
    .app-title h1 {
        font-size: 2rem;
    }
}


@media (min-width: 576px) { /* ... */ }
@media (min-width: 768px) {
    .menu-header-mobile {
        display: none;
    }
}
@media (min-width: 992px) { /* ... */ }
@media (min-width: 1200px) { /* ... */ }
