/* MyMale Modern Dark Styling */

/* Custom Smooth Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.35);
}

/* Mailbox Item Active State */
.mailbox-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.08));
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 15px -3px rgba(99, 102, 241, 0.2);
}

/* Email Item Active State */
.email-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(20, 23, 34, 0.95));
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.18);
}

/* Flash Glow for Incoming Emails */
@keyframes highlightNewEmail {
  0% {
    background-color: rgba(99, 102, 241, 0.35);
    transform: scale(1.02);
  }

  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

.flash-new-item {
  animation: highlightNewEmail 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating OTP Banner Animations */
.show-floating-otp {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Toast Animation */
.toast {
  transform: translateY(1.5rem) scale(0.95);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Button Ripple & Active state */
button:active {
  transform: scale(0.97);
}

/* Iframe Sandboxed Styling */
#htmlPreviewIframe {
  transition: opacity 0.2s ease;
}