 :root {
            --primary-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
            --secondary-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
            --success-gradient: linear-gradient(135deg, #43e97b, #38f9d7);
            --danger-gradient: linear-gradient(135deg, #ff758c, #ff7eb3);
            --warning-gradient: linear-gradient(135deg, #ff9a9e, #fad0c4);
            --info-gradient: linear-gradient(135deg, #a18cd1, #fbc2eb);
            --dark-gradient: linear-gradient(135deg, #4b6cb7, #182848);
            --btn-gradient: linear-gradient(135deg, #5a5a5a, #2a2a2a);
            --btn-hover-gradient: linear-gradient(135deg, #8b0000, #2a2a2a);
        }

        html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* Impede rolagem horizontal */
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .main-content {
        flex: 1 0 auto;
        width: 100%;
        max-width: 100%;
    }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f7fa;
            min-height: 100vh;
            padding: 20px;
            background-image: radial-gradient(circle at 10% 20%, rgba(91, 173, 254, 0.1) 0%, rgba(245, 247, 250, 1) 90%);
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .title-box {
            display: inline-block;
            background: var(--primary-gradient);
            color: white;
            padding: 1rem 2rem;
            border-radius: 20px;
            font-weight: 700;
            box-shadow: 0 10px 30px rgba(110, 142, 251, 0.3);
            position: relative;
            overflow: hidden;
            font-size: clamp(1.5rem, 4vw, 2rem);
        }
        
        .title-box::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
            transform: rotate(30deg);
            z-index: -1;
            animation: shine 3s infinite;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) rotate(30deg); }
            100% { transform: translateX(100%) rotate(30deg); }
        }
        
        .search-container {
            margin: 20px auto;
            width: 100%;
            max-width: 600px;
        }
        
        .search-container input {
            width: 100%;
            padding: 12px 20px;
            border: none;
            border-radius: 50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            font-size: 1rem;
            transition: all 0.3s;
            background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 15px center;
            padding-left: 45px;
        }
        
        .search-container input:focus {
            outline: none;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            transform: translateY(-2px);
        }
        
        .tools-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .tool-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            border: none;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .tool-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .tool-icon {
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .tool-icon i {
            position: relative;
            z-index: 2;
            text-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .tool-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
            z-index: 1;
        }
        
        .tool-body {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .tool-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #2c3e50;
            font-size: 1.1rem;
        }
        
        .wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23000000"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23000000"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23000000"/></svg>');
            background-size: cover;
            opacity: 0.05;
            animation: wave 8s linear infinite;
        }
        
        @keyframes wave {
            0% { background-position-x: 0; }
            100% { background-position-x: 1200px; }
        }
        
        .btn-back {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--btn-gradient);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 10px 20px;
            font-weight: 500;
            transition: all 0.3s;
            text-decoration: none;
            margin-top: 30px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .btn-back:hover {
            background: var(--btn-hover-gradient);
            transform: translateX(-3px);
        }
        
       /* ======================
   CATEGORIAS DE FERRAMENTAS 
   ====================== */

/* Cores baseadas nas variáveis existentes */
.cat-conversor { background: var(--secondary-gradient); }
.cat-calculadora { background: var(--success-gradient); }
.cat-imagem { background: var(--danger-gradient); }
.cat-documentos { background: var(--warning-gradient); }
.cat-internet { background: var(--info-gradient); }
.cat-financeiro { background: var(--primary-gradient); }
.cat-utilidades { background: var(--dark-gradient); }

/* Novas categorias com cores harmonizadas */
.cat-audiovideo { 
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    --category-btn-color: #8E2DE2;
}
.cat-saude { 
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    --category-btn-color: #FF416C;
}
.cat-seguranca { 
    background: linear-gradient(135deg, #0F2027, #203A43);
    --category-btn-color: #0F2027;
}
.cat-empresarial { 
    background: linear-gradient(135deg, #1A2980, #26D0CE);
    --category-btn-color: #1A2980;
}
.cat-entretenimento { 
    background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
    --category-btn-color: #FF9A9E;
}
.cat-office { 
    background: linear-gradient(135deg, #D31027, #EA384D);
    --category-btn-color: #D31027;
}
.cat-ciencia { 
    background: linear-gradient(135deg, #614385, #516395);
    --category-btn-color: #614385;
}
.cat-utilitarios { 
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    --category-btn-color: #43e97b;
}

/* ======================
   BOTÕES DE CATEGORIA 
   ====================== */

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px auto;
    flex-wrap: wrap;
    max-width: 1200px;
    padding: 0 20px;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    background: #f1f1f1;
}

/* Estilo para botões ativos */
.category-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Cores específicas para cada botão de categoria */
.category-btn.cat-conversor.active { background: var(--secondary-gradient); }
.category-btn.cat-calculadora.active { background: var(--success-gradient); }
.category-btn.cat-imagem.active { background: var(--danger-gradient); }
.category-btn.cat-documentos.active { background: var(--warning-gradient); }
.category-btn.cat-internet.active { background: var(--info-gradient); }
.category-btn.cat-financeiro.active { background: var(--primary-gradient); }
.category-btn.cat-utilidades.active { background: var(--dark-gradient); }
.category-btn.cat-audiovideo.active { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.category-btn.cat-saude.active { background: linear-gradient(135deg, #FF416C, #FF4B2B); }
.category-btn.cat-seguranca.active { background: linear-gradient(135deg, #0F2027, #203A43); }
.category-btn.cat-empresarial.active { background: linear-gradient(135deg, #1A2980, #26D0CE); }
.category-btn.cat-entretenimento.active { background: linear-gradient(135deg, #FF9A9E, #FAD0C4); }
.category-btn.cat-office.active { background: linear-gradient(135deg, #D31027, #EA384D); }
.category-btn.cat-ciencia.active { background: linear-gradient(135deg, #614385, #516395); }
.category-btn.cat-utilitarios.active { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* Efeito hover para todos os botões */
.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Ícones nos botões */
.category-btn i {
    font-size: 0.9em;
}

/* Botão "Todos" especial */
.category-btn.all {
    background: #e0e0e0;
}
.category-btn.all.active {
    background: linear-gradient(135deg, #5a5a5a, #2a2a2a);
    color: white;
}

/* ======================
   RESPONSIVIDADE 
   ====================== */

@media (max-width: 992px) {
    .category-buttons {
        gap: 10px;
    }
    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .category-buttons {
        gap: 8px;
    }
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .category-buttons {
        flex-direction: column; /* Botões em coluna */
        gap: 10px;
        align-items: center;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    
    .category-btn {
        width: 90%; /* Largura dos botões */
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        flex: 0 0 auto;
    }
}

.tool-body {
    background: white !important; /* Força o fundo branco */
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 15px 15px; /* Arredonda apenas as bordas inferiores */
}
/* ======================
   RODAPÉ PROFISSIONAL
   ====================== */
/* ======================
   NOVO RODAPÉ MODERNO
   ====================== */

.custom-footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e1e1e1;
    padding: 40px 0 20px;
    font-family: 'Poppins', sans-serif;
    margin-top: 50px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #00b4d8;
}

.footer-section p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00b4d8;
}

.footer-links i {
    color: #00b4d8;
    width: 18px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #191970;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #00b4d8;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 0.9em;
}

.btn-subscribe {
    background: #00b4d8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background: #0077b6;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #2a2a4a;
    color: #aaa;
    font-size: 0.9em;
}

.footer-bottom .brand {
    color: #00b4d8;
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn-subscribe {
        padding: 10px;
        width: 100%;
    }
}

/* ======================
   NOVO CABEÇALHO (HEADER) - Estilo Thingiverse
   ====================== */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 2rem;
    color: #6e8efb;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.site-tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 5px 0 0 0;
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.header-search input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

/* Menu de categorias */
.categories-menu {
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 15px;
    border-radius: 8px;
    width: 100%;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    min-width: max-content;
}

.category-item {
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-item:hover {
    background: #e9ecef;
}

.category-item.active {
    background: var(--primary-gradient);
    color: white;
}

/* Responsividade do Header */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .logo-area {
        justify-content: center;
        text-align: center;
    }
    
    .header-search {
        margin: 0;
        order: 3;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .categories-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    .header-actions.active {
        display: flex;
    }
    
    .categories-menu {
        display: none;
    }
    
    .categories-menu.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 0.8rem;
    }
    
    .login-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* ======================
   CORREÇÕES PARA O HEADER 
   ====================== */

/* Centralizar o título e subtítulo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center; /* Adicionado para centralizar */
    width: 100%; /* Adicionado para ocupar toda a largura */
    text-align: center; /* Adicionado para centralizar texto */
}

/* Ajustar o container do header para centralizar conteúdo */
.header-container {
    display: flex;
    flex-direction: column; /* Alterado para coluna */
    align-items: center; /* Centraliza horizontalmente */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Para posicionar o menu toggle */
}

/* Ajustar a área de pesquisa */
.header-search {
    width: 100%;
    max-width: 500px;
    margin: 15px 0; /* Alterada a margem */
}

/* Ajustar ações do header */
.header-actions {
    margin-top: 15px;
}

/* Menu de categorias sempre visível */
.categories-menu {
    display: block !important; /* Força a exibição */
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 15px;
    border-radius: 8px;
    width: 100%;
}

/* Esconder o menu toggle (três tracinhos) */
.menu-toggle {
    display: none !important;
}

/* Ajustar a lista de categorias para caber em telas menores */
.categories-list {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; /* Permite quebra de linha */
    justify-content: center; /* Centraliza os itens */
}

.category-item {
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin: 3px; /* Adiciona espaçamento entre itens */
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .categories-list {
        gap: 3px;
    }
    
    .category-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .categories-list {
        flex-direction: column; /* Botões em coluna */
        gap: 8px;
        align-items: center;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    
    .category-item {
        width: 90%; /* Largura dos botões */
        text-align: center;
        padding: 10px 15px;
        flex: 0 0 auto;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-tagline {
        font-size: 0.85rem;
    }
}

/* ======================
   ESTILOS DO FOOTER LOGIN
   ====================== */

.footer-login-link {
    margin-top: 15px;
}

.footer-login-link .btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-login-link .btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.footer-register-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-register-link a {
    color: #00b4d8;
    text-decoration: none;
    font-weight: 500;
}

.footer-register-link a:hover {
    text-decoration: underline;
    color: #0077b6;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-login-link .btn-subscribe {
        width: 100%;
        justify-content: center;
    }
    
    .footer-register-link {
        text-align: center;
    }
}

/* ======================
   BOTÕES DE CATEGORIA MOBILE
   ====================== */

@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .category-btn {
        width: 90%;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .category-buttons {
        gap: 8px;
    }
    
    .category-btn {
        width: 95%;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Para telas muito pequenas */
@media (max-width: 400px) {
    .category-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .category-btn i {
        font-size: 0.8rem;
    }
}

/* Botão de toggle para categorias */
.btn-toggle-categories {
    display: none;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin: 15px auto;
    text-align: center;
    width: 90%;
    max-width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-toggle-categories:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.btn-toggle-categories i {
    margin-right: 8px;
}

/* Mostrar o botão e esconder categorias em mobile */
@media (max-width: 768px) {
    .btn-toggle-categories {
        display: block;
    }

    .category-buttons {
        display: none;
    }

    .category-buttons.active {
        display: flex;
        flex-direction: column;
        animation: fadeInDown 0.4s ease;
    }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

    /* ======================
   CAMPO DE BUSCA COM ÍCONE
   ====================== */
.header-search {
    position: relative;
    max-width: 500px;
    margin: 0 20px;
    flex: 1;
}

.header-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-search input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    z-index: 2;
    font-size: 1rem;
}

/* Efeito de foco no ícone quando o input está focado */
.header-search input:focus + .search-icon {
    color: #6e8efb;
}

/* Responsivo */
@media (max-width: 992px) {
    .header-search {
        margin: 15px 0;
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .header-search input {
        padding: 10px 15px 10px 40px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 0.9rem;
    }
/* ======================
   ANIMAÇÕES EXTRAS
   ====================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.back-to-top-btn {
    animation: fadeIn 0.3s ease;
}

.back-to-top-btn:hover {
    animation: bounce 1s;
}

/* Melhorar acessibilidade */
.back-to-top-btn:focus {
    outline: 2px solid #6e8efb;
    outline-offset: 2px;
}

.header-search input:focus {
    background-color: #f8f9fa;
}


.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.back-to-top-btn {
    animation: fadeIn 0.3s ease;
}

/* Melhorar acessibilidade */
.back-to-top-btn:focus {
    outline: 2px solid #6e8efb;
    outline-offset: 2px;
}

/* Garantir que a busca funcione em mobile */
@media (max-width: 768px) {
    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0;
    }
    
    .header-search input {
        width: 100%;
    }
    
    .btn-toggle-categories {
        display: block;
        margin: 10px auto;
    }
    
    .category-buttons {
        display: none;
        flex-direction: column;
    }
    
    .category-buttons.active {
        display: flex;
    }
}

/* Melhorar visibilidade dos cards escondidos */
.tool-card[style*="display: none"] {
    display: none !important;
}

.tool-card {
    display: block !important;
}

/* Animações para os cards */
.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Highlight para busca */
mark {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Melhorar performance em mobile */
@media (max-width: 768px) {
    .tool-card {
        transform: none !important;
    }
    
    .header-search input {
        font-size: 16px; /* Previne zoom no iOS */
    }
}

/* Loading state para busca */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6e8efb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

}