







.chat-container {
    width: 90%;
    max-width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(90deg, #075e54, #128c7e);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header span {
    font-size: 1.1rem;
}

.chat-body {
    padding: 18px;
    background: url('/bg-whats.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.chat-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-container img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 5px;
    border: 2px solid #e0e0e0;
}

.message {
    background: linear-gradient(135deg, #f3f3f3, #e3e3e3);
    padding: 12px;
    border-radius: 10px;
    max-width: 70%;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    font-size: 0.95rem;
}

.message::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right: 12px solid #e0f7fa;
    top: 5px;
    left: -12px;
    z-index: -1;
}

.typing {
    font-size: 12px;
    color: #757575;
    font-style: italic;
    margin-left: 42px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    box-sizing: border-box;
}

#sendBtn {
    width: 100%;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
    padding: 12px;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#sendBtn:hover {
    background: linear-gradient(45deg, #1ebe5d, #075e54);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.5);
}

#sendBtn i {
    font-size: 16px;
}

.logo {
    margin-top: 20px;
    text-align: center;
}

.logo img {
    width: 100px;
    height: auto;
}

/* Media Queries para responsividade */
@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        max-width: 340px;
    }

    .chat-header {
        padding: 10px;
    }

    .chat-header img {
        width: 35px;
        height: 35px;
    }

    .chat-header span {
        font-size: 1rem;
    }

    .chat-body {
        padding: 12px;
    }

    .message-container img {
        width: 25px;
        height: 25px;
        margin-right: 10px;
        margin-top: 3px;
    }

    .message {
        padding: 10px;
        max-width: 65%;
        font-size: 0.9rem;
    }

    .message::before {
        border: 8px solid transparent;
        border-right: 10px solid #e0f7fa;
        top: 3px;
        left: -10px;
    }

    .typing {
        font-size: 10px;
        margin-left: 35px;
    }

    input {
        padding: 10px;
        margin: 6px 0;
        font-size: 13px;
    }

    #sendBtn {
        padding: 10px;
        font-size: 14px;
    }

    #sendBtn i {
        font-size: 14px;
    }

    .logo img {
        width: 80px;
    }
}

@media (max-width: 400px) {
    .chat-container {
        width: 98%;
        max-width: 300px;
    }

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

    .chat-header span {
        font-size: 0.9rem;
    }

    .chat-body {
        padding: 10px;
    }

    .message-container img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .message {
        padding: 8px;
        max-width: 60%;
        font-size: 0.85rem;
    }

    .message::before {
        border: 6px solid transparent;
        border-right: 8px solid #e0f7fa;
        top: 2px;
        left: -8px;
    }

    .typing {
        font-size: 9px;
        margin-left: 28px;
    }

    input {
        padding: 8px;
        margin: 5px 0;
        font-size: 12px;
    }

    #sendBtn {
        padding: 8px;
        font-size: 13px;
    }

    #sendBtn i {
        font-size: 13px;
    }

    .logo img {
        width: 60px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .chat-container {
        width: 90%;
        max-width: 450px;
    }

    .chat-header {
        padding: 15px;
    }

    .chat-header img {
        width: 45px;
        height: 45px;
    }

    .chat-header span {
        font-size: 1.2rem;
    }

    .chat-body {
        padding: 18px;
    }

    .message-container img {
        width: 35px;
        height: 35px;
        margin-right: 14px;
        margin-top: 4px;
    }

    .message {
        padding: 12px;
        max-width: 70%;
        font-size: 1rem;
    }

    .message::before {
        border: 10px solid transparent;
        border-right: 12px solid #e0f7fa;
        top: 5px;
        left: -12px;
    }

    .typing {
        font-size: 12px;
        margin-left: 49px;
    }

    input {
        padding: 12px;
        margin: 8px 0;
        font-size: 15px;
    }

    #sendBtn {
        padding: 12px;
        font-size: 16px;
    }

    #sendBtn i {
        font-size: 16px;
    }

    .logo img {
        width: 120px;
    }
}

@media (min-width: 1025px) {
    .chat-container {
        width: 90%;
        max-width: 500px;
    }

    .chat-header {
        padding: 20px;
    }

    .chat-header img {
        width: 50px;
        height: 50px;
    }

    .chat-header span {
        font-size: 1.3rem;
    }

    .chat-body {
        padding: 25px;
    }

    .message-container img {
        width: 40px;
        height: 40px;
        margin-right: 16px;
        margin-top: 5px;
    }

    .message {
        padding: 16px;
        max-width: 70%;
        font-size: 1.1rem;
    }

    .message::before {
        border: 12px solid transparent;
        border-right: 14px solid #e0f7fa;
        top: 6px;
        left: -14px;
    }

    .typing {
        font-size: 14px;
        margin-left: 56px;
    }

    input {
        padding: 16px;
        margin: 10px 0;
        font-size: 16px;
    }

    #sendBtn {
        padding: 16px;
        font-size: 18px;
    }

    #sendBtn i {
        font-size: 18px;
    }

    .logo img {
        width: 150px;
    }
}