* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
}

a{
    text-decoration: none;
    color: black;
}

.app-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: #fff;
    position: relative;
    overflow-y: auto;
}

header {
    padding: 15px 15px 10px 15px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    color: #25d366;
    font-size: 24px;
    font-weight: 600;
}

.header-icons i {
    margin-left: 20px;
    font-size: 20px;
    color: #333;
}

/* Search Bar */
.search-container {
    margin-bottom: 15px;
}

.search-bar {
    background-color: #f6f7f8;
    padding: 12px 20px;
    border-radius: 30px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Filters */
.filter-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-chip {
    padding: 6px 16px;
    background: #f6f7f8;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    color: #666;
}

.filter-chip.active {
    background: #dcf8c6;
    color: #075e54;
    font-weight: bold;
}

/* Chat List */
.chat-list {
    padding-bottom: 80px;
    height: 900px;
}

.chat-item {
    display: flex;
    padding: 12px 16px;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    border-bottom: 0.5px solid #f0f0f0;
    padding-bottom: 10px;
}

.chat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.name {
    font-weight: 600;
    font-size: 16px;
}

.time {
    font-size: 12px;
    color: #666;
}

.active-time {
    color: #25d366;
    font-weight: bold;
}

.message {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    background: #25d366;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.fa-thumbtack {
    transform: rotate(45deg);
    font-size: 12px;
    color: #999;
}

/* FAB & Bottom Nav */
.meta-ai-btn {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-ai-btn img { width: 25px; }

.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
    gap: 5px;
}

.nav-item.active {
    color: #000;
    font-weight: bold;
}

.nav-icon-bg {
    background: #dcf8c6;
    padding: 4px 18px;
    border-radius: 15px;
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #25d366;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 50%;
}
