:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --accent-yellow: #ffc107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #032d60 100%);
}

.brand-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 10px;
    border-radius: 8px;
}

/* Draggable Floating AI Bot Logo Button */
.draggable-bot-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 10000;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.draggable-bot-badge:active {
    cursor: grabbing;
}

.bot-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 3px solid #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: transform 0.2s ease;
}

.bot-icon-circle:hover {
    transform: scale(1.08);
}

/* Pulsing animated ring */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 193, 7, 0.6);
    animation: pulseAnimation 2s infinite;
    pointer-events: none;
}

@keyframes pulseAnimation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.live-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

/* Floating Chat Window Popup */
.floating-chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    z-index: 10005;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: popupIn 0.3s ease-out forwards;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    background-color: #f1f5f9;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message.user-message {
    margin-left: auto;
}

.chat-message.user-message .message-content {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px !important;
}

.chat-message.bot-message {
    margin-right: auto;
}

.chat-message.bot-message .message-content {
    background-color: #fff;
    border-bottom-left-radius: 4px !important;
}

.send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Typing indicator */
.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #999;
    margin-right: 3px;
    animation: typing 1s infinite alternate;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
}
.search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.search-item:hover {
    background-color: #f8f9fa;
}

/* Social Buttons */
.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--accent-yellow);
    color: #000;
}