/* Reset global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Corpo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #2d3436;
    line-height: 1.6;
    padding: 20px;
    text-align: center;
}

/* Cabeçalho */
h1 {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    padding: 25px 0;
    font-size: 2.2rem;
    letter-spacing: 1px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Container de formulário */
form {
    background-color: #fff;
    padding: 30px;
    margin: 0 auto 40px;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* Labels */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Campos de entrada e seleção */
form input[type="file"],
form select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="file"]:focus,
form select:focus {
    border-color: #00b894;
    outline: none;
    box-shadow: 0 0 6px rgba(0, 184, 148, 0.3);
}

/* Botões */
form button {
    width: 100%;
    background-color: #00b894;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

form button:hover {
    background-color: #019874;
}

form button:active {
    transform: scale(0.98);
}

/* Área de resultado */
#result {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

/* Tabela de resultado */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

table thead {
    background-color: #00b894;
}

table th, table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}

table tbody tr:nth-child(even) {
    background-color: #f7f9fa;
}

.alert {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

/* Responsivo */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    form {
        padding: 20px;
    }

    form button {
        font-size: 14px;
        padding: 12px;
    }

    table th, table td {
        font-size: 13px;
        padding: 10px;
    }
}
