
/* ===== CHAT BUG FIX: Force hide inactive tabs + msg notice styles ===== */

/* Ensure inactive tabs are completely hidden */
.chat-tab-content { 
    display: none !important;
    flex-direction: column; 
    flex: 1; 
    overflow: hidden;
    min-height: 0;
}
.chat-tab-content.active { 
    display: flex !important; 
}

/* Fix chatbot window overflow on mobile */
.chatbot-window {
    overflow: hidden !important;
}

/* Message notice (ℹ️ box) styles */
.chat-msg-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 200, 0, 0.07);
    border-left: 3px solid rgba(218, 165, 32, 0.5);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 12px 12px 0;
    border-radius: 0 8px 8px 0;
}
.chat-msg-notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.chat-msg-notice p {
    margin: 0;
    font-size: 0.76rem;
}

/* Message list styles */
.chat-msg-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}
.chat-msg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.chat-msg-item:hover {
    background: rgba(218, 165, 32, 0.06);
}
.chat-msg-item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(218,165,32,0.2), rgba(218,165,32,0.05));
    border: 1px solid rgba(218,165,32,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.chat-msg-item-info {
    flex: 1;
    min-width: 0;
}
.chat-msg-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-msg-item-preview {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-msg-item-time {
    font-size: 0.7rem;
    color: rgba(218,165,32,0.6);
    flex-shrink: 0;
}

/* Discord announce banner */
.chat-discord-announce {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(88,101,242,0.15), rgba(88,101,242,0.05));
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 12px;
}
.chat-discord-announce-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.chat-discord-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: #5865F2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.chat-discord-btn:hover { background: #4752c4; }

/* Bottom nav */
.chat-bottom-nav {
    display: flex;
    border-top: 1px solid rgba(218,165,32,0.15);
    background: rgba(10,10,10,0.95);
    flex-shrink: 0;
}
.chat-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    position: relative;
    transition: color 0.2s;
}
.chat-nav-item:hover { color: rgba(218,165,32,0.7); }
.chat-nav-item.active { color: #DAA520; }
.chat-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #DAA520;
    border-radius: 0 0 2px 2px;
}
.chat-nav-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    margin-right: -18px;
    background: #EF4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}
.chat-tab-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(218,165,32,0.3) transparent;
}
