/* ============================================================
   SUPPORT CHAT & TOAST – Kazuma Ali Portfolio
   ============================================================ */

/* ---------- SUPPORT CHAT ---------- */
.support-chat-list .chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-card);
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid rgba(78, 205, 196, 0.06);
    margin-bottom: 0.8rem;
}
.support-chat-list .chat-item:hover {
    transform: translateX(4px);
    border-color: rgba(78, 205, 196, 0.20);
}
[dir="rtl"] .support-chat-list .chat-item:hover {
    transform: translateX(-4px);
}
.support-chat-list .chat-item.unread {
    border-left: 3px solid #4ecdc4;
}
[dir="rtl"] .support-chat-list .chat-item.unread {
    border-left: none;
    border-right: 3px solid #4ecdc4;
}
.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.2);
}
.chat-info {
    flex: 1;
    min-width: 0;
}
.chat-title {
    font-weight: 600;
    color: var(--text-primary);
}
.chat-client {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.chat-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}
.chat-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ecdc4;
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.4);
}

.messages-container {
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.messages-container .message {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    max-width: 85%;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(78, 205, 196, 0.06);
}
.messages-container .message.mine {
    align-self: flex-end;
    background: rgba(78, 205, 196, 0.10);
    border-color: rgba(78, 205, 196, 0.15);
}
.messages-container .message strong {
    color: var(--text-primary);
}
.messages-container .message small {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}

/* ---------- TOAST (Netflix-style overlay) ---------- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 420px;
    width: 100%;
}
[dir="rtl"] #toast-container {
    right: auto;
    left: 2rem;
}
.toast {
    padding: 1rem 1.8rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(78, 205, 196, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-weight: 500;
    animation: slideIn 0.4s ease forwards;
    border-left: 4px solid #4ecdc4;
}
[dir="rtl"] .toast {
    border-left: none;
    border-right: 4px solid #4ecdc4;
}
.toast.toast-success {
    border-color: #2ecc71;
}
.toast.toast-danger {
    border-color: #e74c3c;
}
.toast.toast-warning {
    border-color: #f39c12;
}
.toast.toast-info {
    border-color: #3498db;
}