/**
 * DataJam Pulse - Chat Styles
 * Phase 5 - CSS Extraction (Batch 2)
 * Extracted: Dec 14, 2025
 * Source: index.html lines 4758-5234
 * Version: v5.4.10
 */

        /* =====================================================================
           PULSE INSIGHTS CHAT v1.0
           Conversational AI assistant for data insights
           ===================================================================== */

        /* Floating "Ask Pulse" button - Enhanced CTA (v3.2.6) */
        .pulse-chat-fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            height: 52px;
            padding: 0 20px 0 16px;
            border-radius: 26px;
            background: linear-gradient(135deg, var(--primary-pink, #E62F6E) 0%, var(--primary-coral, #E94B52) 100%);
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(230, 47, 110, 0.4), 0 0 0 0 rgba(230, 47, 110, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            z-index: 1000;
            transition: all 0.3s ease;
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 4px 20px rgba(230, 47, 110, 0.4), 0 0 0 0 rgba(230, 47, 110, 0.4); }
            50% { box-shadow: 0 4px 20px rgba(230, 47, 110, 0.4), 0 0 0 8px rgba(230, 47, 110, 0); }
        }

        .pulse-chat-fab:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 28px rgba(230, 47, 110, 0.6);
            animation: none;
        }

        .pulse-chat-fab svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        .pulse-chat-fab-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
            filter: brightness(0) invert(1); /* Make logo white */
        }

        .pulse-chat-fab-text {
            color: white;
            font-size: 14px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            white-space: nowrap;
        }

        .pulse-chat-header-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
            margin-right: 10px;
        }

        /* Old label style removed - now using inline text (v3.2.6) */

        /* Chat panel (side drawer) */
        .pulse-chat-panel {
            position: fixed;
            top: 0;
            right: -420px;
            width: 400px;
            max-width: 100vw;
            height: 100vh;
            background: var(--bg-primary, #0f0f1a);
            border-left: 1px solid var(--border-color, #2a2a4a);
            box-shadow: -4px 0 24px rgba(0,0,0,0.3);
            z-index: 1001;
            display: flex;
            flex-direction: column;
            transition: right 0.3s ease;
        }

        .pulse-chat-panel.open {
            right: 0;
        }

        /* Chat header */
        .pulse-chat-header {
            padding: 16px 20px;
            background: linear-gradient(135deg, rgba(230, 47, 110, 0.15) 0%, rgba(233, 75, 82, 0.1) 100%);
            border-bottom: 1px solid var(--border-color, #2a2a4a);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .pulse-chat-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary, #fff);
        }

        .pulse-chat-title svg {
            width: 20px;
            height: 20px;
            fill: var(--primary-pink, #E62F6E);
        }

        .pulse-chat-close {
            background: none;
            border: none;
            color: var(--text-secondary, #888);
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .pulse-chat-close:hover {
            background: var(--bg-secondary, #1a1a2e);
            color: var(--text-primary, #fff);
        }

        /* Chat messages area */
        .pulse-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Starter questions */
        .pulse-chat-starters {
            padding: 20px;
            text-align: center;
        }

        .pulse-chat-starters-title {
            font-size: 14px;
            color: var(--text-secondary, #888);
            margin-bottom: 16px;
        }

        .pulse-chat-starters-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .pulse-chat-starter-btn {
            background: var(--bg-secondary, #1a1a2e);
            border: 1px solid var(--border-color, #2a2a4a);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary, #fff);
            font-size: 13px;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pulse-chat-starter-btn:hover {
            background: var(--bg-tertiary, #252540);
            border-color: var(--primary-pink, #E62F6E);
        }

        /* Message bubbles */
        .pulse-chat-message {
            max-width: 90%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
            position: relative;
        }

        .pulse-chat-message.user {
            align-self: flex-end;
            background: linear-gradient(135deg, var(--primary-pink, #E62F6E) 0%, var(--primary-coral, #E94B52) 100%);
            color: white;
            border-bottom-right-radius: 4px;
        }

        .pulse-chat-message.assistant {
            align-self: flex-start;
            background: var(--bg-secondary, #1a1a2e);
            color: var(--text-primary, #fff);
            border-bottom-left-radius: 4px;
            border: 1px solid var(--border-color, #2a2a4a);
        }

        .pulse-chat-message.assistant strong {
            color: var(--primary-pink, #E62F6E);
        }

        /* Copy button on assistant messages */
        .pulse-chat-copy-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: var(--bg-tertiary, #252540);
            border: none;
            border-radius: 6px;
            padding: 4px 8px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s ease;
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--text-secondary, #888);
        }

        .pulse-chat-message.assistant:hover .pulse-chat-copy-btn {
            opacity: 1;
        }

        .pulse-chat-copy-btn:hover {
            background: var(--primary-pink, #E62F6E);
            color: white;
        }

        .pulse-chat-copy-btn.copied {
            background: #10B981;
            color: white;
            opacity: 1;
        }

        /* Source attribution footer */
        .pulse-chat-source {
            margin-top: 12px;
            padding-top: 8px;
            border-top: 1px solid var(--border-color, #2a2a4a);
            font-size: 10px;
            color: var(--text-muted, #666);
            text-align: right;
            font-style: italic;
        }

        /* Typing indicator */
        .pulse-chat-typing {
            align-self: flex-start;
            background: var(--bg-secondary, #1a1a2e);
            padding: 12px 16px;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            display: flex;
            gap: 4px;
        }

        .pulse-chat-typing span {
            width: 8px;
            height: 8px;
            background: var(--text-secondary, #888);
            border-radius: 50%;
            animation: pulse-typing 1.4s infinite ease-in-out;
        }

        .pulse-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
        .pulse-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes pulse-typing {
            0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
            30% { transform: scale(1.2); opacity: 1; }
        }

        /* Chat input area */
        .pulse-chat-input-area {
            padding: 16px;
            border-top: 1px solid var(--border-color, #2a2a4a);
            background: var(--bg-secondary, #1a1a2e);
        }

        .pulse-chat-input-wrapper {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .pulse-chat-input {
            flex: 1;
            background: var(--bg-primary, #0f0f1a);
            border: 1px solid var(--border-color, #2a2a4a);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary, #fff);
            font-size: 14px;
            resize: none;
            min-height: 44px;
            max-height: 120px;
            font-family: inherit;
        }

        .pulse-chat-input:focus {
            outline: none;
            border-color: var(--primary-pink, #E62F6E);
        }

        .pulse-chat-input::placeholder {
            color: var(--text-tertiary, #666);
        }

        .pulse-chat-send {
            background: linear-gradient(135deg, var(--primary-pink, #E62F6E) 0%, var(--primary-coral, #E94B52) 100%);
            border: none;
            border-radius: 12px;
            width: 44px;
            height: 44px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .pulse-chat-send:hover:not(:disabled) {
            transform: scale(1.05);
        }

        .pulse-chat-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pulse-chat-send svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* Chat overlay for mobile */
        .pulse-chat-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .pulse-chat-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile responsive */
        @media (max-width: 480px) {
            .pulse-chat-panel {
                width: 100%;
                right: -100%;
            }

            .pulse-chat-fab {
                padding: 0 16px;
                height: 48px;
            }

            .pulse-chat-fab-text {
                font-size: 13px;
            }
        }

        /* Light theme adjustments */
        [data-theme="light"] .pulse-chat-panel {
            background: #ffffff;
            border-left-color: #e0e0e0;
        }

        [data-theme="light"] .pulse-chat-header {
            background: linear-gradient(135deg, rgba(230, 47, 110, 0.08) 0%, rgba(233, 75, 82, 0.05) 100%);
            border-bottom-color: #e0e0e0;
        }

        [data-theme="light"] .pulse-chat-message.assistant {
            background: #f5f5f5;
            border-color: #e0e0e0;
            color: #333;
        }

        [data-theme="light"] .pulse-chat-starter-btn {
            background: #f5f5f5;
            border-color: #e0e0e0;
            color: #333;
        }

        [data-theme="light"] .pulse-chat-input {
            background: #f5f5f5;
            border-color: #e0e0e0;
            color: #333;
        }

        [data-theme="light"] .pulse-chat-input-area {
            background: #fafafa;
            border-top-color: #e0e0e0;
        }

        /* === v4.0.7: CHAT CATEGORY TABS === */
        .pulse-chat-categories {
            display: flex;
            gap: 6px;
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
        }

        .pulse-chat-category-tab {
            flex: 1;
            padding: 10px 8px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .pulse-chat-category-tab:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
        }

        .pulse-chat-category-tab.active {
            background: linear-gradient(135deg, rgba(230, 47, 110, 0.2) 0%, rgba(233, 75, 82, 0.15) 100%);
            color: var(--primary-pink);
            border: 1px solid rgba(230, 47, 110, 0.3);
        }

        .pulse-chat-category-icon {
            font-size: 16px;
        }

        .pulse-chat-category-label {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        [data-theme="light"] .pulse-chat-categories {
            background: #f5f5f5;
            border-bottom-color: #e0e0e0;
        }

        [data-theme="light"] .pulse-chat-category-tab {
            background: #ffffff;
            border: 1px solid #e0e0e0;
            color: #666;
        }

        [data-theme="light"] .pulse-chat-category-tab:hover {
            background: #f9f9f9;
            color: #333;
        }

        [data-theme="light"] .pulse-chat-category-tab.active {
            background: rgba(230, 47, 110, 0.1);
            color: #E62F6E;
            border-color: rgba(230, 47, 110, 0.3);
        }
