* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #121212; display: flex; justify-content: center; }

.app-container {
    width: 100%; max-width: 500px; height: 100vh;
    background: white; position: relative; display: flex; flex-direction: column;
}

/* Header */
.top-nav { padding: 15px 15px 10px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: #25d366; font-size: 26px; font-weight: 600; }
.top-icons { display: flex; gap: 20px; color: #555; }

/* Search Bar */
.search-section { padding: 10px 15px; }
.search-box {
    background: #f0f2f5; border-radius: 25px; padding: 10px 15px;
    display: flex; align-items: center; gap: 10px;
}
.search-box input { border: none; background: transparent; outline: none; width: 100%; font-size: 16px; }

/* Filter Chips */
.filters { display: flex; gap: 8px; padding: 10px 15px; overflow-x: auto; scrollbar-width: none; }
.chip { 
    background: #f0f2f5; border: none; padding: 8px 15px; border-radius: 20px;
    white-space: nowrap; font-size: 14px; font-weight: 500; color: #555;
}
.chip.active { background: #dcf8c6; color: #075e54; }
.chip-add { background: #f0f2f5; border: none; width: 35px; border-radius: 50%; font-size: 18px; }

/* Chat List */
.chat-list { flex: 1; overflow-y: auto; padding-bottom: 80px; }
.chat-item { display: flex; padding: 12px 15px; align-items: center; cursor: pointer; }
.chat-item:active { background: #f5f5f5; }
.profile-pic { width: 55px; height: 55px; border-radius: 50%; overflow: hidden; margin-right: 15px; background: #ddd; flex-shrink: 0; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic .initial { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 20px; font-weight: bold; color: white; }

.chat-info { flex: 1; border-bottom: 0.5px solid #eee; padding-bottom: 10px; }
.chat-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.chat-name { font-weight: 600; font-size: 16px; color: #000; }
.chat-time { font-size: 12px; color: #666; }
.chat-msg { font-size: 14px; color: #666; display: flex; align-items: center; gap: 4px; }

/* Bottom Nav */
.bottom-nav {
    position: absolute; bottom: 0; width: 100%; background: white;
    display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #eee;
}
.nav-item { text-align: center; color: #555; font-size: 12px; flex: 1; }
.nav-item.active { color: #075e54; font-weight: bold; }
.icon-box { position: relative; display: inline-block; }
.nav-badge {
    position: absolute; top: -5px; right: -8px; background: #25d366; color: white;
    font-size: 10px; padding: 2px 5px; border-radius: 10px; border: 2px solid white;
}

/* FAB */
.fab {
    position: absolute; bottom: 90px; right: 20px;
    background: #25d366; color: white; width: 55px; height: 55px;
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Chat Item Styling */
.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: background 0.2s;
    cursor: pointer;
}

.chat-item:active {
    background-color: #f5f5f5;
}

/* Avatars */
.avatar, .avatar-letter {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.avatar-letter {
    background-color: #ffdada; /* Light pink like in your image */
    color: #cc5a5a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
}

/* Message Info */
.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.chat-name {
    font-size: 16.5px;
    font-weight: 600;
    color: #111b21;
}

.chat-time {
    font-size: 12px;
    color: #667781;
}

.chat-msg {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-icon {
    font-size: 16px !important;
}