* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #f59e0b;
  --secondary-light: #fbbf24;
  --success: #10b981;
  --success-dark: #059669;
  --bg-start: #dbeafe;
  --bg-end: #eff6ff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  color: var(--text-primary);
  padding-bottom: 90px;
}

.app-container {
  max-width: 420px;
  margin: 0 auto;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 24px 20px 20px;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.date-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.date-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: -30px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
  display: block;
}

.stat-label {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Prayers Section */
.prayers-section {
  padding: 40px 16px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.prayers-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Prayer Cards */
.prayer-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 64, 175, 0.08);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-light);
  opacity: 0;
  transition: opacity 0.3s;
}

.prayer-card:active {
  transform: scale(0.98);
}

.prayer-card.completed {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.3);
}

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

.prayer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.prayer-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.prayer-card.completed .prayer-icon {
  background: rgba(255, 255, 255, 0.2);
}

.prayer-info {
  flex: 1;
  min-width: 0;
}

.prayer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prayer-card.completed .prayer-name {
  color: var(--white);
}

.prayer-meta {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prayer-card.completed .prayer-meta {
  color: rgba(255, 255, 255, 0.8);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.prayer-card.completed .check-badge {
  opacity: 1;
  transform: scale(1);
}

/* Progress Section */
.progress-section {
  margin-bottom: 10px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.progress-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.prayer-card.completed .progress-value {
  color: var(--white);
}

.progress-bar-container {
  height: 8px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.prayer-card.completed .progress-bar-container {
  background: rgba(255, 255, 255, 0.25);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.prayer-card.completed .progress-bar-fill {
  background: var(--white);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
}

.btn {
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}

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

.btn-quick {
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  padding: 8px 14px;
  min-width: 50px;
}

.prayer-card.completed .btn-quick {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
  font-size: 14px;
}

.prayer-card.completed .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Time based cards */
.prayer-card.time-based .progress-bar-fill {
  background: linear-gradient(90deg, var(--success), var(--success-dark));
}

.prayer-card.time-based .progress-value {
  color: var(--success);
}

.prayer-card.time-based .prayer-icon {
  background: linear-gradient(135deg, #34d399, var(--success));
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 8px 20px 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(30, 64, 175, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  border-radius: 12px;
  position: relative;
}

.nav-item.active {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
}

.nav-item .icon {
  font-size: 22px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  z-index: 99;
}

.fab:active {
  transform: scale(0.9);
}

/* Celebration Animation */
@keyframes celebrate {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.05) rotate(-2deg);
  }

  75% {
    transform: scale(1.05) rotate(2deg);
  }
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.celebrating {
  animation: celebrate 0.6s ease;
}
