.chats-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .chats-container {
        padding: 8px;
    }
    
    .chats-section {
        padding: 20px;
    }
}

.chats-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.chats-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.chats-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.chats-content {
    display: grid;
    gap: 30px;
}

.chats-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.chats-section h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.chats-list {
    display: grid;
    gap: 15px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: #e3f2fd;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder {
    font-size: 1.5rem;
    color: white;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.chat-last-message {
    color: #6c757d;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-participants {
    color: #6c757d;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    color: #adb5bd;
    margin: 0;
    font-size: 0.85rem;
}

.chat-status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.unread-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
}

.chat-status-dot.active {
    background: #28a745;
}

.chat-status-dot.inactive {
    background: #6c757d;
}

.chats-container .loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.no-chats {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.no-chats p {
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.chats-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.chats-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.chats-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chats-container .btn-primary {
    background: #667eea;
    color: white;
}

.chats-container .btn-primary:hover {
    background: #5a6fd8;
}

.chats-container .btn-secondary {
    background: #6c757d;
    color: white;
}

.chats-container .btn-secondary:hover {
    background: #5a6268;
}

.chats-container .btn-icon {
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .chats-container {
        padding: 15px;
    }
    
    .chats-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .chats-header h1 {
        font-size: 2rem;
    }
    
    .chats-section {
        padding: 20px;
    }
    
    .chat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .chats-actions {
        flex-direction: column;
    }
    
    .chats-container .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Chats Header Section */
.chats-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chats-header-section h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Refresh Indicator */
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.refresh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
