/* ============================================================
   DEALS AT RISK — slide 5, Sugar AI carousel
   Dashlet CSS commented out below for future reuse.
   Active: image background + cursor/popover overlay scene.
============================================================ */

/* Visual wrapper: #E8ECF0 stage, scene positioned relative to it */
.carousel__visual--dar {
  position: relative;
}

/* Background image fills the visual area */
.carousel__visual--dar img.dar-bg-img {
  object-position: center center;
}

/* ——— Cursor & popover scene ——— */

.dar-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.dar-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  will-change: transform, opacity;
}

/* ——— Popover (image-based, mirrors HVD pattern) ——— */
/* PNG natural size: 1052×426 — displayed at width 526 → height ~213px */
.dar-popover-img {
  position: absolute;
  top: 233px;
  left: 88px;
  width: 526px;
  height: auto;
  opacity: 0;
  border-radius: 12px;
  display: block;
  will-change: opacity, transform;
}

/* ——— Animations ——— */

.carousel__slide.is-active .dar-cursor {
  animation: dar-cursor 2200ms 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.carousel__slide.is-active .dar-popover-img {
  animation: dar-popover 2000ms 1700ms ease-out both;
}

@keyframes dar-cursor {
  0%        { opacity: 0; transform: translate(560px, 154px); }
  14%       { opacity: 1; transform: translate(560px, 154px); }
  45%       { opacity: 1; transform: translate(476px, 231px); }
  54%       { opacity: 1; transform: translate(476px, 231px) scale(0.82); }
  63%       { opacity: 1; transform: translate(476px, 231px) scale(1); }
  82%       { opacity: 1; transform: translate(476px, 231px); }
  100%      { opacity: 0; transform: translate(476px, 231px); }
}

@keyframes dar-popover {
  0%   { opacity: 0; transform: translateY(6px); }
  10%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}


/*
=================================================================
  DAR DASHLET — commented out, reuse later
=================================================================

.dar-dashlet {
  position: relative;
  width: 100%;
  height: 377px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.dar-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #EAECF0;
}

.dar-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #0D1B2A;
  display: block;
}

.dar-table {
  padding: 0 24px;
}

.dar-thead,
.dar-row {
  display: grid;
  grid-template-columns: 1fr 76px 110px 174px;
  align-items: center;
}

.dar-thead {
  padding: 10px 0 8px;
  border-bottom: 1px solid #EAECF0;
}

.dar-thead span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #A4A388;
}

.dar-row {
  height: 48px;
  border-bottom: 1px solid #F0F0EE;
}

.dar-row:last-child {
  border-bottom: none;
}

.dar-name {
  font-size: 14px;
  font-weight: 500;
  color: #0238C7;
  line-height: 24px;
}

.dar-value,
.dar-stage {
  font-size: 14px;
  font-weight: 400;
  color: #1B2938;
  line-height: 24px;
}

.dar-badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 34px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.dar-badge--red    { background: #FDE8E8; color: #C85F5F; }
.dar-badge--yellow { background: #FEF5CE; color: #9B7B2A; }
.dar-badge--blue   { background: #E0EFFF; color: #4A78C4; }

.carousel__slide.is-active .dar-badge--target {
  animation: dar-badge-stroke 1500ms 1680ms ease-out both;
}

@keyframes dar-badge-stroke {
  0%   { box-shadow: inset 0 0 0 1.5px transparent; }
  8%   { box-shadow: inset 0 0 0 1.5px #D48080; }
  100% { box-shadow: inset 0 0 0 1.5px #D48080; }
}

=================================================================
  END DAR DASHLET
=================================================================
*/
