/* AI CHATBOT */
 .chat-icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
 }
 .chat-box.active {
    display: block;
}

.chat-button{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background-color: darkblue;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 0, 139, 0.6);
    transition: 0.3s;
}
.chat-button:hover{
    background-color: royalblue;
    box-shadow: 0 0 28px rgba(65, 105, 225, 0.9);
    transform: scale(1.08);
}
.chat-button:active{
    transform: scale(0.92);
    background-color: navy;
}
.chat-box {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 340px;
    background-color: white;
    border: 1px solid gray;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-input-area button {
    padding: 10px 15px;
    border: none;
    background-color: darkblue;
    color: white;
    cursor: pointer;
}
.message-row {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-end;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.ai {
    justify-content: flex-start;
}
.chat-header{
    background-color: darkblue;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header img, .avatar{
    width: 42px;
    height: 42px;
    border-radius: 50px;
}
.chat-messages{
    height: 280px;
    padding: 12px;
    overflow-y: auto;
    background-color: #f7f7f7;
}
.avatar{
    margin-right: 8px;
}
.message-bubble{
    max-width: 220px;
    padding: 10px;
    border-radius: 14px;
    line-height: 1.4;
    font-size: 14px;
}
.user .message-bubble {
 background-color: darkblue;
 color: white;
 border-bottom-right-radius: 4px;
}
.ai .message-bubble {
 background-color: white;
 color: black;
 border: 1px solid lightgray;
 border-bottom-left-radius: 4px;
}
.thinking {
 color: gray;
 font-style: italic;
}
.chat-input-area {
 display: flex;
 border-top: 1px solid lightgray;
 background-color: white;
}
.chat-input-area input {
 flex: 1;
 padding: 10px;
 border: none;
 outline: none;
}
.chat-input-area input {
 flex: 1;
 padding: 10px;
 border: none;
 outline: none;
}
.chat-input-area button:hover {
 background-color: royalblue;
}
