/* Floating Button Styles */

.dha-floating-button {
  position: fixed;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 9998;
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 48px;
  white-space: nowrap;
}

.dha-floating-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 123, 255, 0.5);
}

.dha-floating-button:active {
  transform: translateY(-1px);
}

.dha-button-icon {
  font-size: 20px;
  line-height: 1;
}

.dha-button-text {
  display: inline;
}

/* Positions */
.dha-floating-button.dha-position-bottom-right {
  bottom: 24px;
  right: 24px;
}

.dha-floating-button.dha-position-bottom-left {
  bottom: 24px;
  left: 24px;
}

/* Mobile */
.dha-floating-button {
  display: none;
}

.dha-floating-button.dha-show-mobile {
  display: flex;
}

/* Avoid Admin Bar */
@media screen and (max-width: 782px) {
  .dha-floating-button {
    bottom: 16px;
    right: 16px;
  }

  .dha-floating-button.dha-position-bottom-left {
    left: 16px;
  }

  .dha-button-text {
    display: none;
  }

  .dha-floating-button {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}

@media screen and (min-width: 783px) {
  .dha-floating-button.dha-show-mobile {
    display: none;
  }

  body.admin-bar .dha-floating-button.dha-position-bottom-right {
    bottom: 24px;
    right: 24px;
  }
}

/* Accessibility */
.dha-floating-button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dha-floating-button {
    transition: none;
  }

  .dha-floating-button:hover {
    transform: none;
  }
}
