@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f4f8; /* Azul claro e suave */
}

h1 {
    color: #1a237e; /* Azul escuro vibrante */
    text-align: center;
}

.controls-wrapper {
    margin: 20px 0;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.input-row label, .input-row select, .input-row input {
    flex-grow: 1;
}

.input-row.time-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.time-select-group {
    display: flex;
    gap: 5px;
    flex-grow: 1;
}

.time-select-group select {
    width: 50%;
}

select, input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #c5d0e2; /* Borda cinza-azulada */
    text-align: center;
    box-sizing: border-box;
}

/* --- NOVA REGRA: Ajusta a largura dos campos de peças --- */
#pecas-hora-input, #pecas-mesa-input {
    width: 7ch;
    max-width: 82px;
    text-align: right;
}

.no-arrows::-webkit-outer-spin-button,
.no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.no-arrows[type=number] {
    -moz-appearance: textfield;
}

/* Estilo para os botões - Agora unificado */
.btn-link {
    text-decoration: none;
    display: inline-block;
    margin: 15px 5px 0; /* Ajusta a margem para separar do item acima */
}

#calcular-btn,
#live-btn {
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #4a69bd; /* Azul-médio */
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#calcular-btn:hover,
#live-btn:hover {
    background-color: #3753a0; /* Azul-escuro no hover */
    transform: translateY(-2px);
}
.results-container {
    width: 90%;
    max-width: 600px;
    background-color: #ffffff; /* Fundo branco */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #e1e8f0; /* Linhas de tabela suaves */
    padding: 10px;
    text-align: center;
}

th {
    background-color: #1a237e; /* Azul escuro */
    color: white;
}

tr:nth-child(even) {
    background-color: #f8f9fb; /* Fundo listrado suave */
}

/* Ajustes sutis para telas menores */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    select, input {
        font-size: 14px;
        padding: 6px;
    }

    #calcular-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    #live-btn {
        font-size: 14px;
        padding: 8px 12px;
    }


    th, td {
        padding: 6px;
        font-size: 13px;
    }
}