/* CSS para Tela de Ferramentas */

.tools-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tools-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tools-header h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.tools-header p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Grid de Ferramentas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.tool-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3148BB;
}

/* Removido efeito verde estranho */

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #3148BB;
    transition: color 0.3s ease;
}

.tool-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}

.tool-card:hover .tool-icon {
    color: #2a3da3;
}

.tool-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.tool-title {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.tool-description {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.tool-button {
    background: #f8f9fa;
    color: #333 !important;
    border: 1px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.tool-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333 !important;
    text-decoration: none;
}

.tool-button.active,
.tool-button:active {
    background: #3148BB;
    color: white !important;
    border-color: #3148BB;
    box-shadow: 0 4px 12px rgba(49, 72, 187, 0.3);
}

.tool-button.active:hover,
.tool-button:active:hover {
    background: #2a3da3;
    border-color: #2a3da3;
}

.tool-button.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.tool-button.secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Removido estilos desnecessários */

/* Status das Ferramentas */
.tool-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.tool-status.active {
    background: #d4edda;
    color: #155724;
}

.tool-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.tool-status.beta {
    background: #fff3cd;
    color: #856404;
}

/* Filtros */
.tools-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* Busca */
.search-box {
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* Estatísticas das Ferramentas */
.tools-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3148BB;
    margin: 0 0 5px 0;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tools-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .tools-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-item {
        padding: 20px;
    }
    
    .tool-icon {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .tools-stats {
        grid-template-columns: 1fr;
    }
    
    .tools-container {
        padding: 15px;
        margin: 10px 0;
    }
}
