/* Reset e estilos básicos */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/* Estilo do corpo da página */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8, #d9e3f0);
    color: #333;
}

/* Estilo do cabeçalho */
header {
    background: linear-gradient(135deg, #00b4db, #0083b0); /* Gradiente azul vibrante */
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Estilo da seção principal */
main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 30px; /* Espaçamento maior entre os conversores */
}

/* Estilo de cada conversor */
.tool {
    background: linear-gradient(135deg, #ffffff, #b3ead0);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    height: 380px; /* Define uma altura fixa para uniformizar todos os conversores */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Espaça os itens internamente */
    text-align: center;
    transition: transform 0.2s;
}

.tool:hover {
    transform: translateY(-5px); /* Efeito de destaque ao passar o mouse */
}

.tool h2 {
    font-size: 1.5rem;
    color: #0083b0;
    margin-bottom: 15px;
}

/* Estilo dos campos de entrada e seleção */
.tool input[type="file"],
.tool input[type="number"],
.tool input[type="date"],
.tool select,
.tool textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border 0.3s;
    resize: vertical; /* Para o textarea do contador de palavras */
}

.tool input[type="file"]:hover,
.tool input[type="number"]:hover,
.tool input[type="date"]:hover,
.tool select:hover,
.tool textarea:hover {
    border: 1px solid #00b4db;
}

/* Botões de ação */
.tool button {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.tool button:hover {
    background: linear-gradient(135deg, #0083b0, #00b4db);
}

/* Links de download e feedback visual */
.tool a {
    display: inline-block;
    margin-top: 15px;
    color: #0083b0;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.tool a:hover {
    color: #00b4db;
}

/* Estilo da mensagem de feedback e resultados */
.tool p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Estilo de cada conversor */
.converter {
    background: linear-gradient(135deg, #ffffff, #b3ead0);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    height: 380px; /* Define uma altura fixa para uniformizar todos os conversores */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Espaça os itens internamente */
    text-align: center;
    transition: transform 0.2s;
}

.converter:hover {
    transform: translateY(-5px); /* Efeito de destaque ao passar o mouse */
}

.converter h2 {
    font-size: 1.5rem;
    color: #0083b0;
    margin-bottom: 15px;
}

/* Estilo dos campos de entrada e seleção */
.converter input[type="file"],
.converter input[type="number"],
.converter input[type="date"],
.converter select,
.converter textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border 0.3s;
    resize: vertical; /* Para o textarea do contador de palavras */
}

.converter input[type="file"]:hover,
.converter input[type="number"]:hover,
.converter input[type="date"]:hover,
.converter select:hover,
.converter textarea:hover {
    border: 1px solid #00b4db;
}

/* Botões de ação */
.converter button {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.converter button:hover {
    background: linear-gradient(135deg, #0083b0, #00b4db);
}

/* Links de download e feedback visual */
.converter a {
    display: inline-block;
    margin-top: 15px;
    color: #0083b0;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.converter a:hover {
    color: #00b4db;
}

/* Estilo da mensagem de feedback e resultados */
.converter p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Estilo da seção de explicações */
.explicacoes {
    background: #f5f7fa; /* Fundo suave para diferenciar a seção */
    padding: 30px 20px;
    margin-top: 20px;
    text-align: left;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px; /* Espaçamento entre a seção de explicações e o rodapé */
}

.explicacoes h2 {
    font-size: 1.8rem;
    color: #0083b0;
    margin-bottom: 15px;
    text-align: center;
}

.explicacoes p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

.explicacoes strong {
    color: #0083b0; /* Destaque para os títulos das explicações */
}

/* Estilo do rodapé */
footer {
    background: linear-gradient(135deg, #00b4db, #0083b0); /* Gradiente do rodapé */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo adicional para mensagens de aviso */
#mensagemDownload {
    font-size: 0.9rem;
    color: #ff6600;
    margin-top: 10px;
    line-height: 1.5;
}

/* Estilo para o botão "Limpar"  para ".converter" com gradiente avermelhado */
.converter button.limpar {
    background: linear-gradient(135deg, #ff6b6b, #d63031); /* Gradiente avermelhado */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.converter button.limpar:hover {
    background: linear-gradient(135deg, #ff4e4e, #c0392b); /* Gradiente mais escuro ao passar o mouse */
}


/* Estilo para o botão "Limpar" para ".tool" com gradiente avermelhado */
.tool button.limpar {
    background: linear-gradient(135deg, #ff6b6b, #d63031); /* Gradiente avermelhado */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.tool button.limpar:hover {
    background: linear-gradient(135deg, #ff4e4e, #c0392b); /* Gradiente mais escuro ao passar o mouse */
}

.explicacoes .exemplos {
    text-align: center;
    margin-top: 10px;
}

.explicacoes p,
.explicacoes ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.explicacoes ul {
    list-style-type: none; /* Remove as bolinhas da lista para um visual mais limpo */
    padding: 0;
}

.explicacoes ul li {
    margin: 5px 0;
}

