/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .swiper-slide {
    direction: rtl;
}

[dir="rtl"] .mr-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Fix for stock card alignment in RTL */
[dir="rtl"] .swiper-slide .text-left {
    text-align: left;
}

[dir="rtl"] .swiper-slide .text-right {
    text-align: right;
}

[dir="rtl"] .justify-start {
    justify-content: flex-start;
}


/* for buttons for  the sahm and tradstation section*/
a:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* تعريف تأثير النبض للإستخدام مع Tailwind's animate-pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes chartGrow {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pathGrow {
  0% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes colorShift {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg);
  }
}

.animated-chart {
  animation: chartGrow 2s ease-out, pulse 3s ease-in-out infinite 2s;
  transform-origin: center;
  transition: all 0.3s ease;
}

.animated-chart:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.chart-segment-1 {
  animation: colorShift 4s ease-in-out infinite;
}

.chart-segment-2 {
  animation: colorShift 4s ease-in-out infinite 1s;
}

.chart-segment-3 {
  animation: colorShift 4s ease-in-out infinite 2s;
}