.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.chatbot-container.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-header {
    background: #25d366;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f0f2f5;
    scroll-behavior: smooth;
}

.bot-message, .user-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
    animation: messageIn 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: white;
    color: #1a1a1a;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: #25d366;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    background: white;
    position: relative;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #f0f2f5;
}

.chatbot-input input:focus {
    border-color: #25d366;
    background: white;
}

.chatbot-input button {
    background: #25d366;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.2);
}

.chatbot-input button:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: #128c7e;
}

.chatbot-toggle.hide {
    display: none;
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
    padding: 0 6px;
    width: 100%;
}

.quick-replies button {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.quick-replies button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    opacity: 0;
    transition: all 0.25s ease;
    border-radius: 3px;
}

.quick-replies button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateX(3px);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.06);
}

.quick-replies button:hover::before {
    opacity: 1;
}

.quick-replies button:active {
    transform: translateX(2px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.04);
}

.quick-replies.after-answer {
    gap: 8px;
    margin: 12px 0;
    padding: 0 6px;
}

.quick-replies.after-answer button {
    padding: 10px 14px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 80%;
        height: 80vh;
        max-height: 500px;
        bottom: 85px;
        right: 10%;
        left: 10%;
        margin: 0 auto;
        border-radius: 16px;
    }

    .chatbot-header {
        padding: 6px 16px;
        border-radius: 16px 16px 0 0;
    }

    .chatbot-header h3 {
        font-size: 0.95em;
        font-weight: 600;
    }

    .chatbot-messages {
        padding: 12px 16px;
    }

    .chatbot-input {
        padding: 10px 16px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .quick-replies {
        gap: 10px;
        margin: 15px 0;
    }

    .quick-replies button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .quick-replies.after-answer {
        margin: 8px 0;
        padding: 0 4px;
    }

    .quick-replies.after-answer button {
        padding: 8px 12px;
        font-size: 0.82em;
        font-weight: 600;
        border-radius: 8px;
    }

    .chatbot-toggle {
        width: 46px;
        height: 46px;
        font-size: 18px;
        bottom: 90px;
        right: 16px;
    }

    .bot-message, .user-message {
        font-size: 0.88em;
        padding: 8px 12px;
        margin-bottom: 8px;
    }
} 