/* ==========================================================================
   Hijriy Taqvim — Maxsus stillar va animatsiyalar
   ========================================================================== */

:root {
  --pattern-stroke-dark: rgba(16, 185, 129, 0.14);
  --pattern-stroke-light: rgba(5, 150, 105, 0.09);
  --scrollbar-thumb: rgba(16, 185, 129, 0.25);
  --scrollbar-thumb-hover: rgba(16, 185, 129, 0.45);
}

/* Islomiy 8 qirrali geometrik fon naqshi */
.islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2310b981' stroke-width='0.6' stroke-opacity='0.14'%3E%3Cpath d='M40 0L52 28L80 40L52 52L40 80L28 52L0 40L28 28Z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M0 0L28 28M80 0L52 28M0 80L28 52M80 80L52 52'/%3E%3C/g%3E%3C/svg%3E");
}

html:not(.dark) .islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23059669' stroke-width='0.6' stroke-opacity='0.09'%3E%3Cpath d='M40 0L52 28L80 40L52 52L40 80L28 52L0 40L28 28Z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M0 0L28 28M80 0L52 28M0 80L28 52M80 80L52 52'/%3E%3C/g%3E%3C/svg%3E");
}

/* Glassmorphism kartochkalar */
.glass-card {
  background: linear-gradient(145deg, rgba(14, 30, 36, 0.78), rgba(7, 17, 21, 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(52, 211, 153, 0.14);
  box-shadow:
    0 20px 50px -20px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html:not(.dark) .glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 249, 0.94));
  border: 1px solid rgba(16, 185, 129, 0.16);
  box-shadow:
    0 18px 45px -20px rgba(6, 78, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Arabcha matn uchun oltin shimmer effekti */
.gold-shimmer-text {
  background: linear-gradient(90deg, #fde68a 0%, #fbbf24 35%, #fef3c7 50%, #f59e0b 70%, #fde68a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

html:not(.dark) .gold-shimmer-text {
  background: linear-gradient(90deg, #b45309 0%, #d97706 40%, #059669 75%, #b45309 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark rejimda date picker ikonkasini moslashtirish */
.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.25) saturate(2.5) hue-rotate(110deg);
  cursor: pointer;
}

/* Animatsiya kechikish klasslari (inline style o'rniga) */
.anim-delay-1 { animation-delay: 80ms; }
.anim-delay-2 { animation-delay: 140ms; }
.anim-delay-3 { animation-delay: 180ms; }
.anim-delay-4 { animation-delay: 220ms; }
.anim-delay-5 { animation-delay: 260ms; }

/* Natija yangilangandagi pop-in effekti */
.result-animate {
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Nafis scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
