* {
    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;
}

.top-banner {
    background-color: #FCC419;
    color: #111;
    text-align: center;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
}

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

.header {
    background-color: #0036A6;
    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;
}

.img-consulta {
    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;
}

.destaque-nome {
    color: #000000;
    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;
}

.alerta-texto {
    color: #956404;
}

.destaque-data {
    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;
}


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

.btn-confirmar {
    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);
}

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

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

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

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

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

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

.ponto-escrita:nth-child(1) {
    animation-delay: 0s;
}

.ponto-escrita:nth-child(2) {
    animation-delay: 0.2s;
}

.ponto-escrita: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);
    }
}

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

.cpf-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 18px;
    width: 100%;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

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

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

.consultar-btn {
    background-color: #0033A0;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.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;
    }

    .inp-sec {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px 24px 16px;
    }

    .cpf-input {
        font-size: 20px;
        padding: 16px;
        border-radius: 10px;
    }

    .consultar-btn {
        width: 100%;
        padding: 16px;
        font-size: 18px;
        border-radius: 10px;
    }
}

.bolha-audio {
    padding: 8px 10px !important;
    min-width: 240px;
}

.player-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #0036A6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    padding: 0;
}

.btn-play:hover {
    background: #002a85;
}

.btn-play:active {
    transform: scale(0.96);
}

.btn-play svg {
    display: block;
}

.player-direita {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.barra-progresso {
    position: relative;
    height: 4px;
    background: #cfd8e7;
    border-radius: 999px;
    cursor: pointer;
    overflow: visible;
}

.progresso-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #0036A6;
    border-radius: 999px;
    transition: width 0.1s linear;
}

.progresso-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 11px;
    height: 11px;
    background: #0036A6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.1s linear;
    pointer-events: none;
}

.player-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
}

.player-tempo {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.btn-velocidade {
    border: none;
    background: transparent;
    color: #0036A6;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.btn-velocidade:hover {
    background: rgba(0, 54, 166, 0.08);
}

/* Novos estilos para alinhar o Chat com a imagem enviada */
.header-right-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-title-underline {
    height: 3px;
    width: 100%;
    background-color: #FFCC00;
    margin-top: 4px;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F8FAFF;
    padding: 24px 16px;
    border-bottom: 1px solid #E5E9F5;
    border-radius: 8px 8px 0 0;
    gap: 8px;
}

.atendente-avatar-container {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.atendente-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atendente-status-badge {
    background-color: #E6F4EA;
    color: #137333;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1E8E3E;
}

.atendente-nome {
    color: #1A1A1A;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.atendente-cargo {
    color: #70757A;
    font-size: 13px;
    margin: 0;
}


