/* Estilos personalizados para o Sistema da Cafeteria - Relatório Interativo */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.nav-link.active {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.tab-button.active {
    background-color: #16a34a;
    color: white;
    border-color: #16a34a;
}

.diagram-content {
    display: none;
}

.diagram-content.active {
    display: block;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Mobile Menu Styles */
#mobile-menu-btn {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* Botão flutuante mais visível */
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sombra mais pronunciada para destaque */
    box-shadow: 0 6px 30px rgba(22, 163, 74, 0.3);
}

#mobile-menu-btn:hover {
    background-color: #15803d;
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(22, 163, 74, 0.5);
}

#mobile-menu-btn.active {
    background-color: #dc2626;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 35px rgba(220, 38, 38, 0.5);
}

#mobile-menu-btn.active:hover {
    background-color: #b91c1c;
}

#mobile-menu-btn i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

#mobile-menu-btn.active i {
    transform: rotate(90deg);
}

#sidebar.mobile-open {
    transform: translateX(0) !important;
}

/* Animação sutil de flutuação */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Estilos responsivos aprimorados */
/* Garantir que o botão só apareça em dispositivos móveis */
#mobile-menu-btn {
    /* Oculto por padrão em todas as telas */
    display: none;
}

/* Botão mobile apenas em telas pequenas */
@media (max-width: 767px) {
    /* Mostrar botão apenas em mobile */
    #mobile-menu-btn {
        display: flex !important;
        /* Posição flutuante no canto inferior esquerdo */
        position: fixed;
        bottom: 1.5rem;
        left: 1rem;
        z-index: 1000;
        /* Animação suave */
        animation: float 3s ease-in-out infinite;
    }
    
    /* Layout mobile otimizado */
    body {
        padding-top: 0;
        padding-bottom: 80px; /* Espaço para o botão flutuante */
    }
    
    /* Animação sutil de flutuação */
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-3px);
        }
    }
    
    /* Parar animação quando ativo */
    #mobile-menu-btn.active {
        animation: none;
    }
    
    /* Sidebar mobile */
    #sidebar {
        width: 280px;
        max-width: 80vw;
    }
    
    /* Ajustes para telas pequenas */
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    /* Grid responsivo */
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .grid-cols-1.lg\\:grid-cols-5 {
        grid-template-columns: 1fr !important;
    }
    
    /* Tabs responsivos */
    #diagram-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-button {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        min-width: auto;
        flex: 1;
        text-align: center;
    }
    
    /* Tabelas responsivas */
    .overflow-x-auto {
        font-size: 0.8rem;
    }
    
    /* Imagens responsivas */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Padding e margem ajustados */
    .p-6 {
        padding: 1rem !important;
    }
    
    .p-4 {
        padding: 0.75rem !important;
    }
    
    /* Sidebar navigation em mobile */
    #main-nav {
        margin-top: 2rem;
    }
    
    #main-nav .nav-link {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .text-lg {
        font-size: 1rem !important;
    }
    
    .space-y-3 > * + * {
        margin-top: 0.5rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }
    
    /* Reduzir padding ainda mais em telas muito pequenas */
    .p-6 {
        padding: 0.75rem !important;
    }
    
    .p-4 {
        padding: 0.5rem !important;
    }
    
    /* Sidebar mais estreito em telas muito pequenas */
    #sidebar {
        width: 260px;
        max-width: 85vw;
    }
}
