/* Chat Widget CSS */
#chat-app {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    /* Primary blue */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble i {
    color: white;
    font-size: 28px;
}

.chat-window {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 10px;
}

.chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    cursor: pointer;
    font-size: 18px;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.ai {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
    border-bottom-left-radius: 4px;
}

/* Markdown Styling inside messages */
.chat-message p:last-child {
    margin-bottom: 0;
}

.chat-message ul,
.chat-message ol {
    margin-bottom: 0px;
    padding-left: 20px;
}

.chat-message li {
    margin-bottom: 4px;
}

.chat-message h1,
.chat-message h2,
.chat-message h3 {
    font-size: 16px;
    margin: 10px 0 5px 0;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background-color: white;
}

.chat-input-area form {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #007bff;
}

/* Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}