/* 🔹 Updated Chat Container */
#chat-container {
    width: -webkit-fill-available;
    height: calc(80vh - 295px);
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border-radius: 12px 12px 0px 0px;
    background: #333;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

/* 🔹 User Message */
.user-message {
    align-self: flex-end;
    background-color: #4caf50;
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    max-width: 70%;
    margin: 8px;
    text-align: right;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fadeIn 0.3s ease-in-out;
}

/* 🔹 AI Message */
.ai-message {
    align-self: flex-start;
	/*     background-color: #007BFF;	 */
	background:#141414;
    color: #fff;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    max-width: 70%;
	width: 50%;
    margin: 8px;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fadeIn 0.3s ease-in-out;
}

	.ai-message a {
		color:#fff !important;
		font-weight:bold;
	}

/* 🔹 Typing Indicator */
.typing {
    align-self: flex-start;
    background-color: #007BFF;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    max-width: 50px;
    margin: 5px;
    text-align: left;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}


/* 🔹 Suggested Prompts */
#suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.suggested-prompt {
    background: #444;
    color: #ddd;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.suggested-prompt:hover {
    background: #007BFF;
    color: #fff;
}


/* 🔹 Chat Input */
#chat-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #333;
    color: #fff;
    font-weight: bold;
}

button {
    padding: 12px 18px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

/* 🔹 Three Dots Animation */
@keyframes typingDots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.typing .dots::after {
    content: "";
    animation: typingDots 1.5s infinite steps(3);
}/* 🔹 Suggested Prompts */
#suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.suggested-prompt {
    background: #444;
    color: #ddd;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.suggested-prompt:hover {
    background: #007BFF;
    color: #fff;
}
    
/* 🔹 Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔹 Responsive Design */
@media screen and (max-width: 800px) {
    #chat-container {
        height: 400px;
		margin-bottom:0px !important;
    }
    .user-message, .ai-message {
        max-width: 85%;
        font-size: 14px;
    }
}
