#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px!important;
    z-index: 9999;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.chatbot-section {
    margin-bottom: 10px;
}

.chatbot-section:last-child {
    margin-bottom: 0;
}

#chatbot-previous-conversations {
    overflow-y: auto;
    height: 85px;
}

.chat-history-item strong, #chatbot-current-conversation strong {
    font-weight: 500;
    text-transform: capitalize;
}

#chatbot-current-conversation {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}

#chatbot-current-conversation p {
    padding: 10px;
    margin-block: 0px;
}

#chatbot-form-container {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

#chatbot-form {
    margin: 0;
}

#chatbot-form input,
#chatbot-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: -webkit-fill-available;
}

#chatbot-form textarea {
    height: 60px;
    min-height: 60px;
    max-height: 200px;
    resize: vertical;
    width: -webkit-fill-available;
    margin-bottom: 0px;
}

#chatbot-form button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#chatbot-form button:hover {
    background: #005177;
}

.conversation-tabs {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.conversation-tab {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    width: auto;
}

.conversation-tab.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.tab-date {
    font-weight: bold;
    margin-bottom: 2px;
}

.tab-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.conversation-tab.active .tab-preview {
    color: #fff;
}

.chat-history-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.chat-history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.chat-history-item p {
    margin: 5px 0;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
}

input.invalid {
    border-color: #dc3545;
}

.user-info-fields {
    margin-bottom: 0px;
}