* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
    overflow: hidden;
    color: #333;
    background-color: #fff;
}

.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-widget-header {
    background: linear-gradient(135deg, #061D76 60%, #030E38 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.agent-info {
    display: flex;
    align-items: center;
}

.agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.agent-name {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.agent-status {
    font-size: 12px;
    color: #8ae88a;
    letter-spacing: 0.2px;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.agent-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8ae88a;
    margin-right: 5px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-widget-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f8f8f8;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.chat-widget-body::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    padding: 0 5px;
}

.message {
    max-width: 90%;
    padding: 9px 12px;
    margin-bottom: 6px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-received {
    background-color: #f1f1f1;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin-right: 20px;
}

.message-sent {
    background-color: #1e1e1e;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: 20px;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    animation: pulse 1.5s ease infinite;
}

.typing-indicator span {
    height: 9px;
    width: 9px;
    margin: 0 3px;
    background-color: #666;
    display: block;
    border-radius: 50%;
    opacity: 0.6;
    transform-origin: center;
}

.typing-indicator span:nth-of-type(1) {
    animation: typing 1s infinite;
}

.typing-indicator span:nth-of-type(2) {
    animation: typing 1s 0.2s infinite;
}

.typing-indicator span:nth-of-type(3) {
    animation: typing 1s 0.4s infinite;
}

@keyframes typing {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-7px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.chat-widget-footer {
    padding: 12px 16px;
    background-color: white;
    display: flex;
    border-top: 1px solid #eaeaea;
}

#messageInput {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#messageInput:focus {
    border-color: #aaa;
}

#sendButton {
    margin-left: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #061D76 70%, #030E38 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#sendButton:hover {
    background: linear-gradient(135deg, #0825A0 60%, #061D76 100%);
}

.privacy-text {
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.privacy-text a {
    color: #666;
    text-decoration: underline;
}

/* Response buttons styling */
.response-button-container, 
.multiple-choice-container {
    display: flex;
    justify-content: flex-end;
    margin: 5px 0;
    width: 100%;
}

.multiple-choice-container {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.response-button,
.multiple-choice-button {
    background: linear-gradient(135deg, #061D76 70%, #030E38 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    width: 250px;
    box-shadow: 0 3px 8px rgba(6, 29, 118, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.response-button:hover,
.multiple-choice-button:hover {
    background: linear-gradient(135deg, #0825A0 60%, #061D76 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(6, 29, 118, 0.35);
}

/* WhatsApp button styling */
.whatsapp-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 8px 14px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 250px;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Chat bubble button that appears in the bottom right */
.chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #061D76 70%, #030E38 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 29, 118, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0825A0 60%, #061D76 100%);
    box-shadow: 0 6px 16px rgba(6, 29, 118, 0.35);
}

.chat-bubble img {
    width: 30px;
    height: 30px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chat-widget-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* Ajuste para o botão do WhatsApp e botões de redes sociais */
.social-button {
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 12px;
    width: 250px;
}

/* Ajuste para o componente de contagem regressiva */
.countdown-component {
    width: 250px !important;
    padding: 14px 18px !important;
} 