/* CSS styles for the admin contact list */
.admin-contact-list {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-contact-list h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.admin-contact-list h3 i {
    margin-right: 10px;
}

.admin-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.admin-contact-item:last-child {
    border-bottom: none;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 15px;
}

.admin-info {
    flex-grow: 1;
}

.admin-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 3px;
    color: var(--text-color);
}

.admin-status {
    font-size: 13px;
    color: #666;
}

.admin-contact-item .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Private conversations section */
.private-conversations {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.private-conversations h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.private-conversations h3 i {
    margin-right: 10px;
}

.conversations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.conversation-item:hover {
    background-color: #f0f2f5;
}

.conversation-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.conversation-info {
    flex-grow: 1;
    min-width: 0; /* Needed for text truncation */
}

.conversation-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 3px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.conversation-name .badge {
    font-size: 11px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.conversation-preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
}

.empty-state i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #999;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .admin-contact-list, 
    .private-conversations {
        margin-top: 20px;
        padding: 15px;
    }
    
    .admin-contact-item,
    .conversation-item {
        padding: 10px;
    }
    
    .admin-avatar,
    .conversation-avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .admin-name,
    .conversation-name {
        font-size: 15px;
    }
    
    .conversation-time {
        min-width: 45px;
        font-size: 11px;
    }
}