* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

label {
    font-weight: bold;
    color: #333;
}

input, select {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: #28a745;
    color: white;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

h3 {
    text-align: center;
    color: #555;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f4f4f9;
    font-weight: bold;
}

/* td {
    background-color: #fff;
} */

/* Estilo para a linha de pagamento vencido */
tr.vencido {
    background-color: #f8d7da !important; /* vermelho claro */
}

.delete-btn {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

.total {
    font-weight: bold;
}

.resultado {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    input, select {
        width: calc(100% - 18px);
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }

    table, th, td {
        font-size: 14px;
    }

    .delete-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    h1, h2 {
        font-size: 24px;
    }

    input, select {
        font-size: 14px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }

    table, th, td {
        font-size: 12px;
    }
}