/* بخش لیست کاربران */
.sn-col-users {
    width: 320px;
    height: 100%;
    background: rgba(13, 14, 33, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* هدر و جستجو */
.sn-search-container {
    position: relative;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease-out;
}

.sn-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 40px 12px 15px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.sn-search-input:focus {
    border-color: #7d52f4;
    box-shadow: 0 0 15px rgba(125, 82, 244, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* لیست کاربران */
.sn-users-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.sn-user-card {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

/* انیمیشن پله‌ای برای کارت‌ها */
.sn-user-card:nth-child(1) { animation-delay: 0.1s; }
.sn-user-card:nth-child(2) { animation-delay: 0.2s; }
.sn-user-card:nth-child(3) { animation-delay: 0.3s; }

.sn-user-card:hover {
    background: rgba(125, 82, 244, 0.1);
    border-color: rgba(125, 82, 244, 0.3);
    transform: scale(1.02) translateX(-5px);
}

.sn-user-card.active {
    background: linear-gradient(90deg, rgba(125, 82, 244, 0.2) 0%, rgba(0, 210, 255, 0.05) 100%);
    border-color: rgba(125, 82, 244, 0.5);
}

/* آواتار با افکت آنلاین */
.sn-avatar-wrapper {
    position: relative;
    margin-left: 12px;
}

.sn-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sn-status-dot {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    border: 2px solid #0d0e21;
    box-shadow: 0 0 10px #00ff88;
}

/* جزئیات متن */
.sn-user-info {
    flex: 1;
}

.sn-user-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sn-last-msg {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* زمان و تعداد پیام */
.sn-user-meta {
    text-align: left;
}

.sn-msg-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 5px;
}

.sn-msg-count {
    background: #7d52f4;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(125, 82, 244, 0.5);
}

/* کی‌فریم انیمیشن‌ها */
@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
