/* Reset básico */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #e1e1e1;
    height: 100vh; /* Para garantir que o fundo cubra toda a tela */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Faz com que o conteúdo comece de cima */
    flex-direction: column;
}

/* Barra superior do Telegram */
.telegram-header {
    background-color: #17212b;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1f2c38;
    width: 100%;
}

/* A imagem de fundo começando abaixo da barra superior */
.chat-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: url('https://i.pinimg.com/736x/3d/8c/2f/3d8c2f2c82c1c9ef1e27be645cd1aa17.jpg') no-repeat center top; /* Substitua pela URL da imagem do fundo */
    background-size: cover; /* Faz a imagem cobrir toda a área */
    margin-top: 20px; /* Para começar abaixo da barra */
    width: 100%;
    height: calc(100vh - 60px); /* Ajusta o tamanho para que o fundo ocupe o restante da tela */
    overflow-y: auto; /* Para permitir rolagem, caso o conteúdo ultrapasse o limite */
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: bold;
    font-size: 14px;
}

.profile-status {
    font-size: 12px;
    color: #7f8c8d;
}

/* Área de mensagens */
.chat-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.message.received {
    background-color: #1f2c38;
    color: #e1e1e1;
    align-self: flex-start;
}

.message.sent {
    background-color: #2b5278;
    color: #e1e1e1;
    align-self: flex-end;
    margin-left: auto;
}

/* Botões */
button {
    background-color: #2b5278;
    color: #e1e1e1;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3b6e9a;
}

/* Textarea da chave PIX */
textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #1f2c38;
    background-color: #17212b;
    color: #e1e1e1;
    resize: none;
}

/* Animação de mensagem chegando */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message {
    position: relative;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 5px;
}

.message-time {
    font-size: 12px;
    color: #7f8c8d;
    position: absolute;
    bottom: 5px;
    right: 10px;
}
