/* CC-02b Wave 2 - extracted from FRONTEND/07_vendors/vendor-client-communication.html */
html.rbac-pending body { visibility: hidden; }
        html.rbac-pending::before {
            content: "Verifying access...";
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 1rem;
            color: #475569;
            background: #f8fafc;
            visibility: visible;
            z-index: 2147483647;
        }
    


        
        @keyframes bounceIn {
            0% { 
                opacity: 0;
                transform: scale(0.3);
            }
            50% { 
                transform: scale(1.05);
            }
            70% { 
                transform: scale(0.9);
            }
            100% { 
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes scaleIn {
            from { 
                opacity: 0;
                transform: scale(0.9);
            }
            to { 
                opacity: 1;
                transform: scale(1);
            }
        }

        .logo-gradient {
            background: linear-gradient(135deg, #ff6b9d, #ffd700);
        }

        .gradient-bg {
            background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
        }

        .chat-container {
            height: calc(100vh - 8rem);
            display: flex;
            flex-direction: column;
        }

        .chat-sidebar {
            border-right: 0.0625rem solid #e5e7eb;
            background: white;
            overflow-y: auto;
        }

        .dark .chat-sidebar {
            border-right-color: #374151;
            background: rgb(31, 41, 55);
        }

        .chat-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: white;
        }

        .dark .chat-main {
            background: rgb(31, 41, 55);
        }

        .conversation-item {
            padding: 1rem;
            border-bottom: 0.0625rem solid #f3f4f6;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .dark .conversation-item {
            border-bottom-color: #374151;
        }

        .conversation-item:hover {
            background-color: #f9fafb;
        }

        .dark .conversation-item:hover {
            background-color: rgb(55, 65, 81);
        }

        .conversation-item.active {
            background-color: rgba(139, 92, 246, 0.1);
            border-right: 0.1875rem solid #8B5CF6;
        }

        .chat-header {
            padding: 1rem 1.5rem;
            border-bottom: 0.0625rem solid #e5e7eb;
            background: white;
        }

        .dark .chat-header {
            border-bottom-color: #374151;
            background: rgb(31, 41, 55);
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
            background: #f9fafb;
        }

        .dark .chat-messages {
            background: rgb(17, 24, 39);
        }

        .chat-input {
            padding: 1rem 1.5rem;
            border-top: 0.0625rem solid #e5e7eb;
            background: white;
        }

        .dark .chat-input {
            border-top-color: #374151;
            background: rgb(31, 41, 55);
        }

        .message {
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
        }

        .message.sent {
            flex-direction: row-reverse;
        }

        .message-bubble {
            max-width: 70%;
            padding: 0.75rem 1rem;
            border-radius: 1rem;
            position: relative;
        }

        .message.received .message-bubble {
            background: white;
            color: #374151;
            border-bottom-left-radius: 0.25rem;
            margin-left: 0.5rem;
        }

        .dark .message.received .message-bubble {
            background: rgb(55, 65, 81);
            color: #e5e7eb;
        }

        .message.sent .message-bubble {
            background: #8B5CF6;
            color: white;
            border-bottom-right-radius: 0.25rem;
            margin-right: 0.5rem;
        }

        .message-time {
            font-size: 0.75rem;
            color: #6b7280;
            margin-top: 0.25rem;
        }

        .message.sent .message-time {
            text-align: right;
        }

        .unread-badge {
            background: #FF6B9D;
            color: white;
            font-size: 0.75rem;
            padding: 0.125rem 0.5rem;
            border-radius: 624.9375rem;
            font-weight: 600;
        }

        .online-indicator {
            width: 0.75rem;
            height: 0.75rem;
            background: #10B981;
            border-radius: 50%;
            border: 0.125rem solid white;
            position: absolute;
            bottom: 0;
            right: 0;
        }

        .dark .online-indicator {
            border-color: rgb(31, 41, 55);
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            space-x: 0.25rem;
            padding: 0.5rem 1rem;
            background: white;
            border-radius: 1rem;
            color: #6b7280;
            font-style: italic;
            margin-left: 0.5rem;
        }

        .dark .typing-indicator {
            background: rgb(55, 65, 81);
        }

        .typing-dots {
            display: flex;
            space-x: 0.25rem;
        }

        .typing-dot {
            width: 0.5rem;
            height: 0.5rem;
            background: #6b7280;
            border-radius: 50%;
            animation: typing 1.4s infinite ease-in-out;
        }

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

        @keyframes typing {
            0%, 80%, 100% { 
                transform: scale(0);
                opacity: 0.5;
            }
            40% { 
                transform: scale(1);
                opacity: 1;
            }
        }

        .attachment-preview {
            border: 0.0625rem dashed #d1d5db;
            border-radius: 0.5rem;
            padding: 1rem;
            text-align: center;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .attachment-preview:hover {
            border-color: #8B5CF6;
            background-color: rgba(139, 92, 246, 0.05);
        }

        .quick-reply {
            display: inline-block;
            padding: 0.5rem 1rem;
            background: #f3f4f6;
            border: 0.0625rem solid #e5e7eb;
            border-radius: 1rem;
            margin: 0.25rem;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.875rem;
        }

        .dark .quick-reply {
            background: rgb(55, 65, 81);
            border-color: #4b5563;
            color: #e5e7eb;
        }

        .quick-reply:hover {
            background: #8B5CF6;
            color: white;
            border-color: #8B5CF6;
        }

        @media (max-width: 768px) {
            .chat-container {
                height: calc(100vh - 4rem);
            }
            
            .chat-sidebar {
                position: absolute;
                left: -100%;
                width: 100%;
                height: 100%;
                z-index: 10;
                transition: left 0.3s ease;
            }
            
            .chat-sidebar.open {
                left: 0;
            }
            
            .message-bubble {
                max-width: 85%;
            }
        }
