/* Bot Container */
.bot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: 'Outfit', 'Poppins', sans-serif;
}

/* Floating Button */
.bot-toggle {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.bot-toggle:hover {
    transform: scale(1.1);
}

.bot-toggle i {
    color: white;
    font-size: 30px;
}

/* Badge */
.bot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b3b;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Tooltip */
.bot-tooltip {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bot-tooltip::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 8px 10px 8px 0;
    border-color: transparent white transparent transparent;
}

/* Chat Window */
.bot-window {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bot-window.open {
    display: flex;
}

/* Window Header */
.bot-header {
    background: linear-gradient(135deg, #00d98b, #00b875);
    color: white;
    padding: 20px;
    position: relative;
}

.bot-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.bot-header p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.bot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
}

.bot-close:hover {
    opacity: 1;
}

/* Chat Content */
.bot-body {
    flex: 1;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f7f9fb;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Messages */
.bot-msg {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    color: #333;
    /* Dark color for visibility */
}

.bot-msg.received {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-msg.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-time {
    font-size: 10px;
    color: #999;
    margin-top: 5px;
    display: block;
    text-align: right;
}

/* Suggestion Buttons */
.bot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.suggestion-btn {
    background: white;
    border: 1px solid #00d98b;
    color: #00d98b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #00d98b;
    color: white;
}

/* Input Area */
.bot-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    /* Dark color for visibility */
}

.bot-send {
    color: #00d98b;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s;
}

.bot-send:hover {
    transform: scale(1.1);
}

/* Typing Indicator */
.typing {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    display: none;
}