/* Adicione ao arquivo styles.css existente */

/* Menu de Categorias */
.categories-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.categories-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.categories-stats {
    display: flex;
    gap: 15px;
}

.stat-total {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: #f1f2f6;
}

.category-btn {
    background: white;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: #f8f9fa;
    border-color: #3498db;
    position: relative;
}

.category-btn.active:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #3498db transparent transparent;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid;
}

.category-info {
    flex: 1;
}

.category-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Categoria no item */
.item-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Barra de informações da categoria */
.category-info-bar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

.results-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Resultados vazios */
.empty-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.empty-results i {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.empty-results h2 {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Item do catálogo com categoria */
.catalog-item {
    position: relative;
}

.catalog-item .item-header {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Resumo no footer */
.category-summary-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.category-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.security-notice-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Instruções de categorização */
.categories-explained {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.category-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-example {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.category-example h4 {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-example p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.scan-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .categories-list {
        grid-template-columns: 1fr;
    }
    
    .category-summary-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}