{% extends 'admin/base_admin.html' %} {% load static %} {% block title %}Messages Desk | {{ company.name }} | ChatLab{% endblock %} {% block admin_messages_active %}active{% endblock %} {% block custom_styles %} /* Dashboard-specific Styles */ .filter-tabs { display: flex; background: #f0f2f5; padding: 4px; border-radius: 20px; gap: 4px; } .filter-tab { border: none; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; outline: none; } .filter-tab.active { background: var(--bg-card); color: var(--primary-blue); box-shadow: 0 1px 3px rgba(0,0,0,0.08); } .tab-count { font-size: 10.5px; background: #e4e6eb; color: var(--text-muted); padding: 1.5px 5.5px; border-radius: 10px; font-weight: 700; transition: all 0.2s; } .filter-tab.active .tab-count { background: var(--primary-blue); color: #ffffff; } .conversations-list-wrapper { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; } .conversation-item { display: flex; align-items: center; padding: 14px 16px; gap: 12px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border-color); transition: background 0.2s; cursor: pointer; width: 100%; } .conversation-item:last-child { border-bottom: none; } .conversation-item:hover { background-color: var(--hover-bg); } .avatar-container { position: relative; width: 46px; height: 46px; flex-shrink: 0; } .avatar-circle { width: 46px; height: 46px; border-radius: 50%; background: #e4e6eb; color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; text-transform: uppercase; } .status-dot { position: absolute; bottom: 0; right: 0; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--bg-card); } .status-dot.active { background-color: var(--success-green); } .status-dot.pending { background-color: var(--warning-orange); } .conversation-details { flex-grow: 1; overflow: hidden; display: flex; flex-direction: column; gap: 3px; } .name-row { display: flex; align-items: center; justify-content: space-between; width: 100%; } .name { font-weight: 600; font-size: 14.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; } .time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; } .message-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; } .message-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; } .platform-badge { padding: 2.5px 6.5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3.5px; flex-shrink: 0; } .platform-badge.fb { background: rgba(0, 132, 255, 0.08); color: var(--primary-blue); } .platform-badge.wa { background: rgba(37, 211, 102, 0.08); color: var(--whatsapp-green); } .platform-badge.web { background: rgba(99, 102, 241, 0.08); color: var(--web-indigo); } .ai-badge { background: rgba(16, 185, 129, 0.08); color: var(--success-green); padding: 2.5px 6.5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; flex-shrink: 0; } .action-container { flex-shrink: 0; margin-left: auto; } .claim-btn { border: none; background: var(--primary-blue); color: #ffffff; font-weight: 600; font-size: 12.5px; padding: 6px 14px; border-radius: 16px; cursor: pointer; transition: opacity 0.2s; outline: none; } .claim-btn:hover { opacity: 0.9; } .no-conversations { padding: 48px 16px; text-align: center; color: var(--text-muted); font-size: 14.5px; } {% endblock %} {% block header_center %}