#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

#chatbot-toggle:hover {
    transform: scale(1.05);
}

#chatbot-container {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-header {
    background-color: #357a7a;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s ease-in-out;
}

.chatbot-header button:hover {
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.chatbot-footer {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.chatbot-footer input {
    flex: 1;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-footer input:focus {
    border-color: #0d6efd;
}

.chatbot-footer button {
    margin-left: 10px;
    background-color: #357a7a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.chatbot-footer button:hover {
    background-color: #005050;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot {
    background-color: #e9ecef;
    color: #343a40;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message.user {
    background-color: #d1e7dd;
    color: #212529;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}