/* KorraSystem Context Menu - reusable styles */
.ks-context-menu {
  position: fixed;
  z-index: 3000;
  min-width: 180px;
  max-width: 320px;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e5e7eb);
  border-radius: 0.6rem;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  backdrop-filter: saturate(120%) blur(4px);
}
.ks-context-menu.d-none {
  display: none !important;
}
.ks-context-menu__caption {
  padding: 0.4rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}
.ks-context-menu__list {
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
}
.ks-context-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  color: var(--bs-body-color, #0f172a);
  cursor: pointer;
  border-radius: 0.4rem;
  margin: 0 0.25rem;
}
.ks-context-menu__item:hover {
  background: color-mix(in srgb, var(--bs-body-bg, #fff) 80%, #fff 20%);
}
.ks-context-menu__item:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) inset;
}
.ks-context-menu__item i {
  opacity: 0.9;
}
.ks-context-menu__separator {
  height: 1px;
  background: var(--bs-border-color, #e5e7eb);
  margin: 0.25rem 0;
}
.ks-context-menu__item--danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Animations */
@keyframes ks-fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes ks-fade-out-scale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}
.ks-anim-in {
  animation: ks-fade-in-scale 0.12s ease-out both;
}
.ks-anim-out {
  animation: ks-fade-out-scale 0.1s ease-in both;
}
