/* General Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #0f1620; /* Telegram Dark Background */
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: #1c242d;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #212d3b;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}
.header h2 { font-size: 20px; font-weight: 500; }
.header-icons { letter-spacing: 15px; font-size: 20px; }

/* Tabs */
.tabs {
    background-color: #212d3b;
    display: flex;
    padding: 10px 15px;
    gap: 20px;
    border-bottom: 1px solid #10161f;
}
.tabs span { color: #8496a8; font-weight: bold; font-size: 14px; position: relative; }
.tabs .active { color: #64b5f6; border-bottom: 3px solid #64b5f6; padding-bottom: 10px; }
.badge { background: #64b5f6; color: white; padding: 2px 6px; border-radius: 10px; font-size: 10px; margin-left: 5px; }

/* Chat List */
.chat-list { flex: 1; overflow-y: auto; }
.chat-item {
    display: flex;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    align-items: center;
}
.chat-item:hover { background-color: #2b394a; }
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-right: 15px;
}
.chat-info { flex: 1; border-bottom: 1px solid #2b394a; padding-bottom: 10px; }
.chat-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.chat-header h4 { font-weight: 500; font-size: 16px; }
.time { color: #8496a8; font-size: 12px; }
.last-message { color: #8496a8; font-size: 14px; }

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    background-color: #212d3b;
    padding: 10px 0;
    justify-content: space-around;
    font-size: 12px;
    color: #8496a8;
}
.nav-item { text-align: center; }
.nav-item.active { color: #64b5f6; }

/* Chat Window Specifics */
.chat-bg { background-color: #0f1620; /* Darker bg for chat room */ }
.chat-header-bar { justify-content: flex-start; gap: 15px; }
.small-avatar { width: 40px; height: 40px; font-size: 18px; margin-right: 0; }
.user-info { flex: 1; }
.user-info h2 { font-size: 18px; }
.user-info p { font-size: 12px; color: #8496a8; }

.chat-area { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; }
.empty-state {
    background-color: #212d3b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: auto;
    width: 80%;
}
.empty-state p { font-weight: bold; margin-bottom: 5px; }
.empty-state small { color: #8496a8; }
.sticker { font-size: 60px; margin-top: 10px; }

.message {
    background-color: #2b5278;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    margin-bottom: 10px;
    max-width: 80%;
}
.msg-time { font-size: 10px; color: #a4c1db; float: right; margin-top: 5px; margin-left: 10px; }

.input-area {
    background-color: #212d3b;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
}
.input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}
.icon { font-size: 24px; color: #8496a8; cursor: pointer; }
.send-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}
