/**
 * Chat Widget Styles - Green Theme
 */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.chat-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header-buttons {
    display: flex;
    gap: 8px;
}

.chat-minimize,
.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-minimize:hover,
.chat-close:hover {
    opacity: 1;
}

.chat-minimize {
    font-size: 28px;
    margin-top: -4px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-welcome {
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
}

.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
    width: 100%;
    clear: both;
    display: block;
}

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

.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message-sent .message-wrapper {
    margin-left: auto;
    align-items: flex-end;
}

.message-received .message-wrapper {
    margin-right: auto;
    align-items: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    word-break: break-word;
    display: inline-block;
}

.message-sent .message-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received .message-content {
    background: white;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

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

.message-received .message-time {
    text-align: left;
}

.message-attachment {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.message-attachment a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-typing {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.typing-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
}

.typing-indicator {
    display: inline-flex;
    gap: 3px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Admin side typing indicator */
.typing-indicator-admin {
    padding: 8px 15px;
    background: #f0f8ff;
    color: #666;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e0e0e0;
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
    animation: typing 1.4s infinite;
}

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

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

.chat-input {
    display: flex;
    align-items: flex-end;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    gap: 10px;
}

.chat-file-upload {
    position: relative;
}

.chat-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chat-file-upload label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.chat-file-upload label:hover {
    color: #10b981;
}

.chat-file-upload svg {
    width: 20px;
    height: 20px;
}

#chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.4;
}

#chat-input:focus {
    border-color: #10b981;
}

#chat-send {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#chat-send:hover {
    transform: scale(1.1);
}

#chat-send svg {
    width: 18px;
    height: 18px;
}

.chat-error {
    background: #ffe4e4;
    color: #d32f2f;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.chat-connection-status {
    padding: 10px;
    margin: 10px 0;
    animation: fadeIn 0.3s ease;
}

.connection-warning {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border: 1px solid #ffeaa7;
}

.connection-warning svg {
    flex-shrink: 0;
}

/* Status indicators for conversations */
.conversation-item.status-closed {
    opacity: 0.7;
    background: #f9f9f9;
}

.conversation-item.status-blocked {
    background: #fff5f5;
    border-left: 3px solid #dc3545;
}

/* System messages */
.message-system {
    text-align: center;
    margin: 15px 0;
}

.message-system .message-content {
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    font-style: italic;
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-block;
    max-width: 80%;
}

/* Agent name label */
.message-sender {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
}

.message-received .message-sender {
    color: #10b981;
}

/* Admin side styles */
.message-system .message-sender {
    display: none;
}

.chat-messages-admin .message-system {
    text-align: center;
    margin: 10px 0;
}

.chat-messages-admin .message-system .message-content {
    background: #e8f4fd;
    color: #31708f;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.read-status {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    text-align: right;
}

.message-sent .read-status {
    color: #999;
}

.message-sent .read-status.read {
    color: #4CAF50;
}

.chat-messages-admin .read-status {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
}

.chat-messages-admin .read-status.read {
    color: #4CAF50;
}

.read-status {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.read-status svg {
    width: 16px;
    height: 16px;
    color: #999;
    transition: color 0.3s ease;
}

.read-status.read svg {
    color: #10b981;
}

.check-single, .check-double {
    display: block;
}

/* Animation when marked as read */
@keyframes checkmarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.read-status.read .check-double {
    animation: checkmarkAppear 0.3s ease;
}

/* Image preview styles */
.message-image {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.message-image img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.message-image img:hover {
    opacity: 0.9;
}

/* File attachment styles */
.message-file {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.message-file a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.message-file a:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin: -4px;
    padding: 4px;
}

.file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.file-download {
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.message-file a:hover .file-download {
    opacity: 1;
}

/* Styles for sent messages */
.message-sent .message-file {
    background: rgba(255, 255, 255, 0.2);
}

.message-sent .message-file a {
    color: white;
}

/* Loading state for images */
.message-image.loading {
    background: #f0f0f0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-image.loading::after {
    content: "Loading...";
    color: #999;
    font-size: 14px;
}

/* Separate text from attachment */
.message-text + .message-image,
.message-text + .message-file {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.message-sent .message-text + .message-image,
.message-sent .message-text + .message-file {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.message-sent .message-attachment {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.message-sent .attachment-link {
    color: white;
}

.attachment-link {
    color: #10b981;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.attachment-link:hover {
    text-decoration: underline;
}

/* Image Preview Modal */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    animation: fadeIn 0.3s ease;
    cursor: zoom-out;
}

.image-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Action buttons styling */
.conv-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.conv-actions .btn-warning {
    background: #f0ad4e;
    border-color: #eea236;
}

.conv-actions .btn-success {
    background: #5cb85c;
    border-color: #4cae4c;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chat-window {
        width: 100vw !important;
        height: 100vh !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .chat-toggle {
        right: 20px;
        bottom: 20px;
    }
    
    .chat-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100001;
        border-radius: 0;
        width: 100%;
    }
    
    .chat-messages {
        margin-top: 56px; /* Height of header */
        height: calc(100vh - 140px) !important;
        max-height: none !important;
        padding: 15px;
    }
    
    .chat-input {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        background: white;
        padding: 10px;
        z-index: 100001;
    }
    
    .message-wrapper {
        max-width: 85%;
    }
}

.message-text a {
    color: #000000 !important;
    text-decoration: underline;
}

.message-sent .message-text a {
    color: #000000 !important;
}

.message-received .message-text a {
    color: #000000 !important;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.message-loader {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #f5f5f5;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message-video {
    margin-top: 8px;
    max-width: 100%;
}

.chat-video-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.video-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.video-preview-modal.active {
    display: flex;
}

.video-preview-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10002;
}

.video-preview-close:hover {
    color: #f1f1f1;
}

.video-preview-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-preview-player {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.message-video video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

/* Specifically for mobile */
@media (max-width: 768px) {
    .message-video video {
        max-height: 200px;
        width: 100%;
        height: auto;
    }
    
    .chat-video-preview {
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
}

.video-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.video-wrapper.playing .video-play-overlay {
    display: none;
}

.chat-video-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    background: #000;
}

/* Hide native controls initially on mobile for cleaner look */
@media (max-width: 768px) {
    .video-wrapper:not(.playing) .chat-video-preview {
        pointer-events: none;
    }
    
    .video-wrapper:not(.playing) + .video-play-overlay {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Remove the oval indicator */
.agent-status-indicator {
    display: none !important;
}

/* Glow effect for online status on toggle button */
.chat-toggle.agent-online {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4),
                0 4px 12px rgba(34, 197, 94, 0.3);
    animation: glow-pulse 2s infinite;
}

.chat-toggle.agent-offline {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4),
                    0 4px 12px rgba(34, 197, 94, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2),
                    0 4px 20px rgba(34, 197, 94, 0.4);
    }
}

/* Header status indicator */
.chat-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.agent-status .status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.agent-status .status-dot.online {
    background-color: #a7f3d0;
    box-shadow: 0 0 4px rgba(167, 243, 208, 0.8);
}

.agent-status .status-dot.offline {
    background-color: rgba(255, 255, 255, 0.4);
}

.agent-status .status-text {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

.chat-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-prompt {
    text-align: center;
    padding: 30px;
}

.login-prompt svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.login-prompt h4 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
}

.login-prompt p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 13px;
}

.btn-login-chat {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-login-chat:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Reply Preview Styles */
.reply-preview {
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    animation: slideDown 0.2s ease;
}

.reply-preview-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reply-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #0ea5e9;
}

.reply-preview-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.reply-preview-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.reply-preview-text {
    font-size: 13px;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Reply Context in Messages */
.message-reply-context {
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #0ea5e9;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 8px;
}

.message-sent .message-reply-context {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.message-reply-context:hover {
    background: rgba(0, 0, 0, 0.08);
}

.message-sent .message-reply-context:hover {
    background: rgba(255, 255, 255, 0.25);
}

.reply-line {
    width: 2px;
    background: #0ea5e9;
    border-radius: 1px;
    flex-shrink: 0;
}

.message-sent .reply-line {
    background: rgba(255, 255, 255, 0.5);
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-sender {
    font-size: 11px;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 2px;
}

.message-sent .reply-sender {
    color: rgba(255, 255, 255, 0.9);
}

.reply-text {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-sent .reply-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Reply Button */
.message-reply-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    vertical-align: middle;
}

.chat-message:hover .message-reply-btn {
    opacity: 1;
}

.message-reply-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0ea5e9;
    transform: scale(1.1);
}

.message-sent .message-reply-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.message-reply-btn svg {
    width: 14px;
    height: 14px;
}

/* Message Highlight Animation */
.message-highlight {
    animation: messageHighlight 2s ease;
}

@keyframes messageHighlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: #fef08a;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Separator Styles */
.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.date-separator-label {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .message-reply-btn {
        opacity: 1;
    }
    
    .reply-preview {
        margin: 0 -5px 8px -5px;
        border-radius: 0;
    }
}

.chat-blocked-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
    text-align: center;
    padding: 20px;
}

.chat-blocked-overlay h3 { margin: 15px 0 10px; font-size: 22px; }
.chat-blocked-overlay p { opacity: 0.9; font-size: 14px; max-width: 250px; }
.chat-blocked-overlay .block-countdown {
    margin-top: 20px;
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}