/** wa daftar */
#layar-wa-daftar .header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 14px 8px 14px;
  color: white;
}

#layar-wa-daftar .header-bar svg {
  width: 22px;
  height: 22px;
}

#layar-wa-daftar .titik-tiga {
  margin-right: auto;
  color: white;
  font-size: 20px;
}

#layar-wa-daftar h1 {
  font-size: 25px;
  padding: 0 10px 10px 10px;
  margin: 0;
  color: white;
}

#layar-wa-daftar .meta {
  display: flex;
  padding: 0 10px;
}

#layar-wa-daftar .meta p {
  flex: 1;
  margin: 0;
  height: 30px;
  border-radius: 12px;
  background-color: rgba(59, 59, 59, 0.55);
  color: #777;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

#layar-wa-daftar .read {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  flex-shrink: 0;
}

#layar-wa-daftar .read::-webkit-scrollbar {
  display: none;
}

#layar-wa-daftar .chip {
  flex-shrink: 0;
  padding: 6px 8px;
  border: 1px solid #242626;
  border-radius: 20px;
  background-color: #131313;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

#layar-wa-daftar .chip small {
  color: #888;
  font-size: 14px;
}

#layar-wa-daftar .chip.aktif {
  background-color: #21c063;
  border-color: #144d37;
  color: white;
}

#layar-wa-daftar .chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#layar-wa-daftar .chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
}

#layar-wa-daftar .chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#layar-wa-daftar .chat-isi {
  flex: 1;
  min-width: 0;
  border-top: 1px solid #242626;
  padding: 10px 0 15px 0;
}

#layar-wa-daftar .chat-atas,
#layar-wa-daftar .chat-bawah {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#layar-wa-daftar .chat-nama {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

#layar-wa-daftar .chat-waktu {
  font-size: 14px;
  color: #888;
}

#layar-wa-daftar .chat-pesan {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#layar-wa-daftar .chat-badge {
  flex-shrink: 0;
  min-width: 8px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: #21c063;
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/** wa tab bar */
.wa-tab-bar {
  display: flex;
  justify-content: space-around;
  flex-shrink: 0;
  padding: 8px 8px 30px;
  background: #131313;
  border-top: 1px solid #242626;
}

.wa-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: #888;
  cursor: pointer;
}

.wa-tab-ikon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
  border-radius: 15px;
}

.wa-tab-ikon svg {
  width: 22px;
  height: 22px;
}

.wa-tab-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-tab-item.aktif .wa-tab-ikon {
  background: #21c063;
  color: #fff;
}

.wa-tab-item.aktif .wa-tab-label {
  color: #fff;
}

/** wa calls */
#layar-wa-calls {
  color: #fff;
}

.wc-atas {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px 0;
}

.wc-bulat {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #262626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wc-bulat.kecil {
  width: 25px;
  height: 25px;
}

.wc-bulat.hijau {
  background: #21c063;
}

.wc-bulat.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-judul {
  margin: 15px 0 0;
  padding: 4px 14px 10px;
  font-size: 28px;
}

.wc-aksi {
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  color: #999;
}

.wc-aksi div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wc-sub {
  padding: 18px 14px 6px;
  font-size: 18px;
  font-weight: 700;
}

.wc-daftar {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wc-daftar::-webkit-scrollbar {
  display: none;
}

.wc-baris {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}

.wc-baris > img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.wc-isi {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wc-nama {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.wc-ket {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #999;
}

.wc-ket .ik {
  width: 14px;
  height: 14px;
}

.wc-kanan {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #999;
}

.wc-baris.merah .wc-nama b {
  color: #ff4d5e;
}

/** wa chat */
#layar-wa-chat {
  --bubble-masuk: #242626;
  --bubble-keluar: #144d37;
  --teks-terang: #e9edef;
  --teks-redup: #8696a0;
  padding-top: 0;
  background: #000 url("../gambar/wallpaper_chat.jpg") center / cover no-repeat;
}

#layar-wa-chat p {
  margin: 0;
  font-size: 14px;
  color: white;
  padding: 1px;
}

#layar-wa-chat .header { 
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 44px 10px 6px;
  background: #131313;
}

#layar-wa-chat .header svg {
  width: 25px;
  height: 25px;
  display: block;
}

#layar-wa-chat .aksi {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#layar-wa-chat .ikon {
  display: flex;
  align-items: center;
  width: 30px;
  height: 30px;
  color: white;
}

#layar-wa-chat .aksi .ikon:last-child svg {
  width: 16px;
  height: 16px;
}

#layar-wa-chat .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

#layar-wa-chat .info {
  flex: 1;
}

#layar-wa-chat .nama {
  font-weight: bold;
  font-size: 15px;
  color: white;
}

#layar-wa-chat .status {
  font-size: 12px;
  color: rgb(120, 119, 119);
}

#areachat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
}

#areachat::-webkit-scrollbar {
  display: none;
}

#areachat .tanggal {
  align-self: center;
  background: #242626;
  color: var(--teks-terang);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 12px;
  margin: 5px 0;
}

/** wa bubble */
#areachat .pesan {
  position: relative;
  display: flow-root;
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 14px;
  color: var(--teks-terang);
}

#areachat .pesan p {
  display: inline;
  margin: 0;
  line-height: 1;
}

#areachat .masuk {
  background: var(--bubble-masuk);
  align-self: flex-start;
}

#areachat .keluar {
  background: var(--bubble-keluar);
  align-self: flex-end;
}

#areachat .masuk + .keluar,
#areachat .keluar + .masuk {
  margin-top: 10px;
}

#areachat .masuk:not(:has(+ .masuk)) { 
  border-bottom-left-radius: 0;
}

#areachat .keluar:not(:has(+ .keluar)) {
  border-bottom-right-radius: 0;
}

#areachat .waktu {
  float: right;
  font-size: 10px;
  opacity: .7;
  white-space: nowrap;
  margin: 10px 0 0 8px;
  color: white;
}

#areachat .pesan.gambar {
  padding: 4px;
}

#areachat .pesan.gambar img {
  display: block;
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
}

#areachat .pesan.gambar .waktu {
  position: absolute;
  right: 10px;
  bottom: 10px;
  float: none;
  padding: 2px 6px;
  font-size: 11px;
  opacity: .7;
}

#areachat .pesan + .pesan {
  margin-top: 3px;
}

#areachat .keluar + .masuk {
  margin-top: 5px;
}

#areachat .pesan.mengetik {
  display: flex;
  gap: 4px;
  padding: 5px 5px;
}

#areachat .pesan.mengetik span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teks-redup);
  animation: lompat 1s infinite;
}

#areachat .pesan.mengetik span:nth-child(2) {
  animation-delay: .15s;
}

#areachat .pesan.mengetik span:nth-child(3) {
  animation-delay: .3s;
}

/** input wa */
#layar-wa-chat .kirim {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  padding: 5px 0px 10px 0px;
  background: #131313;
  justify-content: center;
}

#layar-wa-chat .kirim input[type="text"] {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  border-radius: 10px;
  font-size: 16px; 
  background: #242626;
  color: white;
}

#layar-wa-chat .kirim {
  justify-content: flex-start;
}

#layar-wa-chat .kirim .kirim {
  flex: 1;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  gap: 8px;
}

#layar-wa-chat #kolomPesan {
  flex: 1;
  min-width: 0;
}

#layar-wa-chat .kirim input::placeholder {
  color: var(--teks-redup);
}

#layar-wa-chat .kirim button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #21c063;
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#layar-wa-chat .kirim button svg {
  width: 18px;
  height: 18px;
}

#layar-wa-chat .zona-kembali { 
  position: absolute;
  top: 100px;
  bottom: 90px;
  left: 0;
  width: 24px;
  z-index: 10;
  touch-action: none;
}

/** sticker */
#areachat .pesan.stiker {
  background: none;
  padding: 0;
}

#areachat .pesan.stiker img {
  display: block;
  width: 130px;
  max-width: 100%;
}

#areachat .pesan.stiker .waktu {
  position: absolute;
  right: 4px;
  bottom: 4px;
  float: none;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  font-size: 11px;
  opacity: 1;
}

#layar-wa-chat .ke-bawah {
  position: absolute;
  right: 14px;
  bottom: 86px;
  z-index: 5;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1f2c34;
  color: #aebac1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

#layar-wa-chat .ke-bawah.tampil {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#layar-wa-chat .ke-bawah svg {
  width: 22px;
  height: 22px;
}

#areachat .pesan p {
  overflow-wrap: anywhere;
}

#areachat .pesan a.tautan {
  color: #53bdeb;
  text-decoration: none;
}