/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Página */
body {
    min-height: 100vh;
    background: #121212;
    color: #f5f5f5;

    font-family: Arial, Helvetica, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

/* Card principal */
#wrap {
    width: 100%;
    max-width: 420px;

    background: #1e1e1e;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Título */
h1 {
    text-align: center;

    font-size: 26px;

    margin-bottom: 30px;

    color: #ffffff;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Parágrafos */
form p {
    display: flex;
    flex-direction: column;
    gap: 7px;

    color: #bdbdbd;

    font-size: 15px;
}

/* Inputs */
input[type="number"] {
    width: 100%;

    padding: 12px;

    background: #2a2a2a;

    border: 1px solid #3a3a3a;

    border-radius: 8px;

    color: #ffffff;

    font-size: 16px;

    outline: none;

    transition: 0.2s;
}

/* Input quando selecionado */
input[type="number"]:focus {
    border-color: #ffffff;

    background: #303030;
}

/* Área do checkbox */
#hAlmoco {
    width: 17px;
    height: 17px;

    cursor: pointer;

    accent-color: #ffffff;
}

/* Texto do almoço */
form p:has(#hAlmoco) {
    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    padding: 10px 0;

    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* Botões */
input[type="submit"],
input[type="reset"] {
    padding: 12px;

    border: none;

    border-radius: 8px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

/* Botão calcular */
input[type="submit"] {
    background: #ffffff;

    color: #121212;
}

input[type="submit"]:hover {
    background: #dcdcdc;
}

/* Botão limpar */
input[type="reset"] {
    background: #2a2a2a;

    color: #ffffff;

    border: 1px solid #3a3a3a;
}

input[type="reset"]:hover {
    background: #333333;
}

/* Resultado */
h2 {
    text-align: center;

    margin-top: 30px;

    font-size: 20px;

    color: #ffffff;
}

/* Horas extras / débito */
h3 {
    text-align: center;

    margin-top: 10px;

    font-size: 15px;

    font-weight: normal;

    color: #aaaaaa;
}

/* Responsividade */
@media (max-width: 480px) {

    #wrap {
        padding: 25px;

        border-radius: 12px;
    }

    h1 {
        font-size: 22px;
    }
}
