/* ================================================================= */
/* WHATSAPP SİMÜLATÖRÜ (ANI KÖŞESİ) STİLLERİ */
/* ================================================================= */
.chats-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.chats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
}

/* Telefon Simülatörü Kartı */
.whatsapp-phone {
  width: 100%;
  max-width: 350px;
  height: 520px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  border: 8px solid #2f3640; /* Telefon çerçevesi */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* WhatsApp Üst Menü (Header) */
.wa-header {
  background: #075e54;
  color: white;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wa-back-arrow {
  font-size: 16px;
  opacity: 0.85;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.3);
  background: #ccc;
}

.wa-user-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wa-username {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-status {
  font-size: 9px;
  opacity: 0.85;
}

.wa-actions {
  display: flex;
  gap: 12px;
  font-size: 14px;
  opacity: 0.9;
}

/* Sohbet Arka Planı (WhatsApp Klasik) */
.wa-body {
  flex-grow: 1;
  background-color: #efeae2;
  /* WhatsApp arka plan deseni simülasyonu */
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0),
                    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* Görünür ve şık WhatsApp tarzı scrollbar */
.wa-body::-webkit-scrollbar {
  width: 6px;
  display: block !important;
}

.wa-body::-webkit-scrollbar-track {
  background: transparent;
}

.wa-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 10px;
}

.wa-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Tarih Ayracı */
.wa-date-divider {
  align-self: center;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #4a5568;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mesaj Balonları */
.wa-bubble {
  max-width: 80%;
  min-width: 75px;
  padding: 8px 32px 16px 12px; /* Sağa 32px padding verilerek saatin yazıyı ezmesi engellendi */
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Buse (Soldaki Balon) */
.wa-bubble.buse {
  align-self: flex-start;
  background: #ffffff;
  color: #333333;
  border-top-left-radius: 0;
}

/* Kullanıcı (Sağdaki Balon - Yeşil yerine hafif pembe/yeşil WhatsApp tonu) */
.wa-bubble.ben {
  align-self: flex-end;
  background: #d9fdd3; /* WhatsApp yeşili */
  color: #111a24;
  border-top-right-radius: 0;
}

/* Mesaj Zamanı & Çift Tik */
.wa-meta {
  position: absolute;
  bottom: 2px;
  right: 6px;
  font-size: 8.5px;
  color: #8696a0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wa-bubble.ben .wa-meta {
  color: #53bdeb; /* Çift mavi tik rengi */
}

/* Alt Bar (Mock Metin Girişi) */
.wa-footer {
  background: #f0f2f5;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.wa-input-mock {
  flex-grow: 1;
  background: white;
  height: 32px;
  border-radius: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8696a0;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wa-mic-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00a884;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Reaksiyon (Reaction) Baloncuğu */
.wa-reaction {
  position: absolute;
  bottom: -10px;
  left: 12px;
  background: white;
  border-radius: 10px;
  padding: 1px 4px;
  font-size: 9.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  border: 1px solid #e9edef;
  z-index: 2;
  line-height: 1;
}

.wa-bubble.ben .wa-reaction {
  left: auto;
  right: 12px;
}

/* WhatsApp Yanıt (Quote Reply) Kutusu */
.wa-reply-box {
  background: rgba(0, 0, 0, 0.05);
  border-left: 3.5px solid #00a884;
  border-radius: 4px;
  padding: 4px 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #54656f;
  text-align: left;
}

.wa-bubble.buse .wa-reply-box {
  border-left-color: #53bdeb; /* Karşı taraf yanıtı mavi/yeşil tonu */
}

.wa-reply-sender {
  font-weight: 700;
  font-size: 10px;
  color: #00a884;
  margin-bottom: 1px;
}

.wa-bubble.buse .wa-reply-sender {
  color: #53bdeb;
}

.wa-reply-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  opacity: 0.85;
}




