* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:
    url('https://i.pinimg.com/736x/8c/98/99/8c98994518b575bfd8c949e91d20548b.jpg'),
    #ffecce57; /* creme */

  background-size: 500px;
  background-repeat: repeat;

  /* AQUI está o "filter color" */
  background-blend-mode: multiply;
  
  
    height: 100%;
    overflow: hidden;
    font-size: 16px;
    transition: background-color 0.3s ease;
}



.chat-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    
}

/* Header do WhatsApp */
.chat-header {
    background: #161717;
    color: white;
    padding: 12px 16px;

}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reclame-aqui-seal {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
}

.reclame-seal {
    width: 35px;
    height: 35px;
    border-radius: 50%;
  
    transition: transform 0.2s ease;
}

.reclame-seal:hover {
    transform: scale(1.1);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: #128c7e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-details h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e9edef;
}

.verified-badge {
    color: #1da1f2;
    font-size: 16px;
}

.status {
    font-size: 13px;
    color: #8696a0;
    font-weight: 500;
    margin: 2px 0 0 0;
}

.header-actions {
    display: flex;
    gap: 24px;
    font-size: 18px;
    align-items: center;
    margin-left: auto;
}

.header-actions i {
    cursor: pointer;
    color: #aebac1;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions i:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#resetChat {
    color: #ff6b6b;
    transition: all 0.2s ease;
}

#resetChat:hover {
    color: #ff5252;
    transform: rotate(180deg);
}

/* Área de mensagens */
.chat-messages {
    flex: 1;
    padding: 20px 16px;
    margin-bottom: 10px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.message {
    margin-bottom: 12px;
    display: flex;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    font-weight: 500;
    white-space: pre-wrap;
}

.message.bot .message-bubble {
    background: #ffffff;
    color: #303030;
    border-bottom-left-radius: 4px;
   
}

.message.user .message-bubble {
    background: #dcf8c6;
    color: #303030;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: right;
    font-weight: 400;
}

/* Indicador de digitação */
.typing-indicator {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingDots 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.typing-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

/* Input de chat */
.chat-input {
    padding: 12px 16px;
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 25px;
    padding: 8px 16px;
   
}

#userInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 6px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

#userInput:focus {
    color: #075e54;
}

#userInput::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

#sendButton {
    background: #25d366;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

#sendButton:hover {
    background: #128c7e;
}

/* Botões de resposta rápida */
.quick-replies {
    padding: 8px 16px 16px 16px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.quick-reply-btn {
    background-color: #ffffff !important;
    border: none;
    color: #000000;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    
    min-width: 120px;
    text-align: center;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1; /* garante que fique acima do pseudo-elemento de fundo */
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, #20c55a 0%, #0f7a6b 100%);
    transform: translateY(-2px);
    
}

.quick-reply-btn:active {
    transform: translateY(0);
    
}

.quick-reply-btn::before {
    content: none; /* remove a camada que cria brilho/riscos */
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quick-reply-btn:hover::before {
    left: 100%;
}

/* Texto de segurança */
.security-footer {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    border-radius: 0 0 15px 15px;
}

.security-footer i {
    color: #25d366;
    font-size: 14px;
}

.security-footer span {
    font-weight: 500;
}

/* Botão de tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background: #25d366;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;

    font-size: 18px;
}

.theme-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
    
}

body.dark-theme .theme-btn {
    background: #00a884;
    
}

body.dark-theme .theme-btn:hover {
    background: #008f72;
   
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    width: 95%;
    max-width: 400px;
    padding: 0 10px;
}

.payment-notification {
    background: white;
    color: #2D3748;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 4px;
    
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.payment-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.payment-notification.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.notification-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    background-color: white;
    padding: 4px;
  
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #1A202C;
}

.notification-message {
    font-size: 13px;
    margin: 0;
    color: #4A5568;
    line-height: 1.3;
}

.notification-time {
    font-size: 12px;
    color: #718096;
    margin-left: auto;
    white-space: nowrap;
}

/* Mensagem de Parceria e Segurança */
.partnership-message {
    color: #8696a0;
    padding: 12px 15px;
    margin: 10px auto 15px auto;
    max-width: 90%;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.partnership-content {
    max-width: 600px;
    margin: 0 auto;
}

.partnership-header {
    font-size: 14px;
    font-weight: bold;
    color: #8696a0;
    margin-bottom: 8px;
    background: #1C272D;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.partnership-info {
    background: #1C272D;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    text-align: left;
}

.info-icon {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.info-text {
    font-size: 14px;
    line-height: 1.4;
    color: #8696a0;
}

/* Responsividade */
@media (max-width: 480px) {
    .chat-container {
        max-width: 100%;
        height: calc(100vh - 80px);
    }
    
    .chat-header {
        padding: 8px 12px;
    }
    
    .profile-details h3 {
        font-size: 16px;
    }
    
    .verified-badge {
        font-size: 14px;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .header-actions {
        gap: 15px;
        font-size: 16px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .security-footer {
        border-radius: 0;
        margin-top: 0;
    }
    
    .notification-container {
        padding: 0 10px;
        width: 95%;
        max-width: 320px;
    }
    
    .payment-notification {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-time {
        font-size: 11px;
    }
    
    .partnership-message {
        padding: 8px 12px;
    }
    
    .partnership-info {
        padding: 10px;
    }
    
    .info-text {
        font-size: 13px;
    }
    
    .chat-container {
        height: calc(100vh - 80px);
    }
}

/* Scrollbar customizada */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}