/* Bubble Style */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0077cc;
    color: white;
    border-radius: 50%;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-bubble img {
    height: 30px; /* Adjusted size for bubble */
    width: auto;
    margin-right: 8px;
}

.chat-bubble span {
    font-size: 12px;
    margin-left: 4px; /* Align text properly with logo */
}

/* Hidden Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    display: none; /* Initially hidden */
    z-index: 998;
}

.chat-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #0077cc;
    font-size: 16px;
    margin-bottom: 10px;
}

.chat-logo-header {
    height: 50px; /* Fixed logo size */
    width: 50px;
    margin-right: 8px;
}

.chatbox {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.input-area {
    display: flex;
}

.input-area input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.input-area button {
    background: #0077cc;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.bubble {
    max-width: 85%;
    margin: 4px 0;
    padding: 8px 12px;
    border-radius: 16px;
    line-height: 1.4;
}

.user {
    background: #0077cc;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.bot {
    background: #e2e2e2;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
