/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f4f4f9, #eaeef3); /* Fundo claro com tom pastel */
    color: #333; /* Texto escuro para contraste */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

/* Cabeçalho */
header {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
}
.cabecalho {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #4D02BF; /* Roxo primário */
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.cabecalho .logo {
    height: 40px;
    border-radius: 8px;
}

.cabecalho .title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Inputs e labels */
.input-group {
    margin: 20px 0;
    text-align: left;
    width: 100%;
    max-width: 500px;
}

label {
    font-size: 1rem;
    font-weight: bold;
    color: #4D02BF; /* Roxo primário */
    margin-bottom: 8px;
    display: block;
}

/* Estilo do input */
input[type="file"] {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-size: 1rem;
    background: #ffffff; /* Fundo branco */
    border: 2px solid #4D02BF; /* Roxo */
    border-radius: 10px;
    color: #333; /* Texto escuro */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

input[type="file"]:hover {
    background: #4D02BF; /* Roxo */
    border-color: #333;
    color: #ffffff;
}

.container-top{
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.container-mid{
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.container-bottom{
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Botões */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

button {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background: #4D02BF; /* Roxo */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

button:hover {
    background: #e8d0ff; /* Roxo claro */
    color: #4D02BF; /* Destaque roxo */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Canvas */
canvas {
    margin: 20px auto;
    max-width: 60%;
    border: 2px solid #4D02BF; /* Roxo */
    border-radius: 10px;
    background: #ffffff; /* Fundo claro */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Rodapé */
footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: #eaeef3; /* Fundo claro */
    border-top: 2px solid #4D02BF;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    color: #4D02BF; /* Roxo */
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 1024px) {
    .cabecalho {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .cabecalho .title {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .input-group {
        max-width: 400px;
        margin: 15px auto;
    }

    button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .cabecalho {
        padding: 15px;
    }

    .cabecalho .title {
        font-size: 1.3rem;
    }

    .input-group {
        max-width: 350px;
    }

    button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    canvas {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .cabecalho {
        padding: 10px;
    }

    .cabecalho .title {
        font-size: 1.2rem;
    }

    .input-group {
        max-width: 300px;
    }

    button {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}
