/* assets/css/chatbot.css */

.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'DM Sans', sans-serif;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #0D9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.chatbot-fab:active {
    cursor: grabbing;
}

.chatbot-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.5);
}

.chatbot-fab:active {
    transform: scale(0.95);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: bottom right;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.dark .chatbot-window {
    background: rgba(19, 43, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.chatbot-header {
    padding: 20px 24px;
    background: #0D9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
}

.chatbot-header:active {
    cursor: grabbing;
}

.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: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chatbot-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chatbot-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: messageIn 0.3s ease-out;
}

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

.message.bot {
    align-self: flex-start;
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.message.user {
    align-self: flex-end;
    background: #0D9488;
    color: white;
    border-bottom-right-radius: 4px;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.option-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #0D9488;
    color: #0D9488;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dark .option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.5);
}

.option-btn:hover {
    background: #0D9488;
    color: white;
}

.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.dark .property-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.property-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.property-info {
    padding: 12px;
}

.property-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.property-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.view-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: #0D9488;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 48px);
        height: calc(100vh - 160px);
        bottom: 70px;
    }
}
.chatbot-input-container {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dark .chatbot-input-container {
    background: rgba(19, 43, 41, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatbotInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #1e293b;
}

.dark #chatbotInput {
    color: white;
}

#chatbotSend {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0D9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

#chatbotSend:hover {
    background: #0f766e;
    transform: scale(1.05);
}

#chatbotSend span {
    font-size: 18px;
}

.message.bot.thinking {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
}

.thinking .dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking .dot:nth-child(1) { animation-delay: -0.32s; }
.thinking .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
