.wa_background {
 border-radius: 0 0 12px 12px;
 background: #2a2a2a;
 height:13px;
}

#whatsapp-float {
  position: fixed;
  bottom: 10px;
  right: 45px;
  background: #25D366;
  color: #000;
  padding: 4px 20px;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
  z-index: 9;
}

#whatsapp-balloon {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 60px;
  background: #1e1e1e;
  width: 520px;
  max-width: 92vw;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
  z-index: 999;
}

.wa-header {
  background: #25D366;
  color: #000;
  padding: 16px 21px 0 21px;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
}

.wa-sub {
  padding: 6px 18px 18px 23px;
  margin: 0;
  background: #25D366;
  color: #000;
  font-size: 14px;
}

.wa-body {
  padding: 18px;
  background: #2a2a2a; /* or your preferred dark/light background */
  color: #f0f0f0;
  max-height: 520px;
  overflow-y: auto;
}

.wa-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.user-card {
  flex: 1 1 220px;
  width: 100%;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 14px 12px;
  transition: box-shadow .2s ease;
  position: relative;
  background: #2a2a2a;
  color: #ddd;
}

.user-card:hover {
  box-shadow: 0 6px 14px rgba(255,255,255,0.07);
}

.user-card.selected {
  box-shadow: 0 10px 22px rgba(255,255,255,0.12);
  border-color: #666;
}

.user-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 4px 0 10px 0;
}

.avatar {
  position: relative;
}

.wa-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(to right, #01b05f, #01b05f);
  color: #fff;
  width: 15px;
  height: 15px;
  display: flex;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 0;
}

.user-role {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

.user-name-badge {
  margin-top: 8px;
  background: #2a2a2a;
  color: #fff;
  border: 2px solid #555;
  border-radius: 18px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 15px;
}

.wa-footer {
  padding: 12px 18px 0 18px;
  background: #2a2a2a;
  color: #aaa;
  font-size: 13px;
  border-top: 1px solid #333;
}

#whatsapp-balloon:after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #1e1e1e;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.05));
}

.wa-compose {
  position: relative;
  padding: 8px 18px 10px 18px;
  background: #2a2a2a;
}

#whatsapp-text {
  width: 100%;
  height: 50px;
  border: none;
  background: #1e1e1e;
  color: #f0f0f0;
  border-radius: 10px;
  padding: 10px 54px 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: Raleway, Arial;
  letter-spacing: 1px;
  border: 1px solid #444;
}

#whatsapp-text::placeholder {
  color: #888;
}

#send-btn {
  position: absolute;
  right: 26px;
  top: 45%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: #000;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37,211,102,0.35);
}

#whatsapp-balloon {
  overflow: visible;
}

#whatsapp-balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1a1a1a;
}


@media screen and (max-width: 600px) {
  #whatsapp-balloon {
    right: 10px;
    bottom: 80px;
    width: 95vw;
    border-radius: 16px;
  }

  .wa-header {
    font-size: 18px;
    padding: 12px 16px;
  }

  .wa-sub {
    font-size: 13px;
    padding: 6px 16px 16px 16px;
  }

  .wa-body {
    padding: 12px;
    max-height: 320px;
  }

  .wa-grid {
    flex-direction: column;
    gap: 12px;
  }

  .user-card {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .user-card img {
    width: 100px;
    height: 100px;
  }

  .user-name-badge {
    font-size: 14px;
    padding: 4px 10px;
  }

  .wa-footer {
    font-size: 12px;
    padding: 10px 16px 0 16px;
  }

  .wa-compose {
    padding: 8px 16px 10px 16px;
  }

  #whatsapp-text {
    font-size: 13px;
    padding: 10px 50px 10px 12px;
  }

  #send-btn {
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media screen and (max-width: 950px) {
  .wa-body {
    padding: 14px;
    max-height: 420px;
  }
}