body, html {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #1a1a1a;
    color: #ffffff;
}

.chat-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    height: 100vh;
    margin: 0 auto;
    background-color: #2c2c2c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background-color: #3a3a3a;
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

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

.message-content {
    background-color: #3a3a3a;
    border-radius: 18px;
    padding: 12px 18px;
    max-width: 70%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: #4a4a4a;
}

.message-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.user-message .message-image {
    order: 1;
    margin-right: 0;
    margin-left: 12px;
}

.message-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #b3b3b3;
}

.user-message .message-name {
    color: #00ffcc; /* Bright cyan for user */
}

.message:not(.user-message) .message-name {
    color: #ff9900; /* Bright orange for reply */
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #3a3a3a;
    flex-shrink: 0;
}

#messageInput {
    flex-grow: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 24px;
    margin-right: 12px;
    background-color: #4a4a4a;
    color: #ffffff;
    font-size: 16px;
}

#messageInput::placeholder {
    color: #b3b3b3;
}

#sendButton {
    background-color: #7289da;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#sendButton:hover {
    background-color: #5b6eae;
}

#sendButton svg {
    width: 24px;
    height: 24px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Responsive styles */
@media (max-width: 768px) {
    .chat-container {
        height: 100%;
        width: 100%;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-input {
        padding: 10px;
    }

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

    #sendButton {
        padding: 10px;
    }

    #sendButton svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .message-image {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .user-message .message-image {
        margin-left: 8px;
    }

    .message-content {
        padding: 8px 12px;
        font-size: 14px;
    }

    .message-name {
        font-size: 12px;
    }
}