/* realBOT Sliding AI Panel Stylesheet - Polished UI Only */

/* Panel Overlay Backdrop */
.realbot-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.18); /* 18% Dark transparent overlay */
    z-index: 9900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 280ms;
}

.realbot-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sliding Panel Container */
.realbot-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 540px; /* Default desktop width: 520px - 560px */
    max-width: 100%;
    background-color: #FFFFFF;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.08); /* Subtle luxury elevation */
    z-index: 9910;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Open State */
.realbot-panel.active {
    transform: translateX(0);
}

/* Custom Scrollbars */
.realbot-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.realbot-scrollbar::-webkit-scrollbar-track {
    background: #F7F8FA;
}

.realbot-scrollbar::-webkit-scrollbar-thumb {
    background: #0E2A47;
}

.realbot-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #0E2A47 #F7F8FA;
}

/* Chip scrollbar hide */
.realbot-no-scrollbar::-webkit-scrollbar {
    display: none;
}
.realbot-no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Suggestion Chips Style Guidelines */
.realbot-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
    color: #0E2A47;
    background-color: #FFFFFF;
    border: 1px solid #0E2A47;
    border-radius: 0px !important; /* Sharp corners */
    height: 36px;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    flex-shrink: 0; /* Prevent chip width text truncation */
}

.realbot-chip:hover {
    background-color: #C89B2B !important;
    border-color: #C89B2B !important;
    color: #FFFFFF !important;
}

/* Global button reset inside panel when preflight is disabled */
.realbot-panel button {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Floating Trigger Button Wrapper & Ripple Glow Effects                      */
/* -------------------------------------------------------------------------- */

.realbot-trigger-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circular Logo Trigger Button */
.realbot-trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50% !important; /* Circular icon */
    background-color: #0E2A47;
    border: 2px solid #C89B2B;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(14, 42, 71, 0.3);
    transition: transform 200ms ease-in-out;
    outline: none !important;
}

.realbot-trigger-btn:hover {
    transform: scale(1.05);
}

/* 3 Hairline Glowing Gold Ripple Rings */
.realbot-ripple-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.2px solid rgba(200, 155, 43, 0.85); /* More prominent hairline gold border */
    box-shadow: 0 0 10px rgba(200, 155, 43, 0.45); /* Enhanced glowing effect */
    pointer-events: none;
    z-index: 1;
    animation: realbot-ripple 3s cubic-bezier(0.25, 0, 0, 1) infinite;
    opacity: 0;
}

.realbot-ripple-ring.ring-1 {
    animation-delay: 0s;
}
.realbot-ripple-ring.ring-2 {
    animation-delay: 1s;
}
.realbot-ripple-ring.ring-3 {
    animation-delay: 2s;
}

@keyframes realbot-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Content block overrides */
.realbot-content-block {
    font-family: 'Inter', sans-serif !important;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    /* Tablet & Mobile Fullscreen Mode */
    .realbot-panel {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .realbot-trigger-wrapper {
        right: 16px;
        bottom: 16px;
        height: 48px;
        width: 48px;
    }
    .realbot-trigger-btn {
        height: 48px;
        width: 48px;
    }
    .realbot-ripple-ring {
        height: 48px;
        width: 48px;
    }
}

/* Premium Refined Header & Footer Elements */
.realbot-status-bar {
    background-color: #0B1D33;
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    height: 30px;
    shrink-0: 0;
}

.realbot-status-bar .brand-text {
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.realbot-status-bar .divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
}

.realbot-status-bar .channel-desc {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    text-transform: none;
    font-style: normal;
}

.realbot-status-bar .status-secure {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #67AE60;
    font-weight: 700;
}

.realbot-status-bar .status-dot {
    width: 6px;
    height: 6px;
    background-color: #67AE60;
    border-radius: 50%;
    display: inline-block;
    animation: realbot-pulse 1.5s infinite;
}

@keyframes realbot-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(103, 174, 96, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(103, 174, 96, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(103, 174, 96, 0); }
}

.realbot-app-bar {
    height: 64px;
    border-bottom: 1px solid rgba(200, 162, 74, 0.2);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0B1D33;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
}

.realbot-app-bar .left-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.realbot-app-bar .logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 14px;
}

.realbot-app-bar .text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.realbot-app-bar .title-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.realbot-app-bar .title-text .realbot-real {
    color: #FFFFFF;
    font-weight: 300;
}

.realbot-app-bar .title-text .realbot-bot {
    color: #C8A24A;
    font-weight: 800;
}

.realbot-app-bar .subtitle-text {
    color: #C8A24A;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.05em;
    margin: 3px 0 0 0;
    padding: 0;
}

.realbot-app-bar .right-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.realbot-app-bar button.control-btn {
    color: #FFFFFF !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: color 200ms ease;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.realbot-app-bar button.control-btn:hover {
    color: #C8A24A !important;
}

.realbot-bottom-nav {
    height: 56px;
    border-top: 1px solid rgba(14, 42, 71, 0.1);
    padding: 0 4px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
}

.realbot-bottom-nav button.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: transparent !important;
    border: none !important;
    border-top: 2px solid transparent !important;
    outline: none !important;
    cursor: pointer !important;
    color: #9ca3af !important; /* text-gray-400 */
    transition: all 200ms ease;
    box-shadow: none !important;
    margin: 0 !important;
}

.realbot-bottom-nav button.nav-tab.active {
    border-top-color: #C89B2B !important; /* gold */
    color: #C89B2B !important;
}

.realbot-bottom-nav button.nav-tab:hover {
    color: #0E2A47 !important;
}

.realbot-bottom-nav button.nav-tab span {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Suggestion Chips as Pills inline near message (Propertism Gold Outline Styling) */
.realbot-chip-pill {
    display: inline-block !important;
    width: fit-content !important;
    height: auto !important; /* Reset global theme button heights */
    min-height: 0 !important; /* Reset global theme min-heights */
    line-height: 1.2 !important; /* Ensure tight vertical centering */
    padding: 5px 12px !important; /* Slim compact padding */
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
    color: #C8A24A !important; /* Gold text */
    background-color: #FFFFFF !important; /* White background */
    border: 1px solid #C8A24A !important; /* Gold outline */
    border-radius: 9999px !important; /* Pill shape */
    white-space: nowrap;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    margin-top: 3px;
    margin-bottom: 2px;
}

.realbot-chip-pill:hover {
    background-color: #C8A24A !important; /* Solid Gold fill on hover */
    border-color: #C8A24A !important;
    color: #FFFFFF !important; /* White text on hover */
}

.realbot-disclaimer {
    font-size: 10px;
    color: #9CA3AF;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.01em;
    font-weight: 500;
    margin-top: 4px;
}

.realbot-app-bar .title-text .beta-badge {
    font-size: 7px;
    font-weight: 800;
    color: #C8A24A; /* Gold text */
    border: 1px solid #C8A24A; /* Gold border */
    border-radius: 2px;
    padding: 1px 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.05em;
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
}

/* ── realBOT Panel Toast Notification ── */
.realbot-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(14, 42, 71, 0.95); /* Semi-transparent Navy */
    color: #FFFFFF;
    border: 1px solid rgba(200, 155, 43, 0.3); /* Soft Gold border */
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 9950;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

.realbot-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ── Enhanced Input Box ── */
.realbot-input-box {
    border: 1px solid rgba(14, 42, 71, 0.15) !important;
    background-color: #F8FAFC !important;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.realbot-input-box:focus-within {
    border-color: #C89B2B !important; /* Gold border on focus */
    box-shadow: 0 0 0 2px rgba(200, 155, 43, 0.15);
    background-color: #FFFFFF !important;
}

/* ── Lucide SVG Icons Alignment and Styling ── */
.lucide-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    stroke-width: 2px;
}

/* Suggestion Chips Icons spacing */
.realbot-chip-pill .lucide-icon {
    margin-right: 6px;
    color: inherit; /* will inherit mustard gold color from chip */
    flex-shrink: 0;
}

.realbot-chip-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 28px !important; /* consistent height */
}

/* Section Headings Icons spacing */
.realbot-panel h3 .lucide-icon {
    margin-right: 8px;
    color: inherit; /* will inherit navy color from h3 */
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Dynamic Teaser Tooltip Bubble                                              */
/* -------------------------------------------------------------------------- */

.realbot-teaser-bubble {
    position: absolute;
    bottom: 72px; /* Positioned directly above the trigger button */
    right: -47px; /* Center horizontally relative to 56px FAB */
    width: 150px;
    background-color: rgba(14, 42, 71, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 155, 43, 0.35);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(14, 42, 71, 0.25);
    animation: realbot-teaser-bounce 3s infinite ease-in-out;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: opacity 300ms ease, transform 300ms ease;
}

/* Logo styling inside teaser bubble */
.realbot-teaser-bubble .logo-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.realbot-teaser-bubble .logo-group svg {
    width: 18px;
    height: 18px;
    color: #C89B2B;
    flex-shrink: 0;
}

.realbot-teaser-bubble .text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.realbot-teaser-bubble .title-text {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
    text-transform: none; /* Preserves mixed-case realBOT format */
}

.realbot-teaser-bubble .realbot-real {
    color: #FFFFFF;
}

.realbot-teaser-bubble .realbot-bot {
    color: #C89B2B;
}

.realbot-teaser-bubble .subtitle-text {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Arrow indicator pointing down */
.realbot-teaser-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 70px; /* Center arrow horizontally */
    width: 10px;
    height: 10px;
    background-color: rgba(14, 42, 71, 0.85);
    border-right: 1px solid rgba(200, 155, 43, 0.35);
    border-bottom: 1px solid rgba(200, 155, 43, 0.35);
    transform: rotate(45deg);
}

/* Small close button */
.realbot-teaser-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    color: #C89B2B;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    outline: none;
    transition: color 150ms ease;
}

.realbot-teaser-close:hover {
    color: #FFFFFF;
}

/* Bouncing animation keyframes */
@keyframes realbot-teaser-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}



