/* GENERAL PAGE */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #0b141a;
    color: #e9edef;
}

/* MAIN LAYOUT */
.app {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 30%;
    background: #111b21;
    border-right: 1px solid #202c33;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #202c33;
    background: #202c33;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 17px;
}

.search-bar {
    padding: 10px;
    border-bottom: 1px solid #202c33;
}

.search-bar input {
    width: 95%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #202c33;
    color: #e9edef;
    font-size: 14px;
}

/* CONTACT LIST */
.contact-list {
    overflow-y: auto;
    flex: 1;
}

.contact {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #1f2c33;
    transition: background 0.2s;
}

.contact:hover {
    background: #202c33;
}

.contact.active {
    background: #2a3942;
}

.contact-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00a884;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111b21;
    font-weight: bold;
    font-size: 15px;
    margin-right: 10px;
}

.contact-number {
    font-size: 14px;
    font-weight: 500;
}

/* CHAT WINDOW */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    height: 60px;
    background: #202c33;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1f2c33;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    background: #00a884;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111b21;
    font-size: 16px;
    font-weight: bold;
}

.chat-title {
    font-size: 15px;
    font-weight: bold;
}

.chat-status {
    font-size: 12px;
    color: #8696a0;
}

/* MESSAGES */
.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.placeholder {
    text-align: center;
    color: #8696a0;
}

.message {
    max-width: 70%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.incoming {
    background: #202c33;
    align-self: flex-start;
}

.outgoing {
    background: #005c4b;
    align-self: flex-end;
    color: white;
}

/* INPUT AREA */
.input-bar {
    padding: 10px;
    background: #202c33;
    display: flex;
    gap: 10px;
}

.input-bar textarea {
    flex: 1;
    height: 40px;
    padding: 10px;
    resize: none;
    border: none;
    border-radius: 6px;
    background: #111b21;
    color: #e9edef;
}

.input-bar button {
    padding: 10px 18px;
    background: #00a884;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.ticks {
    font-size: 14px;
    opacity: 0.8;
}

.tick-read {
    color: #53bdeb !important; /* WhatsApp blue */
}

.msg-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
    color: #c4c4c4;
}

