.simple-chat {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: #25D366 rgba(0, 0, 0, 0.2);
}

.simple-chat::-webkit-scrollbar {
    width: 8px;
}

.simple-chat::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.simple-chat::-webkit-scrollbar-thumb {
    background-color: #25D366;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.chat-message {
    padding: 15px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 70%;
    position: relative;
    margin-top: 25px;
}

.chat-message:first-child {
    margin-top: 5px;
}

.chat-message.agent {
    background-color: #1E1E1E;
    color: white;
    border-radius: 12px;
    align-self: flex-start;
    margin-left: 0;
    padding-left: 50px;
}

.chat-message.client {
    background-color: #25D366;
    color: #000;
    align-self: flex-end;
    margin-right: 0;
    text-align: right;
    padding-right: 50px;
}

.message-label {
    position: absolute;
    top: -20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.client .message-label {
    right: 50px;
}

.agent .message-label {
    left: 50px;
}

.agent-avatar {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-avatar i {
    color: #000;
    font-size: 16px;
}

.client-avatar {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-avatar i {
    color: #25D366;
    font-size: 16px;
}

.agent-content {
    display: flex;
    flex-direction: column;
}

.agent-text {
    font-size: 15px;
}

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

/* Ajustes para o placeholder */
.hero-image-placeholder {
    background: linear-gradient(45deg, #006633, #00CC66);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 400px;
}

/* Responsividade */
@media (max-width: 768px) {
    .chat-message {
        max-width: 85%;
    }
}



/* Additional Responsive Styles for Mobile */
@media (max-width: 768px) {
    .simple-chat {
        padding: 15px; /* Reduce padding */
        gap: 15px; /* Reduce gap between messages */
    }

    .chat-message {
        max-width: 85%; 
        padding: 12px; /* Reduce padding */
        font-size: 14px; /* Slightly smaller font */
        margin-top: 20px; /* Adjust top margin */
    }

    .chat-message:first-child {
        margin-top: 5px; /* Keep first message margin small */
    }

    .message-label {
        font-size: 11px; /* Smaller label font */
        top: -18px; /* Adjust label position */
    }

    .agent-avatar, .client-avatar {
        width: 25px; /* Smaller avatars */
        height: 25px;
    }

    .agent-avatar i, .client-avatar i {
        font-size: 14px; /* Smaller icons in avatars */
    }

    .chat-message.agent {
        padding-left: 40px; /* Adjust padding to account for smaller avatar */
    }

    .chat-message.client {
        padding-right: 40px; /* Adjust padding to account for smaller avatar */
    }

     .client .message-label {
        right: 40px; /* Adjust label position */
    }

    .agent .message-label {
        left: 40px; /* Adjust label position */
    }

    .hero-image-placeholder {
        height: 350px; /* Optionally reduce height on mobile */
    }
}

/* Optional: Add rules for very small screens if needed */
@media (max-width: 480px) {
    .simple-chat {
        padding: 10px;
        gap: 10px;
    }
    .chat-message {
        max-width: 90%; /* Allow slightly wider messages on very small screens */
        padding: 10px;
        font-size: 13px;
    }
     .message-label {
        font-size: 10px;
        top: -16px;
    }
     .agent-avatar, .client-avatar {
        width: 20px;
        height: 20px;
    }
     .agent-avatar i, .client-avatar i {
        font-size: 12px;
    }
     .chat-message.agent {
        padding-left: 35px;
    }
     .chat-message.client {
        padding-right: 35px;
    }
     .client .message-label {
        right: 35px;
    }
     .agent .message-label {
        left: 35px;
    }
     .hero-image-placeholder {
        height: 300px;
    }
}




/* Expanded chat container and adjusted message width for mobile */
@media (max-width: 768px) {
    .hero-image-placeholder {
        width: 90%; /* Expand sideways */
        margin-left: auto;
        margin-right: auto;
        height: 420px; /* Slightly taller */
    }
    .chat-message {
        max-width: 90%; /* Wider messages */
    }
    .simple-chat {
        /* Ensure scrollbar is enabled */
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .hero-image-placeholder {
        width: 95%; /* Expand more on very small screens */
        height: 380px; /* Adjust height for very small screens */
    }
     .chat-message {
        max-width: 95%; /* Even wider messages */
    }
}




/* Improved scrollbar visibility for mobile */
@media (max-width: 768px) {
    .simple-chat::-webkit-scrollbar {
        width: 10px; /* Slightly thicker scrollbar for touch */
    }
}

@media (max-width: 480px) {
    .simple-chat::-webkit-scrollbar {
        width: 12px; /* Even thicker for very small screens */
    }
}

