/* GoBangladesh Chatbot Widget Styles - Frosted Glassmorphism */

#gb-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#gb-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gb-chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#gb-chatbot-toggle i {
    transition: transform 0.3s ease;
}

/* Chat Window */
#gb-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gb-chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Header */
.gb-chat-header {
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gb-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gb-chat-status {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.gb-chat-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.gb-chat-header-info span {
    font-size: 11px;
    opacity: 0.8;
}

.gb-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#gb-chatbot-lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#gb-chatbot-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

#gb-chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#gb-chatbot-close-btn:hover {
    opacity: 1;
}

/* Chat Body Messages Stream */
.gb-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gb-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.gb-msg.incoming {
    align-self: flex-start;
    background-color: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.gb-msg.outgoing {
    align-self: flex-end;
    background-color: var(--accent, #2563eb);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Interactive elements in Chat */
.gb-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    align-self: flex-start;
    width: 100%;
}

.gb-option-btn {
    background-color: white;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--accent, #2563eb);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gb-option-btn:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

/* Chat Inputs Form Footer */
.gb-chat-footer {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#gb-chat-input-form {
    display: flex;
    gap: 8px;
}

#gb-chat-input-text {
    flex: 1;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    background-color: white;
}

#gb-chat-input-text:focus {
    border-color: var(--accent, #2563eb);
}

#gb-chat-input-form button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-chat-attribution {
    font-size: 9px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

.gb-chat-attribution a {
    color: #6b7280;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
    #gb-chatbot-container {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: none;
    }
    #gb-chatbot-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        pointer-events: auto;
    }
    #gb-chatbot-window {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        pointer-events: auto;
    }
    #gb-chatbot-window.hidden {
        transform: scale(0.9) translateY(100px);
    }
}
