* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra amarela superior */
.top-banner {
    background-color: #FFD700;
    color: #000;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.top-banner strong {
    font-weight: 700;
}

/* Header */
.header {
    background-color: #0033A0;
    width: 100%;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ConteÃºdo Principal */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.chat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
    background-color: #F8FAFF;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.chat-messages {
    padding: 25px 30px;
    margin-bottom: 0;
    max-height: 500px;
    overflow-y: auto;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0033A0;
    flex-shrink: 0;
}

.status-title {
    color: #0033A0;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}


.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInMessage 0.3s ease-out forwards;
}

.message-user {
    justify-content: flex-end;
}

@keyframes fadeInMessage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    flex-shrink: 0;
}

.avatar-img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.message-bubble {
    background-color: #F0F3FF;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 80%;
}

.message-bubble-user {
    background-color: #FFD700;
    color: #000;
}

.message-bubble p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.message-image {
    padding: 0;
    background-color: transparent;
}

.consulting-gif {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.message-taxacao {
    background-color: #FFF3CD;
    padding: 12px 16px;
    border-radius: 8px;
}

.message-taxacao p {
    color: #987A23;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.nome-taxacao {
    color: #856404;
    font-weight: 600;
}

.message-signature {
    padding: 0;
    background-color: transparent;
}

.signature-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.signature-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.signature-overlay {
    position: absolute;
    top: 23px;
    left: -53px;
    right: 0px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px;
    color: #000;
    font-size: 6px;
    text-align: center;
}

.signature-line {
    margin: 5px 0;
    font-weight: 500;
}

.signature-line strong {
    font-weight: 700;
    color: #000000;
}

.message-atencao {
    background-color: #FFF3CD;
    padding: 12px 16px;
    border-radius: 8px;
}

.message-atencao p {
    color: #9E812D;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.message-localizacao {
    background-color: #FFF3CD;
    padding: 12px 16px;
    border-radius: 8px;
}

.message-localizacao p {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.message-atencao-data {
    background-color: #FFF3CD;
    padding: 12px 16px;
    border-radius: 8px;
}

.message-atencao-data p {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.atencao-texto {
    color: #956404;
}

.data-texto {
    color: #956404;
    font-weight: 600;
}

.message-resumo {
    background-color: #f0f0f0;
    padding: 12px 16px;
    border-radius: 8px;
}

.message-resumo p {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.message-data {
    padding: 16px;
}

.user-data {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.data-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.data-item:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
}

.data-item strong {
    color: #0033A0;
    font-weight: 600;
}


.message-button-container {
    display: flex;
    justify-content: flex-end;
    margin: 15px 0;
    padding: 0 30px;
}

.confirm-button {
    background-color: #0033A0;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 51, 160, 0.3);
}

.confirm-button:hover {
    background-color: #002680;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 51, 160, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 51, 160, 0.3);
}

.confirm-button-clicked {
    background-color: #FFD700 !important;
    color: #0033A0 !important;
    cursor: default;
}

.confirm-button-clicked:hover {
    background-color: #FFD700 !important;
    transform: none;
}

.typing-indicator {
    background-color: #F0F3FF;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
    max-width: 80px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.input-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    padding: 0 30px 30px 30px;
}

.cpf-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.cpf-input:focus {
    border-color: #0033A0;
}

.cpf-input::placeholder {
    color: #999;
}

.consultar-btn {
    background-color: #0033A0;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.consultar-btn:hover {
    background-color: #002680;
}

.consultar-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background-color: #0033A0;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-title {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .input-section {
        flex-direction: column;
    }

    .consultar-btn {
        width: 100%;
    }
}

