* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #121214; /* Koyu modern arka plan */
    color: #e1e1e6;
    overflow: hidden;
}

/* Üst Bar */
.header {
    background-color: #1a1a1e;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #29292e;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.status {
    font-size: 0.85rem;
    font-weight: 500;
}

.online { color: #00b37e; }
.offline { color: #7c7c8a; }

/* Mesajlaşma Akış Alanı */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #121214; /* Sıfır arka plan resmi, saf renk */
}

/* Genel Mesaj Yapısı */
.message {
    display: flex;
    width: 100%;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Senin Gönderdiğin Mesajlar (Sağda ve Yeşil tonlarında) */
.gonderen {
    justify-content: flex-end;
}
.gonderen .message-content {
    background-color: #00875f;
    color: #ffffff;
    border-bottom-right-radius: 4px; /* WhatsApp tarzı köşe kesimi */
}

/* Onun Gönderdiği Mesajlar (Solda ve Gri tonlarında) */
.alan {
    justify-content: flex-start;
}
.alan .message-content {
    background-color: #29292e;
    color: #e1e1e6;
    border-bottom-left-radius: 4px;
}

/* Alt Yazışma Barı */
.footer {
    background-color: #1a1a1e;
    padding: 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #29292e;
}

.footer input {
    flex: 1;
    background-color: #121214;
    border: 1px solid #29292e;
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.footer input:focus {
    border-color: #00b37e;
}

.footer button {
    background-color: #00b37e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.footer button:hover {
    background-color: #00875f;
}

/* Seçim alanları ve butonlar için yumuşak scroll */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background-color: #29292e;
    border-radius: 3px;
}