@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --bg-primary: #faf9f7;
  --bg-secondary: #f5f3ef;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.6);
  --accent-gold: #d4a574;
  --accent-gold-light: #e8c9a8;
  --accent-emerald: #2d8a6e;
  --accent-rose: #c97b84;
  --accent-sapphire: #4a6fa5;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --shadow-luxury: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  /* overflow-x:hidden moved to #scroll-wrapper — keeps body as real containing block for position:fixed */
}

/* ── SweetAlert2 — always centered, always above nav ── */
.swal2-container {
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
}

.swal2-popup {
  border-radius: 24px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  max-width: 400px !important;
  width: 100% !important;
  /* Ensure it's never off-center */
  margin: auto !important;
  position: relative !important;
  transform: none !important;
}

.swal2-title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}

.swal2-confirm {
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  padding: 10px 24px !important;
}

.swal2-cancel {
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  padding: 10px 24px !important;
}

/* Animated Background */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(212, 165, 116, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(45, 138, 110, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(201, 123, 132, 0.04) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatOrb 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-gold);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-emerald);
  bottom: 20%;
  left: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-rose);
  bottom: -50px;
  right: 20%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow-luxury);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-luxury), var(--shadow-glow);
}

.glass-card-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

/* Premium Typography */
.text-gradient-gold {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    #b8956a 50%,
    var(--accent-gold-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #3da87f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Streak Fire Animation */
.streak-fire {
  color: #ff6b35;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
  animation: firePulse 1.5s ease-in-out infinite;
}

@keyframes firePulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.15);
    filter: brightness(1.2);
  }
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a6c 100%);
  color: white;
  padding: 18px 32px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
}

/* Navigation */
.nav-container {
  background: var(--glass-strong);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: var(--shadow-luxury);
}

.nav-item {
  position: relative;
  padding: 12px 20px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: var(--text-muted);
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-gold-light) 100%
  );
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-item.active {
  color: white;
  transform: scale(1.05);
}

.nav-item.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-item:not(.active):hover {
  color: var(--text-primary);
  background: rgba(212, 165, 116, 0.1);
}

/* Clock Display */
.clock-display {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(
    180deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Luxury Clock Card */
.luxury-clock-card {
  position: relative;
  text-align: center;
}

.luxury-clock-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--accent-gold),
    var(--accent-rose),
    var(--accent-emerald),
    var(--accent-gold)
  );
  background-size: 300% 300%;
  border-radius: 28px;
  opacity: 0.3;
  filter: blur(10px);
  animation: gradientRotate 8s ease infinite;
  z-index: -1;
}

@keyframes gradientRotate {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-gradient-shift {
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-x {
  background-size: 200% auto;
  animation: gradient-x 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Money Balance Card */
.money-balance-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.money-balance-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Prayer Card */
.prayer-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    var(--accent-emerald),
    var(--accent-rose)
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.prayer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-emerald) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.prayer-card:hover::before {
  opacity: 1;
}

.prayer-card.next-prayer {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a6c 100%);
  color: white;
  transform: scale(1.05);
  box-shadow:
    0 20px 50px rgba(212, 165, 116, 0.4),
    0 0 40px rgba(212, 165, 116, 0.2);
  animation: prayerPulse 2s ease-in-out infinite;
}

@keyframes prayerPulse {
  0%,
  100% {
    box-shadow:
      0 20px 50px rgba(212, 165, 116, 0.4),
      0 0 40px rgba(212, 165, 116, 0.2);
  }
  50% {
    box-shadow:
      0 25px 60px rgba(212, 165, 116, 0.5),
      0 0 50px rgba(212, 165, 116, 0.3);
  }
}

.prayer-card.next-prayer .prayer-label {
  color: rgba(255, 255, 255, 0.9);
}

.prayer-card.next-prayer::before {
  opacity: 0;
}

.prayer-card:hover:not(.next-prayer) {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    var(--shadow-luxury),
    0 0 30px rgba(212, 165, 116, 0.15);
}

/* Streak Card Styles */
.streak-circle-container {
  position: relative;
  display: inline-block;
}

.streak-circle-svg {
  transform: rotate(-90deg);
}

#streak-number {
  position: relative;
  display: inline-block;
}

#streak-number.fire-active {
  animation: fireNumber 1.5s ease-in-out infinite;
  text-shadow:
    0 0 20px rgba(255, 107, 53, 0.8),
    0 0 40px rgba(255, 107, 53, 0.6),
    0 0 60px rgba(255, 107, 53, 0.4);
}

@keyframes fireNumber {
  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.2);
  }
  50% {
    transform: scale(1.1) translateY(-4px);
    filter: brightness(1.3);
  }
  75% {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.2);
  }
}

/* Fire Particles */
.fire-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    #ff6b35 0%,
    #f7931e 50%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: fireFloat 2s ease-in-out infinite;
}

@keyframes fireFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-30px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.5);
  }
}

/* Mood Selector Buttons */
.mood-selector-btn {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mood-selector-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-rose));
  opacity: 0;
  transition: opacity 0.3s;
}

.mood-selector-btn:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.mood-selector-btn:hover::before {
  opacity: 0.1;
}

.mood-selector-btn.selected {
  border-color: var(--accent-gold);
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.2),
    rgba(201, 123, 132, 0.2)
  );
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.mood-selector-btn span {
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.mood-selector-btn:active span {
  transform: scale(0.9);
}

/* Streak Absen Button */
.streak-absen-btn {
  position: relative;
  overflow: hidden;
}

.streak-absen-btn.completed {
  background: linear-gradient(135deg, var(--accent-emerald), #3da87f);
  pointer-events: none;
}

.streak-absen-btn.completed::after {
  content: "✓";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: bold;
}

/* Notification List Item */
.notification-item {
  background: var(--glass);
  border-radius: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-gold);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  align-items: start;
  gap: 12px;
}

.notification-item:hover {
  transform: translateX(4px);
  background: var(--glass-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-item.unread {
  border-left-color: var(--accent-rose);
  background: linear-gradient(90deg, rgba(201, 123, 132, 0.1), var(--glass));
}

.notification-item .notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.notification-item .notification-content {
  flex: 1;
}

.notification-item .notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notification-item .notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-item .notification-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notification-item .notification-close {
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  color: var(--text-muted);
}

.notification-item:hover .notification-close {
  opacity: 1;
}

/* Progress Ring */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tasbih Button */
.tasbih-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-emerald), #3da87f);
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 20px 40px rgba(45, 138, 110, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tasbih-btn::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 100%
  );
  border-radius: 50%;
}

.tasbih-btn:active {
  transform: scale(0.95);
  box-shadow:
    0 10px 20px rgba(45, 138, 110, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Badge/Achievement */
.achievement-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  transition: all 0.4s;
}

.achievement-badge.locked {
  background: linear-gradient(145deg, #e0ddd8, #d0cdc8);
  color: #a0a0a0;
  filter: grayscale(1);
}

.achievement-badge.unlocked {
  background: linear-gradient(145deg, var(--accent-gold), #c49a6c);
  color: white;
  box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
  }
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 200px;
}

/* Target Checkbox */
.target-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-checkbox.checked {
  background: var(--accent-gold);
  color: white;
}

.target-checkbox.checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Counter Animation */
.counter-animate {
  display: inline-block;
  animation: countPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes countPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Custom SweetAlert2 Styles */
.swal2-popup.glass-card {
  background: var(--glass-strong) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 32px !important;
  box-shadow: var(--shadow-luxury) !important;
  color: var(--text-primary) !important;
}

.swal2-title.sweet-alert-title {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.swal2-html-container.sweet-alert-html {
  color: var(--text-secondary) !important;
}

/* Input Styles */
.input-luxury {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.3s;
}

.input-luxury:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.input-luxury::placeholder {
  color: var(--text-muted);
}

/* Calendar */
.calendar-day {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.calendar-day.fasting {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a6c 100%);
  color: white;
}

.calendar-day.today {
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.calendar-day:hover {
  background: rgba(212, 165, 116, 0.15);
}

/* Tab Pills */
.tab-pill {
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
}

.tab-pill.active {
  background: var(--accent-gold);
  color: white;
}

.tab-pill:not(.active):hover {
  background: rgba(212, 165, 116, 0.1);
  color: var(--text-primary);
}

/* Hidden Section */
.hidden-section {
  display: none;
}

/* Journal Entry */
.journal-entry {
  background: var(--glass);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.journal-entry:hover {
  transform: translateX(4px);
  border-left: 3px solid var(--accent-gold);
}

/* Water Tracker */
.water-drop {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #87ceeb 0%, #4a90a5 100%);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.3;
}

.water-drop.filled {
  opacity: 1;
  box-shadow: 0 4px 15px rgba(74, 144, 165, 0.3);
}

.water-drop:hover {
  transform: scale(1.1);
}

/* Quote Card */
.quote-card {
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.1) 0%,
    rgba(45, 138, 110, 0.05) 100%
  );
  border-radius: 24px;
  padding: 24px;
  border-left: 4px solid var(--accent-gold);
}

/* Pulse dot */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass) 25%,
    var(--glass-strong) 50%,
    var(--glass) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 16px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 120px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), #3da87f);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(45, 138, 110, 0.3);
  z-index: 40;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
}

/* Dark Mode */
html.dark-mode {
  --bg-primary: #1a1a2e;
  --bg-secondary: #21213c;
  --glass: rgba(0, 0, 0, 0.4);
  --glass-strong: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-gold: #e8c9a8;
  --accent-gold-light: #d4a574;
  --accent-emerald: #47b28a;
  --accent-rose: #e0949d;
  --accent-sapphire: #6a95cc;
  --text-primary: #f0f0f5;
  --text-secondary: #c0c0c0;
  --text-muted: #808090;
  --shadow-luxury: 0 15px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(232, 201, 168, 0.15);
}

html.dark-mode .bg-pattern {
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(232, 201, 168, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(71, 178, 138, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(224, 148, 157, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

html.dark-mode .floating-orb {
  filter: blur(80px);
  opacity: 0.5;
}

html.dark-mode .clock-display {
  background: linear-gradient(
    180deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark-mode .pulse-dot {
  background: var(--accent-gold);
  animation: pulseDotDark 2s ease-in-out infinite;
}

@keyframes pulseDotDark {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

html.dark-mode .toast {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html.dark-mode .swal2-popup.glass-card {
  background: var(--glass-strong) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Particle container */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* NEW: Prayer Notification */
.prayer-notification-container {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 450px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-luxury);
  display: flex;
  align-items: center;
  padding: 16px;
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.prayer-notification-container.show {
  top: 20px;
}
.prayer-notification-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  font-weight: 600;
  color: var(--text-primary);
}
.prayer-notification-content i {
  margin-right: 12px;
  font-size: 20px;
  color: var(--accent-gold);
  animation: bellRing 2s ease-in-out infinite;
}
.prayer-notification-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 8px;
}

@keyframes bellRing {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  5%,
  15%,
  25%,
  35%,
  45% {
    transform: rotate(15deg);
  }
  10%,
  20%,
  30%,
  40% {
    transform: rotate(-15deg);
  }
}

/* NEW: Qibla Compass */
.qibla-compass-container {
  width: 220px;
  height: 220px;
  position: relative;
}
.compass-dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.05),
    var(--shadow-luxury);
  position: relative;
  transition: transform 0.5s ease-out;
}
.compass-rose {
  width: 100%;
  height: 100%;
  background-image: url("https://i.imgur.com/c8LIbH2.png"); /* Simple compass rose */
  background-size: cover;
  opacity: 0.1;
  position: absolute;
}
.compass-arrow-north {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 16px solid var(--accent-rose);
}
.qibla-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qibla-indicator-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  color: white;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 20px rgba(212, 165, 116, 0.5);
  animation: qiblaGlow 2s infinite;
}
.qibla-indicator.aligned .qibla-indicator-icon {
  background: var(--accent-emerald);
  box-shadow: 0 5px 30px rgba(45, 138, 110, 0.6);
}

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

/* NEW: Article Card */
.article-card {
  display: flex;
  gap: 16px;
  background: var(--glass);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.article-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}
.article-image {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-content h4 {
  font-weight: 700;
  margin-bottom: 4px;
}
.article-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* NEW: Daily Plan Item */
.daily-plan-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}
.daily-plan-item.completed {
  opacity: 0.5;
}
.daily-plan-time {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold);
  width: 60px;
}
.daily-plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
}
.daily-plan-title {
  font-weight: 600;
  color: var(--text-primary);
}
.daily-plan-item.completed .daily-plan-title {
  text-decoration: line-through;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: var(--shadow-luxury);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  min-width: 250px;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  font-size: 20px;
}

.toast span {
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .clock-display {
    font-size: 28px;
    letter-spacing: -2px;
  }

  h1 {
    font-size: 20px;
  }

  .glass-card {
    border-radius: 20px;
  }

  .modal-content {
    padding: 24px;
    border-radius: 24px;
  }

  .nav-container {
    width: 95%;
    padding: 8px;
  }

  .nav-item {
    padding: 10px 12px;
  }

  .nav-item span {
    font-size: 9px;
  }

  .fab {
    bottom: 100px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .tasbih-btn {
    width: 140px;
    height: 140px;
    font-size: 24px;
  }

  .achievement-badge {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .prayer-card {
    padding: 16px;
  }

  .article-image {
    width: 70px;
    height: 70px;
  }

  .qibla-compass-container {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .clock-display {
    font-size: 40px;
    letter-spacing: -1px;
  }

  h1 {
    font-size: 20px;
  }

  .glass-card {
    padding: 16px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 13px;
  }

  .calendar-day {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .water-drop {
    width: 38px;
    height: 38px;
  }
}

/* Utility Classes */
.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold-light) transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-gold-light);
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Smooth Transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--accent-gold);
  color: white;
}

::-moz-selection {
  background: var(--accent-gold);
  color: white;
}

/* Custom Prayer Card Text Styles */
.prayer-name-text,
.prayer-time-text {
  color: #000000; /* Explicitly black */
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(255, 255, 255, 0.3);
  animation: textGlow 2s ease-in-out infinite alternate;
}

/* Ensure white text for the next prayer card */
.prayer-card.next-prayer .prayer-name-text,
.prayer-card.next-prayer .prayer-time-text {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Lighter shadow for white text */
  animation: textGlowWhite 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow:
      1px 1px 2px rgba(0, 0, 0, 0.2),
      0 0 5px rgba(255, 255, 255, 0.2);
  }
  100% {
    text-shadow:
      1px 1px 3px rgba(0, 0, 0, 0.4),
      0 0 15px rgba(255, 255, 255, 0.4);
  }
}

@keyframes textGlowWhite {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  }
}

/* ============================================
   VIBE RAMADAN CARD
   ============================================ */
.vibe-btn {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vibe-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.15),
    rgba(201, 123, 132, 0.15)
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.vibe-btn:hover {
  transform: scale(1.15) translateY(-4px) rotate(3deg);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.25);
}

.vibe-btn:hover::before {
  opacity: 1;
}

.vibe-btn:active {
  transform: scale(0.95);
}

/* Clock Date Display */
#clock-date {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.05em;
}

/* Challenge spin button shimmer */
#spin-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: spinShimmer 2.5s infinite;
}

@keyframes spinShimmer {
  0% {
    left: -60%;
  }
  100% {
    left: 160%;
  }
}

/* ============================================
   TERBIT & DHUHA CARD
   ============================================ */
.terbit-dhuha-card {
  background: linear-gradient(
    135deg,
    rgba(255, 251, 235, 0.95) 0%,
    rgba(255, 237, 213, 0.9) 50%,
    rgba(254, 243, 199, 0.95) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow:
    0 20px 50px rgba(251, 146, 60, 0.12),
    0 4px 16px rgba(249, 115, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terbit-dhuha-card:hover {
  box-shadow:
    0 30px 60px rgba(251, 146, 60, 0.18),
    0 8px 24px rgba(249, 115, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.terbit-item-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.08);
  transition: all 0.3s ease;
}

.terbit-item-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.15);
}

.dhuha-item-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(251, 146, 60, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.08);
  transition: all 0.3s ease;
}

.dhuha-item-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}

/* Sun rise icon animation */
.terbit-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  animation: terbitPulse 3s ease-in-out infinite;
}

.terbit-icon {
  color: white;
  font-size: 14px;
  animation: sunSpin 8s linear infinite;
}

@keyframes terbitPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(251, 191, 36, 0.7),
      0 0 30px rgba(251, 191, 36, 0.2);
  }
}

@keyframes sunSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dhuha cloud-sun icon */
.dhuha-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  animation: dhuhaFloat 4s ease-in-out infinite;
}

.dhuha-icon {
  color: white;
  font-size: 14px;
}

@keyframes dhuhaFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
  }
}

/* ============================================
   QIBLA COMPASS - MODERN SVG
   ============================================ */
.qibla-main-card {
  box-shadow:
    0 30px 70px rgba(30, 27, 75, 0.4),
    0 8px 24px rgba(30, 27, 75, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Starfield dots */
.qibla-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size:
    120px 120px,
    80px 80px,
    60px 60px;
  background-position:
    0 0,
    40px 40px,
    20px 20px;
  animation: starsTwinkle 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes starsTwinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* Compass SVG container */
.compass-outer-ring {
  position: relative;
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.25));
  animation: compassFloat 6s ease-in-out infinite;
}

.compass-svg {
  width: 100%;
  height: 100%;
}

@keyframes compassFloat {
  0%,
  100% {
    transform: translateY(0px);
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.25));
  }
  50% {
    transform: translateY(-6px);
    filter: drop-shadow(0 8px 40px rgba(99, 102, 241, 0.35));
  }
}

/* SVG element transitions */
#compass-dial-group,
#compass-needle,
#compass-ticks {
  transition: transform 0.15s ease-out;
  transform-origin: 140px 140px;
}

#qibla-needle {
  transition: transform 0.2s ease-out;
  transform-origin: 140px 140px;
}

/* Alignment bar */
.qibla-align-bar {
  animation: fadeIn 0.4s ease-out;
}
