/* Floating Action Buttons */
.floating-action-buttons-custom {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.fab-options-custom {
  
}

.floating-action-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.fab-main {
  width: 60px;
  height: 60px;
  background: var(--color-one);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: var(--color-white);
  color: var(--color-one);
}

.fab-main i {
  font-size: 24px;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.fab-main:hover i {
  color: var(--color-one);
  transform: rotate(45deg);
}

.fab-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: 80px;
  right: 0;
}

.floating-action-buttons.active .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-option {
  width: 50px;
  height: 50px;
  background: var(--color-dark-one);
  border: 2px solid var(--color-dark-five);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-two);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.fab-option:hover {
  background: var(--color-one);
  color: var(--color-white);
  border-color: var(--color-one);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fab-option i {
  font-size: 18px;
  transition: all 0.3s ease;
}

.fab-option:hover i {
  transform: scale(1.1);
}

  .lightbox-close:hover .bi-x::before{
    color: #ffffff;
  }

/* Tooltip for fab options */
.fab-option::before {
  content: attr(title);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-dark-six);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.fab-option::after {
  content: '';
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-dark-six);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.fab-option:hover::before,
.fab-option:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Dark theme specific styles */
.theme-style--dark .fab-main {
  background: var(--color-one);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-style--dark .fab-main:hover {
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-style--dark .fab-option {
  background: #009688;
  border-color: var(--color-dark-five);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-style--dark .fab-option:hover {
  background: #ffffff;
  color: #6c1e24;
  border-color: var(--color-one);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Light theme specific styles */
.theme-style--light .fab-main {
  background: var(--color-one);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-style--light .fab-main:hover {
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.theme-style--light .fab-option {
  background: #009688;
  border-color: var(--color-dark-five);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-style--light .fab-option:hover {
  background: #ffffff;
  color: #6c1e24;
  border-color: var(--color-one);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-action-buttons {
    bottom: 20px;
    right: 20px;
  }
  .totop{
    bottom: 100px !important;
  }
  
  .fab-main {
    width: 55px;
    height: 55px;
  }
  
  .fab-main i {
    font-size: 22px;
  }
  
  .fab-option {
    width: 45px;
    height: 45px;
  }
  
  .fab-option i {
    font-size: 16px;
  }
  
  .fab-options {
    bottom: 70px;
    gap: 12px;
  }
  
  .fab-option::before {
    right: 55px;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .fab-option::after {
    right: 45px;
  }
}

/* Animation for smooth appearance */
@keyframes fabSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fab-option {
  animation: fabSlideIn 0.3s ease forwards;
}

.fab-option:nth-child(1) { animation-delay: 0.1s; }
.fab-option:nth-child(2) { animation-delay: 0.2s; }
.fab-option:nth-child(3) { animation-delay: 0.3s; }

/* Pulse animation for main button */
@keyframes fabPulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(var(--color-one-rgb), 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.fab-main {
  animation: fabPulse 2s infinite;
}

.floating-action-buttons.active .fab-main {
  animation: none;
}
