/* Corpo */
/* body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../imagens/bgmeu.png');
} */

/* Grid de Ferramentas */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px;
    padding: 20px;
    /* background-color: #fff;
    border: 3px solid #FF323D;
    border-radius: 10px; */
}

.tool-card {
    display: flex;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* padding: 20px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
}

.tool-card-img  {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 10px 10px;
    /* width: 100%; */
    /* background-color: #ff0000; */
    filter: invert(29%) sepia(89%) saturate(7488%) hue-rotate(0deg) brightness(95%) contrast(101%);
}

.tool-car-desc {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 10px 10px 0;
    /* background-color: aqua; */
}

.tool-card h3 {
    font-size: 20px;
    color: #ff0000;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 14px;
    color: #333;
}

/* Seção de Produtos */
.product-section {
    /* background-color: #ff0000; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-section h2 {
    width: 100%;
    padding-left: 30px;
    font-size: 34px;
    /* background-color: red; */
    text-align: center;
    color: rgb(255, 0, 0);
    border-radius: 10px;
    margin-bottom: 10px
}

.produtos-grid {
    width: 100%;
    /* background-color: aqua; */
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.produto-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.produto-card:hover {
    transform: scale(1.05);
}

.produto-card img {
    width: 100%;
    border-radius: 10px;
}

.produto-card h3 {
    margin: 15px 0;
    color: #333333;
}

.produto-card p {
    margin-bottom: 20px;
}

.btn-comprar {
    background-color: #333333;
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Seção Meta */
.meta-section {
    /* width: 100%; */
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 20px; */
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.meta-section h2 {
    width: 100%;
    padding: 5px;
    font-size: 30px;
    background-color: red;
    color: white;
    /* border-radius: 10px; */
    text-align: center;
    margin-bottom: 10px;
}
 
/* Tabelas */

.container-tabela {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px;
}

.table-info {
    /* background-color: #008cff; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 600px;
    padding: 20px;
    line-height: 1.6;
    text-align: justify;
    font-size: 18px;
}

.table-info h4 {
    font-size: 35px;
    text-align: center;
    color: #FF323D;
}

/* Wrapper da tabela para centralização e espaçamento lateral */
.table-wrapper, .table-wrapper2 {
    /* padding: 10px;  */
    overflow-x: auto; /* Permite rolagem horizontal em telas pequenas */
    /* background-color: yellow; */
    margin: 30px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos gerais da tabela em telas grandes */
table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-size: 1em;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-excluir {
    color: white;
    background-color: #FF323D;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

.btn-editar {
    color: white;
    background-color: #008cff;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

thead {
    background-color: #FF323D;
    color: #fff;
}

th, td {
    padding: 12px 15px;
}

th {
    font-weight: bold;
}

/* Efeito de linha alternada */
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Efeito de hover */
tbody tr:hover {
    background-color: #f1f1f1;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Área de artigos */
.articles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2rem;
    /* width: 100%; */
    background-color: #ffffff;
    border-radius: 10px;
    margin: 10px;
  }
  
  /* Cada artigo */
  .article {
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Imagem do artigo */
  .article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  /* Conteúdo do artigo */
  .article-content {
    padding: 1rem;
  }
  
  .article-content h2 {
    text-align: justify;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #FF323D;
  }
  
  .article-content p {
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .read-more {
    width: 100%;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #FF323D;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .read-more:hover {
    background-color: #ff4d56;
  }
  
  /* Efeito ao passar o mouse no artigo */
  .article:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

/* Estilos responsivos para telas menores */
@media (max-width: 768px) {
    table {
        font-size: 3vw;
    }

    .table-wrapper table {
        display: block;
    }

    .table-wrapper thead {
        display: block;
    }

    .table-wrapper tbody {
        display: block;
    }

    .table-wrapper th {
        display: block;
    }

    .table-wrapper td {
        display: block;
    }

    .table-wrapper tr {
        display: block;
    }
    
    .table-wrapper thead {
        display: none; /* Esconde o cabeçalho */
    }
    
    .table-wrapper tr {
        margin: 0 0 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    
    .table-wrapper td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        font-size: 0.9em;
        color: #222222;
        border-bottom: 1px solid #ddd;
    }
    
    /* Estiliza o label das células */
    .table-wrapper td:before {
        content: attr(data-label);
        font-weight: bold;
        /* color: #222222; */
        font-size: 0.95em;
        padding-right: 10px;
    }

    /* Remove a borda inferior do último item */
    .table-wrapper td:last-child {
        border-bottom: none;
    }

    .data-medicao {
        background-color: #FF323D;
        color: white;
    }
}