/* Chat Widget Styles */

#chat-widget-root {
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 1050;
    font-family: inherit;
}

.chat-bubble-toggle {
    width: 380px;
    height: 48px;
    border-radius: 8px 8px 0 0;
    padding: 0 12px;
    background-color: var(--bg-card, #292929);
    color: var(--text-primary, white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-bottom: none;
}

.chat-bubble-toggle:hover {
    background-color: var(--bg-lighter, #333333);
}

.chat-toggle-avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.2s;
}
.chat-toggle-avatar-wrapper:hover { opacity: 0.8; }

.chat-toggle-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #4361ee), var(--primary-dark, #3a4fd6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
}

.chat-toggle-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background-color: #adb5bd;
    border: 2px solid var(--bg-card, #292929);
    border-radius: 50%;
}
.chat-toggle-status.status-online { background-color: #22c55e; }
.chat-toggle-status.status-away   { background-color: #f59e0b; }
.chat-toggle-status.status-busy   { background-color: #ef4444; }
.chat-toggle-status.status-offline { background-color: #adb5bd; }

/* Status Picker Dropdown */
.chat-status-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    padding: 4px 0;
}

.chat-status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-primary, #212529);
    transition: background 0.15s;
}
.chat-status-option:hover { background: var(--bg-lighter, #f8f9fa); }
.chat-status-option.active { font-weight: 600; }

.chat-status-pill,
.chat-status-bar-pill {
    width: 4px;
    height: 15px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-status-pill.online,
.chat-status-bar-pill.online  { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.45); }
.chat-status-pill.away,
.chat-status-bar-pill.away    { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }
.chat-status-pill.busy,
.chat-status-bar-pill.busy    { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.45); }
.chat-status-pill.offline,
.chat-status-bar-pill.offline { background: #adb5bd; box-shadow: 0 0 4px rgba(173, 181, 189, 0.3); }

.chat-bubble-toggle .op-7 {
    opacity: 0.7;
}

.chat-bubble-toggle .op-7 i {
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-bubble-toggle .op-7 i:hover {
    opacity: 1;
}

.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-contact-item.has-unread {
    background-color: var(--bg-lighter, #f0f7ff);
    border-left: 3px solid var(--primary-color, var(--bs-primary));
}

.chat-contact-item.has-unread .chat-contact-name {
    font-weight: 800;
}

.chat-panel {
    display: none;
    position: absolute;
    bottom: 48px;
    right: 0;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 80px);
    background: var(--bg-card, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color, rgba(0,0,0,0.15));
    border-bottom: none;
    overflow: hidden;
    flex-direction: column;
    animation: chatSlideUp 0.3s ease;
    color: var(--text-primary);
}

.chat-panel.active {
    display: flex;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background-color: var(--bg-lighter, var(--bs-primary));
    color: var(--text-primary, white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.chat-header-actions i {
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-header-actions i:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    overflow: hidden;
    background-color: var(--bg-dark, #f8f9fa);
    display: flex;
    flex-direction: column;
}

.chat-view-contacts, .chat-view-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-search {
    padding: 10px;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: var(--bg-card, white);
}

.chat-contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.chat-contact-separator {
    list-style: none;
    padding: 6px 15px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-contact-separator span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #6c757d);
    white-space: nowrap;
}

.chat-contact-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e9ecef);
}

.chat-contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color, #f1f3f5);
    cursor: pointer;
    transition: background-color 0.2s;
    background: var(--bg-card, white);
}

.chat-contact-item:hover {
    background-color: var(--bg-lighter, #f8f9fa);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-lighter, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #495057);
    font-weight: bold;
    margin-right: 12px;
    position: relative;
}

.chat-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--success, #28a745);
    border: 2px solid var(--bg-card, white);
}

.chat-online-indicator.offline {
    background-color: var(--text-muted, #6c757d);
}

.chat-online-indicator.away {
    background-color: var(--warning, #ffc107);
}

.chat-online-indicator.busy {
    background-color: var(--danger, #dc3545);
}

.chat-contact-info {
    flex: 1;
    overflow: hidden;
}

.chat-contact-name {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary, #212529);
}

.chat-contact-role {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #6c757d);
}

.chat-contact-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
}

.chat-star-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-muted, #adb5bd);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: color 0.2s, transform 0.15s;
    line-height: 1;
}

.chat-star-btn:hover {
    color: #ffc107;
    transform: scale(1.2);
}

.chat-star-btn.is-favorite {
    color: #ffc107;
}

.chat-star-btn.is-favorite i {
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* Empty state when no favorites or recent conversations */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted, #adb5bd);
    font-size: 0.85rem;
    list-style: none;
}

/* Messages View */
.chat-messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.sent {
    align-self: flex-end;
    background-color: var(--primary-color, var(--bs-primary));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    align-self: flex-start;
    background-color: var(--bg-card, white);
    color: var(--text-primary, #212529);
    border: 1px solid var(--border-color, #e9ecef);
    border-bottom-left-radius: 4px;
}

.chat-message-time {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

.chat-input-area {
    padding: 12px;
    background: var(--bg-card, white);
    border-top: 1px solid var(--border-color, #dee2e6);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input {
    flex: 1;
    resize: none;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    max-height: 80px;
    outline: none;
    transition: border-color 0.2s;
    background-color: var(--bg-lighter, white);
    color: var(--text-primary);
}

.chat-input:focus {
    border-color: var(--primary-color, var(--bs-primary));
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color, var(--bs-primary));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background-color: var(--text-muted, #6c757d);
    cursor: not-allowed;
    transform: none;
}

/* Status Bar in Contacts Header */
.chat-my-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: var(--bg-card, #ffffff);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

.chat-status-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #495057);
    letter-spacing: 0.2px;
}

.chat-status-select {
    width: auto;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #ced4da);
    cursor: pointer;
    background-color: var(--bg-lighter, white);
    color: var(--text-primary, #212529);
    outline: none;
    transition: all 0.2s ease;
}

.chat-status-select:hover,
.chat-status-select:focus {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.chat-search .input-group-text {
    background-color: var(--bg-lighter, #f8f9fa);
    border-color: var(--border-color, #dee2e6);
    color: var(--text-muted, #6c757d);
}

.chat-search .form-control {
    background-color: var(--bg-lighter, #f8f9fa);
    border-color: var(--border-color, #dee2e6);
    color: var(--text-primary, #212529);
}

.chat-search .form-control:focus {
    background-color: var(--bg-card, #ffffff);
    color: var(--text-primary, #212529);
}

.chat-status-dot-sm {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.chat-status-dot-sm.online { background-color: #22c55e; }
.chat-status-dot-sm.away { background-color: #eab308; }
.chat-status-dot-sm.busy { background-color: #ef4444; }
.chat-status-dot-sm.offline { background-color: #9ca3af; }

/* Unread Badge Pill in Contact List */
.chat-unread-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    background-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    animation: pulseBadge 1.5s infinite;
}

.chat-item-time {
    font-size: 11px;
    white-space: nowrap;
    opacity: 0.75;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* In-Chat Search Bar */
.chat-in-chat-search {
    animation: fadeIn 0.2s ease-in-out;
}

/* Emoji Button & Picker Styles */
.chat-emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted, #6c757d);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.chat-emoji-btn:hover, .chat-emoji-btn.active {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.12);
    transform: scale(1.1);
}

.chat-emoji-picker-container {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    max-height: 320px;
    animation: emojiPickerPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes emojiPickerPop {
    0% { opacity: 0; transform: translateY(12px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-emoji-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    background: var(--bg-lighter, #f8fafc);
}

.chat-emoji-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chat-emoji-tabs::-webkit-scrollbar { display: none; }

.chat-emoji-tab {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background 0.15s, transform 0.15s;
    user-select: none;
}

.chat-emoji-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.15);
}

.chat-emoji-tab.active {
    background: var(--primary-color, #3b82f6);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.chat-emoji-search {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.chat-emoji-search-input {
    width: 100%;
    padding: 5px 12px;
    font-size: 0.82rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #cbd5e1);
    outline: none;
    background: var(--bg-card, white);
    color: var(--text-primary, #212529);
}

.chat-emoji-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    max-height: 210px;
}

.chat-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s;
    user-select: none;
}

.chat-emoji-item:hover {
    background-color: var(--bg-lighter, #f1f5f9);
    transform: scale(1.3);
    z-index: 2;
}

.chat-emoji-animated-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.chat-emoji-item:hover .chat-emoji-animated-img {
    transform: scale(1.25) rotate(5deg);
}

/* Native Animated CSS Emojis */
.chat-emoji-anim-bounce {
    display: inline-block;
    animation: emojiBounce 1.8s cubic-bezier(0.36, 0, 0.66, 1) infinite;
}
.chat-emoji-anim-pulse {
    display: inline-block;
    animation: emojiPulse 1.6s ease-in-out infinite;
}
.chat-emoji-anim-spin {
    display: inline-block;
    animation: emojiSpin 3s linear infinite;
}
.chat-emoji-anim-wobble {
    display: inline-block;
    animation: emojiWobble 2s ease-in-out infinite;
}

@keyframes emojiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px) scale(1.1); }
}
@keyframes emojiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes emojiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes emojiWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg) scale(1.05); }
    75% { transform: rotate(10deg) scale(1.05); }
}

/* Telegram/WhatsApp Style Big Emoji Messages */
.chat-message.chat-message-big-emoji {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 2.6rem !important;
    padding: 2px 6px !important;
    line-height: 1.1 !important;
}

.chat-message.chat-message-big-emoji .chat-message-time {
    color: var(--text-muted, #94a3b8) !important;
    text-shadow: none !important;
    font-size: 10px;
    margin-top: 2px;
}

/* Border Drag Resizing & Expansion */
.chat-resize-border-top {
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 8px;
    cursor: ns-resize;
    z-index: 1070;
    transition: background-color 0.2s;
}

.chat-resize-border-left {
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 1070;
    transition: background-color 0.2s;
}

.chat-resize-border-topleft {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    z-index: 1075;
    transition: background-color 0.2s;
}

.chat-resize-border-top:hover,
.chat-resize-border-left:hover,
.chat-resize-border-topleft:hover {
    background-color: rgba(59, 130, 246, 0.25);
}

.chat-panel-expanded {
    width: 620px !important;
    height: 760px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
}

/* Date Dividers */
.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    position: relative;
    user-select: none;
}

.chat-date-divider::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: var(--border-color, rgba(255,255,255,0.1));
    z-index: 1;
}

.chat-date-divider-pill {
    position: relative;
    z-index: 2;
    background: var(--bg-card, #262626);
    color: var(--text-muted, #94a3b8);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

/* Reply Preview Bar above Input */
.chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--bg-lighter, rgba(255,255,255,0.05));
    border-top: 2px solid var(--primary-color, #3b82f6);
    font-size: 12px;
}

.chat-reply-preview-info {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.chat-reply-preview-name {
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
    font-size: 11px;
}

.chat-reply-preview-text {
    color: var(--text-muted, #94a3b8);
    font-size: 11px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chat-reply-preview-close {
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    padding: 2px 4px;
}

.chat-reply-preview-close:hover {
    color: var(--text-primary, #fff);
}

/* Quoted Block Inside Message Bubble */
.chat-message-quoted {
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--primary-color, #3b82f6);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 11px;
    cursor: pointer;
}

.chat-message-outgoing .chat-message-quoted {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
}

.chat-message-quoted-sender {
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 2px;
}

.chat-message-quoted-text {
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

/* Message Hover Actions Bar */
.chat-message {
    position: relative;
}

.chat-message-actions {
    position: absolute;
    top: -12px;
    right: 8px;
    display: none;
    background: var(--bg-card, #262626);
    border: 1px solid var(--border-color, rgba(255,255,255,0.15));
    border-radius: 12px;
    padding: 2px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.chat-message:hover .chat-message-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message-action-btn {
    cursor: pointer;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    padding: 2px 4px;
    transition: color 0.15s;
}

.chat-message-action-btn:hover {
    color: var(--primary-color, #3b82f6);
}

/* Typing Indicator */
.chat-typing-bar {
    padding: 4px 14px;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.chat-typing-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted, #94a3b8);
    border-radius: 50%;
    animation: typingBlink 1.4s infinite ease-in-out both;
}

.chat-typing-dots span:nth-child(1) { animation-delay: 0s; }
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* Read Receipts */
.chat-read-status {
    font-size: 11px;
    margin-left: 4px;
    display: inline-block;
}

.chat-read-status.read {
    color: #34d399 !important; /* Green read tick */
}

@media (max-width: 576px) {
    .chat-panel {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}
