* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #065f46;
  --primary-hover: #047857;
  --primary-soft: #ecfdf5;
  --primary-glow: rgba(6, 95, 70, 0.3);
  --accent: #d4af37;
  --accent-light: #e8c547;
  --accent-soft: rgba(212, 175, 55, 0.15);
  --accent-glow: rgba(212, 175, 55, 0.4);
  --bg-body: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(6, 95, 70, 0.2);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-soft: rgba(5, 150, 105, 0.15);
  --accent: #fcd34d;
  --accent-light: #fde68a;
  --accent-soft: rgba(252, 211, 77, 0.15);
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-card-alt: #1e3a5f;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.3);
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  transition: var(--transition);
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 15% 50%,
      rgba(6, 95, 70, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(212, 175, 55, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(6, 95, 70, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 25s ease-in-out infinite;
}
@keyframes bgFloat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(2deg);
  }
}
.islamic-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  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%3Cpath d='M40 0 L48 16 L64 16 L52 28 L56 44 L40 36 L24 44 L28 28 L16 16 L32 16 Z' fill='none' stroke='%23065f46' stroke-width='0.4' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.layout {
  display: grid;
  grid-template-columns: 85px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.sidebar {
  width: 85px;
  background: linear-gradient(180deg, var(--primary) 0%, #044e3a 100%);
  padding: 1.5rem 0.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(6, 95, 70, 0.15);
  transition: var(--transition);
}
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.08) 50%,
    transparent 100%
  );
  pointer-events: none;
  animation: sidebarGlow 5s ease-in-out infinite;
}
@keyframes sidebarGlow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}
.sidebar-logo {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 18px rgba(212, 175, 55, 0.35);
  color: var(--accent);
  animation: logoPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar-logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212, 175, 55, 0.25) 60deg,
    transparent 120deg,
    transparent 360deg
  );
  animation: logoRotate 5s linear infinite;
}
@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 18px rgba(212, 175, 55, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25),
      0 0 28px rgba(212, 175, 55, 0.5);
  }
}
.sidebar-nav {
  list-style: none;
  flex: 1;
  width: 100%;
}
.sidebar-nav li {
  margin-bottom: 0.375rem;
}
.sidebar-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  font-size: 1.375rem;
  gap: 0.3125rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.sidebar-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.sidebar-nav a:hover::before {
  transform: scaleX(1);
}
.sidebar-nav a:hover {
  color: white;
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.sidebar-nav a.active {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.28) 0%,
    rgba(212, 175, 55, 0.12) 100%
  );
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 0 18px rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
}
.sidebar-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 65%;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.65);
  animation: activePulse 2s ease-in-out infinite;
}
@keyframes activePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.65);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.85);
  }
}
.sidebar-nav span {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.main-content {
  padding: 1.75rem 2.25rem;
  overflow-y: auto;
  position: relative;
}
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1.125rem;
  animation: slideDown 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-left {
  position: relative;
}
.header-left h1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3125rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary) 50%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}
.header-left p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.location-selector {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 0.6875rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.location-selector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    transparent 50%,
    var(--accent-soft) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.location-selector:hover::before {
  opacity: 1;
}
.location-selector:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 18px rgba(6, 95, 70, 0.2);
  transform: translateY(-2px);
}
.location-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  font-family: "Inter", sans-serif;
  position: relative;
  z-index: 1;
  min-width: 140px;
}
.date-badge {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 0.6875rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.date-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}
.date-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.action-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease;
}
.action-btn:hover::before {
  width: 100%;
  height: 100%;
}
.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-md), 0 0 18px rgba(6, 95, 70, 0.2);
}
.action-btn:active {
  transform: translateY(0) scale(0.96);
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.625rem;
  margin-bottom: 1.625rem;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 1.625rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: cardFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary) 100%
  );
  transform: scaleX(0);
  transition: transform 0.45s ease;
  background-size: 200% auto;
  animation: gradientFlow 4s linear infinite;
}
@keyframes gradientFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.card:hover::before {
  transform: scaleX(1);
}
.card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-5px);
  border-color: rgba(6, 95, 70, 0.25);
}
.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.card-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(
    circle at top right,
    var(--primary-soft) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.card-corner::before {
  content: "۞";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.12;
  font-family: "Amiri", serif;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  position: relative;
  z-index: 1;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--accent-soft) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover .card-icon::before {
  opacity: 1;
}
.card:hover .card-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.card-title h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1875rem;
}
.card-title p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.next-prayer-card {
  background: linear-gradient(135deg, var(--primary) 0%, #044e3a 100%);
  color: white;
  position: relative;
  overflow: hidden;
  border: none;
}
.next-prayer-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.12) 0%,
    transparent 55%
  );
  animation: prayerGlow 4s ease-in-out infinite;
}
@keyframes prayerGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}
.next-prayer-card .card-title h3,
.next-prayer-card .card-title p {
  color: white;
}
.next-prayer-card .card-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.next-prayer-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.75px;
  margin-bottom: 0.625rem;
  position: relative;
  z-index: 1;
}
.next-prayer-time {
  font-family: "Poppins", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2.5px;
  margin-bottom: 1.375rem;
  line-height: 1;
  animation: timePulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.55);
}
@keyframes timePulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 35px rgba(212, 175, 55, 0.55);
  }
  50% {
    transform: scale(1.015);
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.75);
  }
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  position: relative;
  z-index: 1;
}
.countdown-item {
  text-align: center;
  padding: 1.125rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.countdown-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.countdown-item:hover::before {
  transform: scaleX(1);
}
.countdown-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}
.countdown-value {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}
.countdown-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.875px;
  margin-top: 0.4375rem;
  font-weight: 600;
}
.info-cards-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.625rem;
  margin-bottom: 1.625rem;
}
.prayer-times-card {
  background: var(--bg-card);
}
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}
.prayer-item {
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.125rem 0.5625rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.prayer-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.prayer-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease;
}
.prayer-item:hover::before {
  transform: scaleX(1);
}
.prayer-item:hover::after {
  width: 180%;
  height: 180%;
}
.prayer-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 18px rgba(6, 95, 70, 0.18);
}
.prayer-item.active {
  background: var(--primary-soft);
  border-color: var(--accent);
  animation: activeGlow 2s ease-in-out infinite;
}
@keyframes activeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow: 0 0 25px 8px rgba(212, 175, 55, 0.18);
  }
}
.prayer-icon {
  font-size: 1.625rem;
  margin-bottom: 0.5625rem;
  display: block;
  position: relative;
  z-index: 1;
}
.prayer-name {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.625px;
  margin-bottom: 0.5625rem;
  position: relative;
  z-index: 1;
}
.prayer-time {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4375px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.prayer-item:hover .prayer-time {
  transform: scale(1.12);
  color: var(--accent);
}
.prayer-item.active .prayer-time {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}
.prayer-timeline {
  position: relative;
  padding: 1.125rem 0;
}
.timeline-track {
  position: relative;
  height: 4.5px;
  background: var(--border);
  border-radius: 2.5px;
  margin-bottom: 1.625rem;
  overflow: hidden;
  box-shadow: inset 0 1.5px 3.5px rgba(0, 0, 0, 0.08);
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary) 100%
  );
  animation: timelineShine 3s linear infinite;
  opacity: 0.25;
}
@keyframes timelineShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2.5px;
  transition: width 0.5s ease;
  box-shadow: 0 0 18px rgba(6, 95, 70, 0.55), 0 0 35px rgba(212, 175, 55, 0.28);
}
.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  border: 2.5px solid var(--bg-card);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.55),
    0 0 35px rgba(212, 175, 55, 0.28);
  animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.55),
      0 0 35px rgba(212, 175, 55, 0.28);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.75),
      0 0 55px rgba(212, 175, 55, 0.45);
    transform: translate(-50%, -50%) scale(1.25);
  }
}
.timeline-marker.active {
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.75),
    0 0 55px rgba(212, 175, 55, 0.45);
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
}
.info-card {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 55%);
  animation: infoGlow 5s ease-in-out infinite;
}
@keyframes infoGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  position: relative;
  z-index: 1;
}
.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition: var(--transition);
  border: 1.5px solid rgba(6, 95, 70, 0.25);
  position: relative;
  z-index: 1;
}
.info-card:hover .info-card-icon {
  transform: rotate(360deg) scale(1.12);
  box-shadow: 0 0 28px rgba(6, 95, 70, 0.45);
}
.info-card-title h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1875rem;
  position: relative;
  z-index: 1;
}
.info-card-title p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.125rem;
  position: relative;
  z-index: 1;
}
.info-stat {
  text-align: center;
  padding: 0.875rem;
  background: var(--bg-card-alt);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.info-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.info-stat:hover::before {
  opacity: 1;
}
.info-stat:hover {
  background: var(--primary-soft);
  transform: scale(1.06);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(6, 95, 70, 0.2);
}
.info-stat-value {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3125rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 18px rgba(6, 95, 70, 0.35);
}
.info-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.625px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.quran-verse {
  font-style: italic;
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  font-family: "Amiri", serif;
  padding-left: 0.875rem;
  border-left: 2.5px solid var(--accent);
}
.quran-reference {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-family: "Amiri", serif;
}
.schedule-card {
  background: var(--bg-card);
}
.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.375rem;
  padding-bottom: 1.125rem;
  border-bottom: 1.5px solid var(--border);
  position: relative;
}
.schedule-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}
.schedule-title {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.schedule-title-main {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.schedule-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition: var(--transition);
  border: 1.5px solid rgba(6, 95, 70, 0.25);
}
.schedule-card:hover .schedule-icon {
  animation: iconBounce 0.55s ease;
  box-shadow: 0 0 28px rgba(6, 95, 70, 0.45);
}
@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) rotate(-4deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(4deg);
  }
}
.schedule-title h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}
.schedule-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  flex-wrap: wrap;
}
.month-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.3125rem 0.75rem;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  border: 1.5px solid rgba(6, 95, 70, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.4375px;
}
.schedule-meta {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.schedule-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.625rem;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.schedule-meta-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.schedule-meta-item i {
  color: var(--primary);
  font-size: 0.9375rem;
}
.schedule-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  padding: 0.5625rem 0.875rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: var(--transition);
  min-width: 180px;
}
.search-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 0 18px rgba(6, 95, 70, 0.18);
  transform: translateY(-2px);
}
.search-input input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  font-family: "Inter", sans-serif;
  width: 100%;
}
.search-input input::placeholder {
  color: var(--text-muted);
}
.export-btn {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border: none;
  padding: 0.5625rem 1.125rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.35);
  position: relative;
  overflow: hidden;
}
.export-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transition: left 0.45s ease;
}
.export-btn:hover::before {
  left: 100%;
}
.export-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-hover) 0%,
    var(--primary) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6, 95, 70, 0.45);
}
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-card-alt);
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
thead {
  background: linear-gradient(135deg, var(--primary) 0%, #044e3a 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}
th {
  padding: 1rem 0.875rem;
  color: white;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.875px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}
th:first-child {
  width: 18%;
}
th:nth-child(2),
th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6),
th:nth-child(7) {
  width: 13.66%;
  text-align: center;
}
td {
  padding: 1rem 0.875rem;
  border-bottom: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 0.875rem;
  position: relative;
}
td:first-child {
  position: relative;
}
td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
tbody tr:hover td:first-child::before {
  transform: scaleY(1);
}
tbody tr {
  background: var(--bg-card);
  transition: var(--transition);
}
tbody tr:hover td {
  background: var(--primary-soft);
}
tbody tr:last-child td {
  border-bottom: none;
}
.today-row {
  background: var(--primary-soft) !important;
  border-left: 3.5px solid var(--primary);
  animation: rowHighlight 2.5s ease-in-out infinite;
}
@keyframes rowHighlight {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(6, 95, 70, 0.45);
  }
  50% {
    box-shadow: 0 0 25px 8px rgba(6, 95, 70, 0.18);
  }
}
.today-badge {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  padding: 0.1875rem 0.625rem;
  border-radius: 50px;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.625px;
  margin-left: 0.5625rem;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(6, 95, 70, 0.55);
}
@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
.tomorrow-badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1875rem 0.625rem;
  border-radius: 50px;
  font-size: 0.5625rem;
  font-weight: 700;
  margin-left: 0.5625rem;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
}
.time-cell {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  position: relative;
}
.time-cell.current {
  color: var(--primary);
  animation: timeGlow 2s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(6, 95, 70, 0.55);
}
@keyframes timeGlow {
  0%,
  100% {
    text-shadow: 0 0 14px rgba(6, 95, 70, 0.55);
  }
  50% {
    text-shadow: 0 0 22px rgba(6, 95, 70, 0.75);
  }
}
.state-container {
  text-align: center;
  padding: 2.75rem 1.375rem;
  animation: fadeIn 0.55s ease;
}
.state-icon {
  font-size: 2.75rem;
  margin-bottom: 0.875rem;
  display: block;
  color: var(--primary);
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.state-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3125rem;
}
.state-text {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-bottom: 1.125rem;
}
.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.875rem;
  box-shadow: 0 0 18px rgba(6, 95, 70, 0.28);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-retry {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border: none;
  padding: 0.6875rem 1.375rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.35);
}
.btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6, 95, 70, 0.45);
}
.notification-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.375rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  z-index: 1000;
  transform: translateX(140%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
  backdrop-filter: blur(18px);
}
.notification-toast.show {
  transform: translateX(0);
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInRight {
  from {
    transform: translateX(140%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.notification-toast.success {
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-xl), 0 0 28px rgba(6, 95, 70, 0.2);
}
.notification-toast.warning {
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-xl), 0 0 28px rgba(212, 175, 55, 0.2);
}
.notification-icon {
  font-size: 1.625rem;
  color: var(--primary);
  animation: bellShake 0.45s ease;
}
@keyframes bellShake {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}
.notification-content {
  flex: 1;
}
.notification-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.1875rem;
}
.notification-message {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.notification-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-close:hover {
  color: var(--text-primary);
  transform: scale(1.18) rotate(90deg);
  background: var(--bg-card-alt);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
  position: fixed;
  top: 1.125rem;
  left: 1.125rem;
  z-index: 101;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.menu-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.bismillah {
  text-align: center;
  padding: 1.375rem;
  margin-bottom: 0.875rem;
  position: relative;
}
.bismillah-text {
  font-family: "Amiri", serif;
  font-size: 1.875rem;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  animation: bismillahGlow 3s ease-in-out infinite;
}
@keyframes bismillahGlow {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  }
  50% {
    text-shadow: 0 0 35px rgba(212, 175, 55, 0.7);
  }
}
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 1000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(6, 95, 70, 0.45);
}
@media (max-width: 1400px) {
  .info-cards-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 75px 1fr;
  }
  .sidebar {
    width: 75px;
  }
}
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    width: 85px;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-content {
    padding: 1.125rem;
  }
}
@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
  }
  .header-right {
    width: 100%;
  }
  .location-selector {
    width: 100%;
    justify-content: space-between;
  }
  .prayer-times-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .info-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .next-prayer-time {
    font-size: 2.75rem;
  }
  .schedule-header {
    flex-direction: column;
    gap: 1.125rem;
  }
  .schedule-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .search-input {
    flex: 1;
    min-width: 100%;
  }
}
@media (max-width: 650px) {
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .countdown-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5625rem;
  }
  .countdown-item {
    padding: 0.75rem;
  }
  .countdown-value {
    font-size: 1.625rem;
  }
}
@media (max-width: 480px) {
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-header {
    flex-direction: column;
    text-align: center;
  }
  .next-prayer-time {
    font-size: 2.25rem;
  }
  .countdown-value {
    font-size: 1.375rem;
  }
  .info-stat-value {
    font-size: 1.625rem;
  }
  th,
  td {
    padding: 0.8125rem 0.5625rem;
    font-size: 0.8125rem;
  }
  .timeline-labels {
    font-size: 0.625rem;
  }
  .schedule-meta {
    flex-direction: column;
    gap: 0.5625rem;
  }
  .header-left h1 {
    font-size: 1.5rem;
  }
}
.hidden {
  display: none !important;
}
.fade-in {
  animation: fadeIn 0.55s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
