.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.ai-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.ai-chat-header {
    padding: 15px 20px;
    background: #007bff;
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.ai-chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 22px;
    padding: 0;
    line-height: 1;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    padding-bottom: 80px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #fff;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
    scroll-behavior: smooth;
    height: calc(100% - 130px);
    position: relative;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 8px;
    height: 100%;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 8px;
    min-height: 40px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.ai-chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.ai-chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.ai-chat-input input:focus {
    border-color: #007bff;
}

.ai-chat-input button {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ai-chat-input button:hover {
    background: #0056b3;
}

.user-message, .ai-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: #f8f9fa;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.ai-message ul {
    margin: 5px 0;
    padding-left: 20px;
}

.ai-message img {
    max-width: 100%;
    border-radius: 5px;
    margin: 5px 0;
}

.ai-message a {
    color: #007bff;
    text-decoration: none;
}

.ai-message a:hover {
    text-decoration: underline;
}