/* Ramira Bot - Chat Widget Styles */

:root {
    --ramira-bot-bg: rgba(15, 15, 15, 0.8);
    --ramira-bot-accent: #00ffc8;
    --ramira-bot-text: #ffffff;
    --ramira-bot-border: rgba(255, 255, 255, 0.1);
    --ramira-bot-radius: 20px;
    --ramira-bot-font: 'Space Grotesk', sans-serif;
}

/* Floating Bubble Launcher */
.ramira-bot-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #999;
    backdrop-filter: blur(10px);
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.dcy-has-custom-cursor .ramira-bot-bubble {
    cursor: none !important;
}

.ramira-bot-bubble:hover {
    transform: scale(1.1);
    border-color: var(--ramira-bot-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 200, 0.4);
}

.bot-icon {
    font-size: 24px;
}

/* Chat Window */
.ramira-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: var(--ramira-bot-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ramira-bot-border);
    border-radius: var(--ramira-bot-radius);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    font-family: var(--ramira-bot-font);
    animation: chat-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chat-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--ramira-bot-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ramira-bot-text);
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--ramira-bot-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ramira-bot-accent);
}

#close-ramira-bot {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

body.dcy-has-custom-cursor #close-ramira-bot {
    cursor: none !important;
}

#close-ramira-bot:hover {
    color: #fff;
}

.whatsapp-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-left: auto;
}

.whatsapp-header-btn:hover {
    background: #25d366;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.whatsapp-header-btn span {
    display: inline-block;
}

@media (max-width: 400px) {
    .whatsapp-header-btn span {
        display: none;
    }
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ramira-bot-text);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
    align-self: flex-end;
    background: var(--ramira-bot-accent);
    color: #111;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

/* Interactive Booking Button */
.booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ramira-bot-accent);
    color: #111 !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 200, 0.5);
    background: #fff;
}

.message-link {
    color: var(--ramira-bot-accent);
    text-decoration: underline;
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typing-blink 1.4s infinite both;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

/* Input Area */
.chat-input-area {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--ramira-bot-border);
}

#ramira-bot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ramira-bot-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

#ramira-bot-input:focus {
    border-color: var(--ramira-bot-accent);
}

#send-ramira-bot {
    background: none;
    border: none;
    color: var(--ramira-bot-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

body.dcy-has-custom-cursor #send-ramira-bot {
    cursor: none !important;
}

#send-ramira-bot:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 480px) {
    .ramira-chat-window {
        width: calc(100% - 40px);
        height: 450px;
        max-height: calc(100vh - 120px);
        bottom: 80px;
        right: 20px;
        left: 20px;
        border-radius: var(--ramira-bot-radius);
    }

    .ramira-bot-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .bot-icon img {
        width: 30px;
        height: 30px;
    }

    .message {
        max-width: 90%;
    }
}

@media (max-width: 380px) {
    .ramira-chat-window {
        width: calc(100% - 20px);
        height: 400px;
        max-height: calc(100vh - 100px);
        bottom: 80px;
        right: 10px;
        left: 10px;
        border-radius: var(--ramira-bot-radius);
    }
}

/* Scrollbar Style */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}