* {
  font-family: "Poppins", sans-serif;
}

/* Hilangkan ikon bawaan browser (Chrome, Edge, Safari) */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-credentials-auto-fill-button,
input::-webkit-clear-button,
input::-webkit-textfield-decoration-container,
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  display: none !important;
}

/* Untuk Safari & Chrome */
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
}

/* Search Icon Positioning Fix */
.search-icon {
  position: absolute !important;
  left: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

/* Menu Item Styling */
.menu-item {
  position: relative;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: transparent;
}

/* Notification Dropdown Fix */
[data-notif-dropdown] {
  max-width: 16rem;
  min-width: 16rem;
}

/* Prevent dropdown from causing layout issues */
.relative.inline-block {
  overflow: visible;
}

/* Avatar Dropdown Styling */
[data-avatar-dropdown] {
  max-width: 12rem;
  min-width: 12rem;
}

/* Ensure proper z-index for dropdowns */
[data-avatar-dropdown],
[data-notif-dropdown] {
  z-index: 9999 !important;
}

.menu-item.active {
  background: linear-gradient(to right, #ffcd29, transparent);
  border: 1px solid transparent;
}

.menu-item.active .menu-icon {
  filter: brightness(0) invert(1);
  /* White icon */
}

.menu-item:not(.active) .menu-icon {
  color: #ffcd29;
}

.menu-item:not(.active):hover {
  background: transparent !important;
  border: 1px solid #ffcd29 !important;
  border-radius: 8px;
}

.menu-item:not(.active):hover .menu-icon {
  filter: brightness(0) invert(1);
  /* White icon on hover */
}

#statusLogContent {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

#statusLogContent::-webkit-scrollbar {
  width: 6px;
}

#statusLogContent::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 10px;
}

#statusLogContent::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

#statusLogContent::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

  #hseConfirmModal {
    background-color: rgba(0, 0, 0, 0.6) !important;
  }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.animate-reveal-up {
  animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

/* Staggered Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

@keyframes titleGlitch {
  0% {
    opacity: 0;
    transform: translateY(20px) translateX(-2px);
    text-shadow: 2px 0px 0px rgba(34, 211, 238, 0.6), -2px 0px 0px rgba(232, 121, 249, 0.6);
    filter: blur(2px);
  }
  40% {
    opacity: 1;
    transform: translateY(0) translateX(2px);
    text-shadow: -2px 0px 0px rgba(34, 211, 238, 0.6), 2px 0px 0px rgba(232, 121, 249, 0.6);
    filter: blur(0);
  }
  60% {
    transform: translateX(-1px);
    text-shadow: 1px 0px 0px rgba(34, 211, 238, 0.4), -1px 0px 0px rgba(232, 121, 249, 0.4);
  }
  80% {
    transform: translateX(1px);
    text-shadow: none;
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
    text-shadow: none;
  }
}

.animate-glitch {
  animation: titleGlitch 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
