




/* Заголовок чатов */
.chat-list-header {
    background: var(--surface-color);
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.chat-list-header h2 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

/* Поиск в чатах */




.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}



/* Элемент чата */
.chat-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f8f8;
    position: relative;
}

.chat-item:hover {
    background: rgba(233, 30, 99, 0.05);
}

.chat-item.active {
    background: var(--primary-light);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.chat-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1;
    margin-right: 0.5rem;
}

.chat-badge {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    bottom: 12px;
    left: 50px;
}

.status-online {
    background: #4caf50;
}

.status-offline {
    background: #9e9e9e;
}

.status-away {
    background: #ff9800;
}

/* Состояние пустого списка */
.empty-chats {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-chats i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.empty-chats p {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: var(--background-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

/* Адаптивность */
@media (max-width: 480px) {
    .chat-list-screen {
        padding: 0.75rem;
        padding-bottom: calc(var(--nav-height) + 0.75rem);
    }

    .chat-list-container {
        margin-top: 0.5rem;
    }

    .chat-list-header {
        padding: 1.25rem;
    }

    .chat-list-header h2 {
        font-size: 1.3rem;
    }

    .chat-search {
        padding: 0.75rem 1.25rem;
    }

    .chat-item {
        padding: 0.875rem 1.25rem;
    }

    .chat-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-right: 0.875rem;
    }

    .chat-status {
        left: 45px;
        bottom: 10px;
    }

    .chat-name {
        font-size: 0.95rem;
    }

    .chat-message {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .chat-item {
        padding: 0.75rem 1rem;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .chat-status {
        left: 40px;
        bottom: 8px;
    }
}


