/* SobiDesk Motion & Neon Effects */
@media (prefers-reduced-motion: no-preference) {

  /* کارت‌های KPI */
  .ops-card {
    transition: transform .2s cubic-bezier(.2,.8,.2,1),
                box-shadow .2s cubic-bezier(.2,.8,.2,1),
                border-color .2s;
  }
  .ops-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108,99,255,.18);
    border-color: rgba(108,99,255,.35);
  }

  /* آیتم‌های سایدبار */
  #sidebar .nav-item {
    transition: background .15s, color .15s, padding-inline-start .15s;
  }
  #sidebar .nav-item:hover {
    padding-inline-start: 14px;
  }

  /* ورود صفحه‌ها */
  #main > * {
    animation: fadeSlideUp .25s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* دکمه‌ها */
  .btn-primary, .btn-accent {
    transition: transform .15s, box-shadow .15s;
  }
  .btn-primary:hover, .btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(108,99,255,.35);
  }
  .btn-primary:active, .btn-accent:active {
    transform: translateY(0);
  }

  /* نمودار — ورود تدریجی */
  .chart-bar, .chart-line {
    animation: growIn .5s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes growIn {
    from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    to   { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  }
}

/* Neon glow برای accent elements — در هر دو تم */
.neon-accent {
  box-shadow: 0 0 12px rgba(108,99,255,.4), 0 0 24px rgba(108,99,255,.15);
}
.neon-ok {
  box-shadow: 0 0 10px rgba(52,211,153,.35);
}
.neon-warn {
  box-shadow: 0 0 10px rgba(251,191,36,.35);
}
.neon-danger {
  box-shadow: 0 0 10px rgba(248,113,113,.35);
}

/* Badge‌های نئون‌دار در تم تیره */
:root:not(.light):not(.mixed) .ops-card-value {
  text-shadow: 0 0 20px rgba(108,99,255,.3);
}

/* Pulse برای آیتم‌های مهم */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,.0); }
  50%       { box-shadow: 0 0 0 4px rgba(108,99,255,.15); }
}
.pulse-item {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Progress bars انیمیشن */
.progress-fill {
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

/* Active state آیتم سایدبار */
#sidebar .nav-item.active {
  position: relative;
}
#sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(108,99,255,.5);
}

/* تم روشن — neon ملایم‌تر */
.light .ops-card:hover {
  box-shadow: 0 6px 20px rgba(91,82,232,.12);
}
.light #sidebar .nav-item.active::before {
  box-shadow: 0 0 6px rgba(91,82,232,.3);
}
