/* Chat Layout Styles */
.conversation-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-height: 600px;
    overflow-y: scroll;
}

.conversation-container h1{
    font-size: 28px !important;
}

.conversation-container h2{
    font-size: 24px !important;
}


.conversation-container h3{
    font-size: 20px !important;
}


.conversation-container h4{
    font-size: 18px !important;
}

.conversation-container h5,h6{
    font-size: 18px !important;
}

.conversation-container hr {
    margin-bottom: 15px !important;
}

.conversation-container h1{

    line-height: 35px;
}

.conversation-container h2{

    line-height: 35px;
}
.conversation-container h3{

    line-height: 35px;
}

.conversation-container h4{

    line-height: 35px;
}

.conversation-container h5{

    line-height: 35px;
}

.conversation-container h6{

    line-height: 35px;
}

/* Message Styles */
.message {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 2px #f08345;
}

.avatar img {
    width: auto;
    height: 40px;
    object-fit: cover;
    border-radius:40px
}

.message-content {
    flex: 1;
    max-width: calc(100% - 65px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.sender-name {
    font-weight: 600;
}

.message-time {
    color: #888;
}

.message-text {
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
    font-size: 15px;
}

/* User Message Styles */
.user-message .message-text {
    background-color: #f0f0f0;
    border: 1px solid #f0f0f0;
    color: #333;
}

.user-message .sender-name {
    color: #555;
}

/* AI Message Styles */
.ai-message .message-text {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #333;
}

.ai-message .sender-name {
    color: #555;
}

/* Lists inside messages */
.message-text ol, 
.message-text ul {
    margin-left: 20px;
    margin-top: 10px;
}

.message-text li {
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .conversation-container {
        margin: 10px;
        padding: 15px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .message-content {
        max-width: calc(100% - 50px);
    }
    
    .message-header {
        font-size: 12px;
    }
    
    .message-text {
        font-size: 14px;
        padding: 10px 12px;
    }
}
