:root {
    --primary-color: #0056b3;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-gray);
}

header .logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--dark-gray);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.form-label {
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #003d82;
}

.aviso {
    font-style: italic;
    text-align: right;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

footer {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #6c757d;
    background-color: var(--white);
    border-top: 1px solid #dee2e6;
}

/* --- Animação de entrada --- */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scanLine {
    0%   { width: 0%; opacity: 1; }
    80%  { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* --- Dados da Proposta --- */
.proposta-card {
    margin-top: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.proposta-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    opacity: 0;
    animation: fadeSlideIn 0.4s ease forwards;
}

.proposta-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
    animation: scanLine 0.4s ease forwards;
}

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

.proposta-item:nth-child(odd) {
    background-color: #f8f9fa;
}

/* Delays escalonados — cada item aparece 0.35s após o anterior */
.proposta-item:nth-child(1) { animation-delay: 0.2s; }
.proposta-item:nth-child(1)::after { animation-delay: 0.2s; }

.proposta-item:nth-child(2) { animation-delay: 0.55s; }
.proposta-item:nth-child(2)::after { animation-delay: 0.55s; }

.proposta-item:nth-child(3) { animation-delay: 0.9s; }
.proposta-item:nth-child(3)::after { animation-delay: 0.9s; }

.proposta-item:nth-child(4) { animation-delay: 1.25s; }
.proposta-item:nth-child(4)::after { animation-delay: 1.25s; }

/* Indicador de processamento */
.processando {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
    animation: fadeSlideIn 0.3s ease forwards;
    transition: opacity 0.4s ease, height 0.3s ease, margin 0.3s ease;
}

.processando.oculto {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.proposta-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    min-width: 70px;
    flex-shrink: 0;
}

.proposta-valor {
    font-size: 0.97rem;
    color: var(--dark-gray);
    font-weight: 400;
    word-break: break-word;
}

.proposta-status {
    display: inline-block;
    background-color: #d1e7dd;
    color: #0a3622;
    padding: 0.2em 0.65em;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }

    .card-container {
        padding: 1.5rem;
    }

    .proposta-item {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.65rem 1rem;
    }

    .proposta-label {
        min-width: unset;
    }
}