/* GoBot AI Assistant Styles - GoDigi Glassmorphism Theme */

#gd-gobot-app {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: ltr;
}

/* Floating Trigger Button */
#gd-gobot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gd-gobot-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

.gd-gobot-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-gobot-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.4));
    transition: transform 0.3s ease;
}

#gd-gobot-toggle:hover .gd-gobot-icon-svg {
    transform: scale(1.08) rotate(-3deg);
}

.gd-gobot-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #1d4ed8;
    border-radius: 50%;
    animation: gd-gobot-pulse 2s infinite;
}

@keyframes gd-gobot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gd-gobot-toggle-text {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Chat Window Modal */
#gd-gobot-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 99998;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gd-gobot-window.gd-gobot-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.gd-gobot-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.gd-gobot-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.gd-gobot-subtitle {
    font-size: 12px;
    color: #4ade80;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-gobot-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.gd-gobot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Messages Body */
.gd-gobot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.gd-gobot-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: gd-gobot-fadein 0.3s ease-out;
}

@keyframes gd-gobot-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gd-gobot-msg.gd-gobot-bot {
    align-self: flex-start;
}

.gd-gobot-msg.gd-gobot-user {
    align-self: flex-end;
}

.gd-gobot-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.gd-gobot-bot .gd-gobot-bubble {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
}

.gd-gobot-user .gd-gobot-bubble {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.gd-gobot-msg-time {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
    align-self: flex-end;
}

/* Quick Reply Chips */
.gd-gobot-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 12px 20px;
}

.gd-gobot-chip {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gd-gobot-chip:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Typing Indicator */
.gd-gobot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #1e293b;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

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

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

@keyframes gd-gobot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Footer / Input Area */
.gd-gobot-footer {
    padding: 16px 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    align-items: center;
}

#gd-gobot-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#gd-gobot-input:focus {
    border-color: #2563eb;
}

#gd-gobot-send {
    background: #2563eb;
    border: none;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#gd-gobot-send:hover {
    background: #1d4ed8;
}

/* Lead Capture Form Card */
.gd-gobot-lead-form {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.gd-gobot-lead-form input {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
}

.gd-gobot-lead-form button {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
