:root {
    --primary-color: #005a9e;
    --secondary-color: #fdb913;
    --background-color: #f4f4f9;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --red-alert: #d93025;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#logo {
    width: 50%;
    max-width: 250px;
    height: auto;
}

.blinking-text {
    font-size: 2em;
    font-weight: 900;
    color: var(--red-alert);
    animation: blink 1.5s linear infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

main {
    width: 100%;
    max-width: 800px;
    display: grid;
    gap: 20px;
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.input-group, .result-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

label {
    font-weight: 700;
    margin-right: 10px;
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
    font-size: 1em;
    width: 120px;
}

input:focus {
    outline: 2px solid var(--primary-color);
}

.result-group span {
    font-weight: 700;
    font-size: 1.1em;
}

.highlight span {
    color: var(--primary-color);
    font-size: 1.3em;
}

hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.proposals h3, .proposals h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.proposal-title-main {
    text-align: center;
    font-size: 1.8em;
    color: var(--text-color);
}

.proposal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.proposal-item:last-child {
    border-bottom: none;
}

.proposal-item h4 {
    margin: 0;
    font-size: 1.2em;
}

.proposal-item small {
    color: #666;
}

.proposal-diff {
    text-align: right;
}

.proposal-diff label {
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
    display: block;
}

.proposal-diff span {
    font-size: 1.2em;
    font-weight: 700;
    color: #2e7d32; /* Green for savings */
}

.footer-info {
    text-align: center;
}

.matricula {
    font-weight: 700;
}

.brinde {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 10px 0;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    header {
        flex-direction: column;
        gap: 15px;
    }
    #logo {
        width: 60%;
    }
    .blinking-text {
        font-size: 1.5em;
    }
    .input-group, .result-group, .proposal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    input[type="number"] {
        width: 100%;
    }
    .proposal-diff, .result-group {
        width: 100%;
        align-items: flex-end;
    }
    .proposal-diff label, .result-group > label {
        align-self: flex-start;
    }

}

