/**
 * RadimCare Messenger - Professional Design
 * Radim Teal tema - Light Theme
 * Version: 4.1.0 - PRODUKCE
 */

/* ═══════════════════════════════════════════════════════════════════
   CSS VARIABLES - Messenger-specific (base vars from kolibri-dashboard-v2.css)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Messenger-specific vars (base colors inherited from kolibri-dashboard-v2.css) */

    /* Messenger Backgrounds */
    --rc-bg-card: #ffffff;
    --rc-bg-input: #f0f4f4;
    --rc-bg-hover: rgba(91, 168, 160, 0.08);
    --rc-gradient-light: linear-gradient(135deg, rgba(91, 168, 160, 0.15), rgba(113, 182, 184, 0.15));

    /* Message Bubbles */
    --rc-bubble-sent: linear-gradient(135deg, var(--radim-teal, #5BA8A0), var(--radim-teal-dark, #4A9690));
    --rc-bubble-received: #f0f5f5;

    /* Status Colors */
    --rc-online: #10b981;
    --rc-away: #f59e0b;
    --rc-offline: #6b7280;
    --rc-emergency: #ef4444;

    /* Messenger Shadows */
    --rc-shadow: 0 4px 20px rgba(91, 168, 160, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   MESSENGER CONTAINER
   ═══════════════════════════════════════════════════════════════════ */
.wa-messenger {
    display: flex;
    height: 100%;
    min-height: 500px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: var(--rc-shadow);
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.wa-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--rc-bg-card);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(91, 168, 160, 0.04);
}

.wa-sidebar.hidden {
    display: none;
}

.wa-sidebar-header {
    background: var(--primary-gradient);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(91, 168, 160, 0.15);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-user-avatar span {
    font-size: 20px;
}

.wa-header-actions {
    display: flex;
    gap: 8px;
}

.wa-header-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(91, 168, 160, 0.12);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-header-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Search */
.wa-search {
    padding: 12px 16px;
    background: rgba(91, 168, 160, 0.06);
}

.wa-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--rc-bg-input);
    border-radius: 12px;
    border: 1px solid rgba(91, 168, 160, 0.04);
}

.wa-search-box span {
    color: var(--text-disabled);
}

.wa-search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.wa-search-box input::placeholder {
    color: var(--text-disabled);
}

/* Chat List */
.wa-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.wa-chat-list::-webkit-scrollbar {
    width: 4px;
}

.wa-chat-list::-webkit-scrollbar-thumb {
    background: rgba(91, 168, 160, 0.08);
    border-radius: 2px;
}

/* Section Headers */
.wa-section-header {
    padding: 16px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-disabled);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chat Items */
.wa-chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.wa-chat-item:hover {
    background: var(--rc-bg-hover);
}

.wa-chat-item.active {
    background: var(--rc-gradient-light);
    border-left-color: var(--accent-primary);
}

/* Avatars */
.wa-avatar,
.wa-chat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    background: var(--rc-bg-input);
}

.wa-avatar img,
.wa-chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wa-avatar.radim,
.wa-chat-avatar.radim {
    background: var(--primary-gradient);
}

.wa-avatar.family,
.wa-chat-avatar.family {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.wa-avatar.doctor,
.wa-chat-avatar.doctor {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.wa-avatar.caregiver,
.wa-chat-avatar.caregiver {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.wa-avatar.monitor,
.wa-chat-avatar.monitor {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-light));
}

/* Online indicator */
.wa-avatar::after,
.wa-chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--rc-bg-card);
    display: none;
}

.wa-chat-item.online .wa-avatar::after,
.wa-chat-item.online .wa-chat-avatar::after {
    display: block;
    background: var(--rc-online);
}

/* Chat Info */
.wa-chat-info {
    flex: 1;
    min-width: 0;
}

.wa-chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-chat-last {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.wa-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.wa-badge.ai {
    background: var(--primary-gradient);
    color: white;
}

.wa-badge.family {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.wa-badge.doctor {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.wa-badge.emergency {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Time & Unread */
.wa-time {
    font-size: 11px;
    color: var(--text-disabled);
}

.wa-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-primary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radim Monitor Special */
.wa-chat-item.radim-monitor {
    background: var(--rc-gradient-light);
    border-left: 3px solid var(--accent-primary);
}

.radim-status-icon {
    color: var(--rc-online);
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Add Contact */
.wa-add-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 8px 12px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 12px;
    background: rgba(91, 168, 160, 0.1);
}

.wa-add-contact:hover {
    background: rgba(91, 168, 160, 0.2);
}

.wa-add-contact span:first-child {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

/* Bottom Nav */
.wa-bottom-nav {
    display: flex;
    padding: 12px;
    gap: 8px;
    background: rgba(91, 168, 160, 0.06);
    border-top: 1px solid rgba(91, 168, 160, 0.1);
}

.wa-bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.wa-bottom-nav button:hover {
    background: var(--rc-bg-hover);
    color: var(--text-primary);
}

.wa-bottom-nav button.active {
    background: var(--primary-gradient);
    color: white;
}

.wa-bottom-nav button span {
    font-size: 20px;
}

.wa-bottom-nav button label {
    font-size: 11px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   CHAT AREA
   ═══════════════════════════════════════════════════════════════════ */
.wa-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
}

/* Empty State */
.wa-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.wa-empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.wa-empty-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-empty-icon span {
    font-size: 48px;
}

.wa-empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.wa-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 300px;
    line-height: 1.6;
}

.wa-start-btn {
    padding: 14px 28px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--rc-shadow);
}

.wa-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Active Chat */
.wa-active-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chat Header */
.wa-chat-header {
    background: var(--primary-gradient);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(91, 168, 160, 0.12);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.wa-chat-header .wa-avatar {
    width: 44px;
    height: 44px;
    margin-right: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.wa-info {
    flex: 1;
}

.wa-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.wa-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.wa-actions {
    display: flex;
    gap: 8px;
}

.wa-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(91, 168, 160, 0.12);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Radim Banner */
.wa-radim-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(91, 168, 160, 0.1);
    font-size: 12px;
    color: var(--accent-primary);
}

/* Messages Container */
.wa-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(91, 168, 160, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(113, 182, 184, 0.03) 0%, transparent 50%),
        var(--bg-tertiary);
}

.wa-messages::-webkit-scrollbar {
    width: 6px;
}

.wa-messages::-webkit-scrollbar-thumb {
    background: rgba(91, 168, 160, 0.08);
    border-radius: 3px;
}

/* Welcome Message */
.wa-message-welcome {
    text-align: center;
    padding: 60px 20px;
}

.wa-message-welcome .welcome-avatar,
.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.wa-message-welcome h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.wa-message-welcome p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Message Bubbles */
.wa-message {
    max-width: 75%;
    animation: messageIn 0.2s ease;
}

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

.wa-message.sent {
    align-self: flex-end;
}

.wa-message.received {
    align-self: flex-start;
}

.wa-message-content,
.wa-msg {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.wa-message.sent .wa-message-content,
.wa-msg.out {
    background: var(--rc-bubble-sent);
    color: white;
    border-bottom-right-radius: 6px;
}

.wa-message.received .wa-message-content,
.wa-msg.in {
    background: var(--rc-bubble-received);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
}

.wa-message-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.7;
}

.wa-message-status {
    color: #60a5fa;
}

.voice-indicator {
    opacity: 0.7;
}

/* Suggested Buttons */
.wa-suggested-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(91, 168, 160, 0.05);
}

.wa-suggested-btn {
    padding: 10px 18px;
    background: rgba(91, 168, 160, 0.15);
    border: 1px solid rgba(91, 168, 160, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-suggested-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

/* Typing Indicator */
.wa-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(91, 168, 160, 0.05);
}

.wa-typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--rc-bubble-received);
    border-radius: 18px;
}

.wa-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Voice Mode Indicator */
.wa-voice-mode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-top: 1px solid rgba(16, 185, 129, 0.3);
}

.voice-mode-pulse {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.voice-mode-text {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
}

.voice-mode-transcript {
    flex: 1;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input Area */
.wa-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--rc-bg-card);
    border-top: 1px solid rgba(91, 168, 160, 0.04);
}

.wa-attach {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(91, 168, 160, 0.04);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-attach:hover {
    background: var(--rc-bg-hover);
    color: var(--accent-primary);
}

.wa-input-wrap {
    flex: 1;
}

.wa-input-wrap textarea,
.wa-input-wrap input {
    width: 100%;
    padding: 12px 16px;
    background: var(--rc-bg-input);
    border: 1px solid rgba(91, 168, 160, 0.04);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.wa-input-wrap textarea:focus,
.wa-input-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(91, 168, 160, 0.1);
}

.wa-input-wrap textarea::placeholder,
.wa-input-wrap input::placeholder {
    color: var(--text-disabled);
}

.wa-voice,
.wa-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-voice:hover,
.wa-send:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.wa-voice.active {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: voiceBtnPulse 1.5s infinite;
}

.wa-voice.speaking {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes voiceBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .wa-messenger {
        border-radius: 0;
        height: 100%;
        min-height: 0;
    }

    .wa-sidebar {
        position: absolute;
        width: 100%;
        min-width: 100%;
        height: 100%;
        z-index: 10;
    }

    .wa-sidebar.hidden {
        display: none;
    }

    .wa-back {
        display: flex !important;
    }

    .wa-chat-header {
        padding: 10px 12px;
        border-radius: 0;
    }

    .wa-chat-header .wa-avatar {
        width: 40px;
        height: 40px;
    }

    .wa-chat-header .wa-name {
        font-size: 1rem;
    }

    .wa-message {
        max-width: 88%;
    }

    .wa-message-content {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .wa-messages {
        padding: 12px 10px;
        gap: 6px;
    }

    .wa-input-area {
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .wa-input-wrap textarea,
    .wa-input-wrap input {
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 44px;
        padding: 10px 14px;
    }

    .wa-voice, .wa-send {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .wa-suggested-buttons {
        padding: 8px 10px;
        gap: 6px;
    }

    .wa-suggested-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .wa-message-welcome {
        padding: 40px 16px;
    }

    .wa-empty-icon {
        width: 90px;
        height: 90px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NO CONTACTS TIP
   ═══════════════════════════════════════════════════════════════════ */
.wa-no-contacts-tip {
    padding: 20px;
    margin: 12px;
    background: rgba(91, 168, 160, 0.1);
    border-radius: 12px;
    text-align: center;
    border: 1px dashed rgba(91, 168, 160, 0.3);
}

.wa-no-contacts-tip p {
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.wa-no-contacts-tip p:first-child {
    font-weight: 600;
    color: var(--accent-primary, #5BA8A0);
}

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   SIMPLE MODE - Direct chat with Radim (no contacts sidebar)
   Senior-friendly: open → talk → done
   ═══════════════════════════════════════════════════════════════════ */

/* Hide contacts sidebar completely */
.wa-sidebar {
    display: none !important;
}

/* Chat area takes full space */
.wa-messenger {
    border-radius: 16px;
    min-height: 0;
    height: 100%;
}

.wa-chat-area {
    width: 100%;
    min-width: 100%;
}

/* Hide back button (no sidebar to go back to) */
.wa-back {
    display: none !important;
}

/* Hide empty state (auto-opens radim) */
.wa-empty-state {
    display: none !important;
}

/* Clean chat header */
.wa-chat-header {
    background: linear-gradient(135deg, var(--radim-teal) 0%, var(--radim-teal-dark) 100%) !important;
    padding: 12px 20px !important;
    border-radius: 16px 16px 0 0;
}

.wa-chat-header .wa-name {
    font-size: 1.2rem !important;
}

/* Hide attach button for simplicity */
.wa-attach {
    display: none !important;
}

/* Bigger input for seniors */
.wa-input-area {
    padding: 12px 16px !important;
}

#waInput {
    font-size: 1.05rem !important;
    min-height: 44px !important;
    padding: 12px 16px !important;
}

/* Bigger send/voice buttons */
.wa-send, .wa-voice {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
}

/* Suggested buttons - bigger touch targets */
.wa-suggested-buttons button {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    min-height: 44px !important;
}

/* Hide h2 and subtitle - chat speaks for itself */
#module-chat > h2,
#module-chat > p.text-muted {
    display: none !important;
}

/* Chat container fills the section */
#radim-chat-container {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════
   v284: FEEDBACK BUTTONS (thumbs up/down)
   ═══════════════════════════════════════════════════════════════════ */
.wa-feedback-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.wa-feedback-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
}
.wa-feedback-btn:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--rc-primary, #667eea);
}
.wa-feedback-done {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════════════════════════════════════
   v284: CRISIS BANNER
   ═══════════════════════════════════════════════════════════════════ */
.wa-crisis-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    animation: crisis-pulse 2s ease-in-out infinite;
    z-index: 100;
}
.wa-crisis-banner .crisis-icon {
    font-size: 18px;
    animation: crisis-shake 0.5s ease-in-out infinite;
}
.wa-crisis-banner .crisis-text {
    flex: 1;
}
.wa-crisis-banner .crisis-sos-btn {
    background: white;
    color: #ff4757;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.wa-crisis-banner .crisis-sos-btn:hover {
    background: #ffe8ea;
}
.wa-crisis-banner .crisis-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}
@keyframes crisis-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
@keyframes crisis-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}
