/* Custom styles for MOVON Intelligent Platform admin console */
/* Tailwind utilities are loaded via CDN in index.html */

/* SVG icon spans: inline-flex so Tailwind h-/w- classes apply, SVG fills the span */
span:has(> svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
span > svg {
  display: block;
}

/* Splitpane divider styling */
.splitpane-divider {
  width: 6px;
  background: #e2e8f0;
  cursor: col-resize;
  flex-shrink: 0;
  position: relative;
}
.splitpane-divider:hover {
  background: #94a3b8;
}
.splitpane-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 24px;
  background: #94a3b8;
  border-radius: 1px;
}
.splitpane-divider:hover::before {
  background: #64748b;
}

/* Toast animations */
.toast-enter {
  transform: translateX(100%);
  opacity: 0;
}
.toast-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast-exit {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Chevron rotation for sidebar sub-menu */
.chevron-expanded {
  transform: rotate(180deg);
}

/* Loader spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
