/* Chatbot Styles v2.0 */
.chatbot-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px var(--primary-glow);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.chatbot-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.chatbot-launcher svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 400px;
    height: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: var(--primary-gradient);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chatbot-header-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.chatbot-messages {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.message-bot {
    align-self: flex-start;
    background: white;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-bottom-left-radius: 4px;
}

.message-user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Menu Grid Styles */
.chatbot-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

.menu-item-btn {
    background: white;
    border: 1px solid rgba(25, 152, 58, 0.15);
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.menu-item-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-reply-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.quick-reply-btn:hover {
    background: #f1f5f9;
    color: var(--text-color);
}

.chatbot-input-area {
    padding: 20px;
    background: white;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    background: white;
}

.chatbot-send {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chatbot-send:hover {
    transform: scale(1.05);
}

.chatbot-send svg {
    width: 24px;
    height: 24px;
    margin-right: -3px;
}

@media (max-width: 480px) {
    .chatbot-window {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 90px;
        height: 75vh;
    }
}
