/* Common styling for floating buttons */
.floating-button {
  position: fixed;
  right: 27px;
  background-color: #007bff;
  color: #fff;
  padding: 10px 12px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  z-index: 9999;
  font-size: 20px;
  line-height: 1;
}

.floating-button:hover {
  background-color: #0056b3;
  color: #fff;
  cursor: pointer;
}

/* Positioning individual buttons */
.floating-signin-button {
  bottom: 145px;
  background-color: #ff602e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.floating-signin-button:hover {
  background-color: #e65225ff;
  color: #fff;
  cursor: pointer;
}

.floating-email-button {
  bottom: 20px;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 14px;
}

.floating-dashboard {
    position: fixed;
    bottom: 145px;
    right: 27px;
    z-index: 9999;
}

/* Main dashboard button */
.dashboard-btn {
    background-color: #ff602e;;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    cursor: pointer;
    transition: background 0.3s;
}

/* Icons toggle */
.dashboard-btn .icon-home { display: inline; }
.dashboard-btn .icon-close { display: none; }

.floating-dashboard.open .icon-home { display: none; }
.floating-dashboard.open .icon-close { display: inline; }

/* Popup */
.dashboard-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Fade up */
.floating-dashboard.open .dashboard-popup {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Menu items */
.popup-menu a {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.popup-menu a i {
    margin-right: 10px;
    color: #ff602e;;
}

.popup-menu a:hover {
    background: #f5f5f5;
}