:root {
  /* WhatsApp Renk Değişkenleri */
  --wa-header-bg: #008069;
  --wa-bg-color: #efe7dd;
  --wa-desktop-bg: #d1d7db;
  --wa-message-sent: #d9fdd3;
  --wa-message-received: #ffffff;
  --wa-text-primary: #111b21;
  --wa-text-secondary: #8696a0;
  --wa-tick-blue: #53bdeb;
  --wa-input-bg: #f0f2f5;
  --wa-green-accent: #00a884;
}

/* Telefon Çerçevesi ve Konteynır */
.wa-mock-wrapper {
  width: 100%;
  max-width: 400px; /* Telefon genişliği */
  height: 600px; /* Telefon yüksekliği */
  margin: 0 auto;
  background-color: var(--wa-bg-color);
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-repeat: repeat;
  background-size: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

/* Üst Bar (Header) */
.wa-header {
  background-color: var(--wa-header-bg);
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wa-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ccc;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-name-col {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

.wa-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  height: 14px;
  overflow: hidden;
  display: block;
}

.wa-header-icons {
  display: flex;
  gap: 15px;
  font-size: 18px;
}

/* Sohbet Alanı */
.wa-chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-chat-container::-webkit-scrollbar {
  width: 5px;
}
.wa-chat-container::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* Gün Bilgisi ve Uyarılar */
.wa-day-badge {
  align-self: center;
  background-color: #e4eef3;
  color: #54656f;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  margin: 5px 0;
  text-transform: uppercase;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.wa-encryption-msg {
  align-self: center;
  background-color: #ffeecd;
  color: #54656f;
  font-size: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Mesaj Baloncukları */
.message-bubble {
  max-width: 80%;
  padding: 6px 8px;
  border-radius: 8px;
  position: relative;
  font-size: 14px;
  line-height: 19px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  opacity: 0; /* Animasyon için başlangıç */
  color: var(--wa-text-primary);
}

.message-sent {
  background-color: var(--wa-message-sent);
  align-self: flex-end;
  border-top-right-radius: 0;
  margin-right: 10px;
}
.message-sent::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-left: 10px solid var(--wa-message-sent);
  border-bottom: 10px solid transparent;
}

.message-received {
  background-color: var(--wa-message-received);
  align-self: flex-start;
  border-top-left-radius: 0;
  margin-left: 10px;
}
.message-received::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-right: 10px solid var(--wa-message-received);
  border-bottom: 10px solid transparent;
}

.msg-image-container {
  margin-bottom: 4px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f2f5;
}
.msg-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.msg-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 10px;
  color: var(--wa-text-secondary);
  margin-top: 2px;
  float: right;
}

.msg-check {
  margin-left: 3px;
  color: var(--wa-tick-blue);
  font-size: 10px;
}

/* Input Alanı */
.wa-input-area {
  background-color: var(--wa-input-bg);
  padding: 8px 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
}

.wa-input-wrapper {
  background-color: white;
  flex: 1;
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-end;
  min-height: 40px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.wa-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--wa-text-primary);
  margin: 0 10px;
  background: transparent;
}

.wa-input-icons {
  display: flex;
  gap: 10px;
  color: var(--wa-text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.wa-send-btn {
  background-color: var(--wa-green-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

/* CSS Animasyon Tanımları */
.send-btn-anim {
  transform: scale(0.8);
}

.fade-out-up {
  animation: fadeOutUp 1s forwards;
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}