/* CC-02b Wave 2 - extracted from FRONTEND/05_communication/communication-platform.html */
.glassmorphism {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(0.625rem);
            border: 0.0625rem solid rgba(255, 255, 255, 0.2);
        }

        .dark .glassmorphism {
            background: rgba(0, 0, 0, 0.2);
            border: 0.0625rem solid rgba(255, 255, 255, 0.1);
        }

        .message-bubble {
            position: relative;
            max-width: 70%;
        }

        .message-bubble::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
        }

        .message-sent::before {
            right: -0.125rem;
            top: 0.75rem;
            border-left: 0.5rem solid #e53e3e;
            border-top: 0.5rem solid transparent;
            border-bottom: 0.5rem solid transparent;
        }

        .message-received::before {
            left: -0.125rem;
            top: 0.75rem;
            border-right: 0.5rem solid #374151;
            border-top: 0.5rem solid transparent;
            border-bottom: 0.5rem solid transparent;
        }

        .dark .message-received::before {
            border-right-color: #4b5563;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

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

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

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        .online-indicator {
            position: relative;
        }

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

        .away-indicator::after {
            background: #f59e0b;
        }

        .offline-indicator::after {
            background: #6b7280;
        }

        .chat-container {
            height: calc(100vh - 8rem);
            max-height: 48rem;
        }

        .family-tree-node {
            transition: all 0.3s ease;
        }

        .family-tree-node:hover {
            transform: scale(1.05);
        }

        ::-webkit-scrollbar {
            width: 0.375rem;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, #e53e3e, #f59e0b);
            border-radius: 0.25rem;
        }

        .notification-badge {
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        .video-call-overlay {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(16, 185, 129, 0.2));
            backdrop-filter: blur(0.625rem);
        }
