/* Widget container */
.whatsapp-widget {
  position: fixed;
  bottom: 65px;
  right: 13px;
  z-index: 999999;
  font-family: Arial, sans-serif;
  animation: fadeInUp 1s ease forwards;
}

/* Buton */
.whatsapp-button {
  width: 45px;
  height: 45px;
  background-color: #25D366;
  border-radius: 12px; /* pătrat cu colțuri rotunjite */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}


.whatsapp-button:hover {
  transform: scale(1.05);
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
  transition: transform 0.4s;
}

.whatsapp-button.open img {
  transform: rotate(90deg);
}

/* Meniu */
.whatsapp-menu {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2147483647; /* la fel ca widget-ul */
}

.whatsapp-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.whatsapp-header {
  padding: 15px 18px;
  background: #25D366;
  color: #fff;
  text-align: center;
}

.whatsapp-header p {
  margin-top: 6px;
  font-size: 14px;
}

/* Listă */
.whatsapp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whatsapp-list li {
  border-bottom: 1px solid #eee;
}

.whatsapp-list li:last-child {
  border-bottom: none;
}

.whatsapp-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, transform 0.3s;
}

.whatsapp-list a:hover {
  background: #f1f1f1;
  transform: translateX(5px);
}

.whatsapp-list img {
  width: 28px;
  height: 28px;
}

/* Nume + functie */
.whatsapp-contact {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.whatsapp-contact .name {
  font-weight: 600;
  font-size: 15px;
}

.whatsapp-contact .role {
  font-size: 12px;
  color: #666;
}

/* Animatie */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
