/* ══════════════════════════════════════════════
   YAWM ARAFA — CSS Design System & Layouts (Retro 60s Notebook)
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@400;600;700;900&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Changa:wght@400;600;700&display=swap');

:root {
  /* 60s desaturated pastel palette */
  --bg-desktop: #cfc5a9;      /* Vintage wooden desk */
  --bg-paper: #faf7f0;        /* Warm cream notebook paper */
  --ink-black: #1e1e1e;       /* Ink pen color */
  --ink-red: #ea6b85;         /* Red pencil margin */
  --ink-blue: #d2e4e1;        /* Rulings color */
  
  /* Desaturated retro colors (Visual Inspiration match) */
  --teal-doodle: #3dbca8;
  --pink-doodle: #f2a3c2;
  --purple-doodle: #b990f1;
  --orange-doodle: #e99e46;
  --yellow-doodle: #f3d56f;
  --green-doodle: #88ca88;
  
  --font-title: 'Aref Ruqaa', 'Cairo', serif;
  --font-body: 'Cairo', 'Changa', sans-serif;
  --font-dua: 'Amiri', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-desktop);
  color: var(--ink-black);
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  direction: rtl;
  background-image: 
    radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%),
    radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* ════════════════ MOBILE CONTAINER (SHELL) ════════════════ */
#app-container {
  width: 100%;
  max-width: 450px; /* Standard phone width on desktop */
  height: 100%;
  max-height: 900px;
  background-color: var(--bg-paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3.5px solid var(--ink-black);
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Ruled Notebook Paper Rulings */
  background-image: 
    linear-gradient(270deg, transparent 55px, var(--ink-red) 55px, var(--ink-red) 57px, transparent 57px), /* Right Margin */
    linear-gradient(var(--ink-blue) 1.5px, transparent 1.5px); /* Horizontal Lines */
  background-size: 100% 100%, 100% 28px;
  background-position: 0 0, 0 8px;
}

@media (max-width: 480px) {
  #app-container {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: none;
    box-shadow: none;
  }
}

/* Decorative Desktop Backdrop Blur */
.ambient-backdrop {
  display: none;
}

/* ════════════════ BACKGROUND VIDEO CONTROLS ════════════════ */
.app-bg-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12; /* Subtle background presence */
}

#app-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--bg-paper) 90%);
}

/* ════════════════ WELCOME OVERLAY ════════════════ */
#welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-paper);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-image: 
    linear-gradient(270deg, transparent 55px, var(--ink-red) 55px, var(--ink-red) 57px, transparent 57px),
    linear-gradient(var(--ink-blue) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 28px;
  background-position: 0 0, 0 8px;
}

#welcome-overlay.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-logo-wrapper {
  width: 90px;
  height: 90px;
  background: var(--yellow-doodle);
  border: 3px solid var(--ink-black);
  border-radius: 50% 40% 45% 50% / 40% 45% 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 0px var(--ink-black);
  animation: wobble 4s ease-in-out infinite;
  margin-bottom: 24px;
}

.welcome-crescent {
  font-size: 40px;
}

.welcome-title {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 12px;
  padding: 10px 24px;
  background: var(--teal-doodle);
  border: 3px solid var(--ink-black);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 4px 5px 0px var(--ink-black);
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--ink-black);
  font-weight: 600;
  margin-bottom: 32px;
  background: #ffffff;
  padding: 4px 12px;
  border: 2px solid var(--ink-black);
  border-radius: 6px;
}

.welcome-btn {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background-color: var(--orange-doodle);
  border: 3px solid var(--ink-black);
  padding: 14px 28px;
  border-radius: 12px 14px 12px 14px/14px 12px 14px 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--ink-black);
  transition: transform 0.1s, box-shadow 0.1s;
}

.welcome-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--ink-black);
}

.welcome-note {
  font-size: 13px;
  margin-top: 24px;
  color: #555;
}

/* ════════════════ APP HEADER ════════════════ */
.app-header {
  position: relative;
  z-index: 10;
  background-color: #fff;
  border-bottom: 3.5px solid var(--ink-black);
  padding: 12px 16px;
  box-shadow: 0 4px 0px rgba(0,0,0,0.05);
}

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

.app-logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-black);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-btn {
  background: var(--bg-paper);
  border: 2px solid var(--ink-black);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 0px var(--ink-black);
  transition: all 0.1s;
}

.header-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 0.5px 0.5px 0px var(--ink-black);
}

/* ════════════════ SIMULATION PANEL ════════════════ */
.simulation-panel {
  margin-top: 10px;
  background: var(--yellow-doodle);
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 3px 3px 0px var(--ink-black);
  transition: all 0.3s ease;
}

.simulation-panel.hidden {
  display: none;
}

.sim-title {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.sim-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sim-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  background: #fff;
  border: 2.5px solid var(--ink-black);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.sim-btn.active {
  background: var(--orange-doodle);
  color: #fff;
  box-shadow: inset 2px 2px 0px rgba(0,0,0,0.2);
}

/* ════════════════ MAIN CONTENT PANELS ════════════════ */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
  z-index: 5;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.app-main::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.app-panel {
  display: none;
  animation: pageFadeIn 0.3s ease forwards;
}

.app-panel.active {
  display: block;
}

/* ════════════════ RETRO SKETCH-NOTE CARDS ════════════════ */
.glass-card {
  background: #ffffff !important;
  border: 2.5px solid var(--ink-black) !important;
  border-radius: 20px 8px 22px 9px/10px 22px 9px 20px !important;
  box-shadow: 5px 5px 0px var(--ink-black) !important;
  padding: 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Card highlight tabs */
.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--purple-doodle);
  color: var(--ink-black);
  padding: 4px 10px;
  border: 2px solid var(--ink-black);
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ════════════════ HOME PANEL ════════════════ */
.home-hero {
  text-align: center;
  padding: 10px 0 16px 0;
  position: relative;
}

.crescent-container {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.floating-crescent {
  font-size: 36px;
  display: block;
}

.date-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  background: var(--yellow-doodle);
  padding: 4px 12px;
  border: 2px solid var(--ink-black);
  border-radius: 15px 4px 14px 4px / 4px 14px 4px 15px;
  box-shadow: 2px 2px 0 var(--ink-black);
  margin-top: 8px;
}

.home-greeting {
  font-family: var(--font-title);
  font-size: 28px;
  margin-top: 10px;
  color: var(--ink-black);
}

.home-verse {
  font-family: var(--font-dua);
  font-size: 16px;
  margin-top: 6px;
  color: #444;
  padding: 0 10px;
}

/* Current Deed Card */
.deed-title {
  font-family: var(--font-title);
  font-size: 22px;
  margin-bottom: 8px;
}

.deed-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.5;
}

.deed-timer-box {
  background: var(--bg-paper);
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: inset 1px 1px 0px rgba(0,0,0,0.1);
}

.timer-label {
  font-size: 13px;
  font-weight: 700;
}

.timer-value {
  font-size: 18px;
  font-weight: 900;
  font-family: monospace;
  color: var(--ink-red);
}

.deed-action-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  padding: 10px;
  background: var(--teal-doodle);
  color: #fff;
  border: 2.5px solid var(--ink-black);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink-black);
}

.deed-action-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0 var(--ink-black);
}

/* ════════════════ PROGRESS DASHBOARD ════════════════ */
.dashboard-title {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 14px;
}

.dashboard-stats-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-circle-box {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: rgba(0,0,0,0.06);
}

.progress-ring-bar {
  stroke: var(--ink-black);
  transition: stroke-dashoffset 0.35s;
}

.stat-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stat-val {
  font-size: 16px;
  font-weight: 900;
  display: block;
}

.stat-lbl {
  font-size: 10px;
  color: #555;
  display: block;
}

.stat-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-black);
  margin-left: 6px;
  display: inline-block;
}

.stat-dot.gold { background-color: var(--yellow-doodle); }
.stat-dot.sage { background-color: var(--green-doodle); }
.stat-dot.white { background-color: var(--pink-doodle); }

.stat-label {
  flex: 1;
  color: #333;
}

.stat-value {
  font-weight: 700;
}

/* ════════════════ VISUAL TYPES OF DUAS (أنواع الدعوات) ════════════════ */
.dua-types-section {
  padding: 16px;
}

.section-title-doodle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.doodle-star {
  font-size: 18px;
  color: var(--orange-doodle);
  animation: spin 6s linear infinite;
}

.doodle-heading {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  background: var(--teal-doodle);
  color: #fff;
  padding: 4px 16px;
  border: 2.5px solid var(--ink-black);
  border-radius: 20px 6px 18px 6px / 6px 18px 6px 20px;
  box-shadow: 2px 2.5px 0 var(--ink-black);
}

.section-subtitle-doodle {
  font-size: 12px;
  text-align: center;
  color: #555;
  margin-bottom: 16px;
  font-weight: 600;
}

.doodles-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.doodle-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doodle-card {
  border: 2px solid var(--ink-black);
  border-radius: 12px 6px 14px 6px / 6px 14px 6px 12px;
  box-shadow: 3px 3px 0 var(--ink-black);
  padding: 8px;
  position: relative;
  transition: transform 0.2s;
}

.doodle-card:hover {
  transform: scale(1.02) rotate(0.5deg);
}

/* Pastel Theme Variations */
.pink-theme { background-color: #fef0f5; }
.purple-theme { background-color: #f6f0ff; }
.green-theme { background-color: #f0fdf2; }
.blue-theme { background-color: #effcfc; }
.orange-theme { background-color: #fff6ee; }
.yellow-theme { background-color: #fffdee; }

.doodle-card-hdr {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.doodle-icon {
  font-size: 16px;
}

.doodle-card h4 {
  font-size: 13px;
  font-weight: 700;
}

.doodle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doodle-list li {
  font-size: 10.5px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.doodle-list li::before {
  content: '•';
  color: var(--ink-black);
  margin-left: 4px;
  font-size: 14px;
}

/* ════════════════ PANEL HEADER ════════════════ */
.panel-header {
  margin-bottom: 16px;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-black);
}

.panel-subtitle {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin-top: 4px;
}

/* ════════════════ TIMELINE PANEL ════════════════ */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-right: 12px;
}

/* Timeline Vertical Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 4px;
  width: 3.5px;
  height: calc(100% - 16px);
  background: var(--ink-black);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 12px 6px 14px 6px / 6px 14px 6px 12px;
  padding: 14px;
  box-shadow: 3.5px 3.5px 0 var(--ink-black);
  transition: all 0.2s ease;
}

/* Bullet markers on the vertical line */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 14px;
  right: -14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 50%;
  z-index: 2;
}

/* State Styling for Timeline */
.timeline-item.active {
  background: var(--yellow-doodle);
  box-shadow: 5px 5px 0 var(--ink-black);
}

.timeline-item.active::before {
  background: var(--orange-doodle);
}

.timeline-item.past {
  opacity: 0.8;
  background: #f4eedc;
}

.timeline-item.past::before {
  background: var(--teal-doodle);
}

.timeline-item.future {
  background: #fbfbfa;
}

.time-range {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 4px;
}

.timeline-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.item-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1.5px solid var(--ink-black);
  border-radius: 4px;
  background: #fff;
}

.timeline-desc {
  font-size: 12px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 10px;
}

.timeline-active-details {
  background: #fff;
  border: 1.5px solid var(--ink-black);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.active-timer-label {
  font-size: 11px;
  font-weight: 700;
}

.active-timer-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-red);
  font-family: monospace;
}

/* Checklist in Timeline */
.timeline-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px dashed rgba(0,0,0,0.1);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.check-btn {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink-black);
  border-radius: 4px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--teal-doodle);
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.checklist-item.checked span {
  text-decoration: line-through;
  color: #777;
}

.checklist-item.checked .check-btn {
  background: var(--ink-black);
  color: var(--yellow-doodle);
}

/* ════════════════ DUAS PANEL ════════════════ */
.duas-mini-progress {
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  box-shadow: 2px 2px 0 var(--ink-black);
}

.progress-text {
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.progress-line-container {
  height: 8px;
  background: var(--bg-paper);
  border: 1px solid var(--ink-black);
  border-radius: 4px;
  overflow: hidden;
}

.progress-line-bar {
  height: 100%;
  background: var(--teal-doodle);
  width: 0%;
  transition: width 0.3s ease;
}

/* View Mode Tabs */
.view-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.view-mode-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-black);
}

.view-mode-btn.active {
  background: var(--orange-doodle);
  color: #fff;
}

/* Filters & Search */
.dua-filter-bar {
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink-black);
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  margin-bottom: 10px;
}

.search-box input {
  font-family: var(--font-body);
  width: 100%;
  padding: 10px 32px 10px 10px;
  border: 2px solid var(--ink-black);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 14px;
}

.category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink-black);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.cat-tab.active {
  background: var(--purple-doodle);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
}

.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pref-lbl {
  font-weight: 700;
}

.font-btn {
  background: #fff;
  border: 1.5px solid var(--ink-black);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  font-size: 10px;
}

.font-btn.active {
  background: var(--yellow-doodle);
}

.reset-btn {
  font-family: var(--font-body);
  background: none;
  border: none;
  color: var(--ink-red);
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

/* Swiper / Focus Sub-Views */
.dua-views-wrapper {
  position: relative;
}

.dua-sub-view {
  display: none;
}

.dua-sub-view.active {
  display: block;
}

/* ════════════════ FOCUS CARD ════════════════ */
.swiper-outer-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swiper-card-box {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-card {
  background: #fff;
  border: 3px solid var(--ink-black);
  border-radius: 20px 10px 22px 10px/10px 22px 10px 20px;
  box-shadow: 6px 6px 0 var(--ink-black);
  padding: 20px;
  width: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: cardEnter 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: transform 0.25s ease;
}

/* Swipe animations */
.focus-card.swipe-left { transform: translateX(-150%) rotate(-10deg); opacity: 0; }
.focus-card.swipe-right { transform: translateX(150%) rotate(10deg); opacity: 0; }

.focus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.focus-number {
  font-size: 12px;
  font-weight: 900;
  background: var(--yellow-doodle);
  border: 1.5px solid var(--ink-black);
  padding: 2px 8px;
  border-radius: 4px;
}

.focus-completed-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-black);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.focus-completed-indicator.completed {
  background: var(--teal-doodle);
}

.focus-completed-indicator.completed::before {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.focus-text {
  font-family: var(--font-dua);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-black);
  margin-bottom: 14px;
}

/* Font Size Modifiers */
.focus-text.size-sm { font-size: 17px; }
.focus-text.size-md { font-size: 21px; }
.focus-text.size-lg { font-size: 25px; }

.focus-source {
  font-size: 12px;
  color: #666;
  text-align: center;
  font-style: italic;
  margin-bottom: 14px;
}

.focus-actions {
  display: flex;
  gap: 8px;
  border-top: 1.5px dashed rgba(0,0,0,0.1);
  padding-top: 12px;
}

.focus-action-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 6px;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink-black);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-black);
}

.focus-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-black);
}

.active-fav {
  background: var(--pink-doodle) !important;
}

/* Swiper Navigation Arrows */
.swiper-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-arrow-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink-black);
}

.nav-arrow-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0 var(--ink-black);
}

.swiper-index-indicator {
  font-size: 14px;
  font-weight: 700;
}

/* Tasbih Panel */
.tasbih-container {
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 3.5px 3.5px 0 var(--ink-black);
  text-align: center;
}

.tasbih-title {
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: #444;
}

.tasbih-btn {
  background: var(--yellow-doodle);
  border: 2.5px solid var(--ink-black);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 3px 3px 0 var(--ink-black);
  transition: transform 0.1s;
}

.tasbih-btn:active {
  transform: scale(0.96) translate(1px, 1px);
  box-shadow: 1.5px 1.5px 0 var(--ink-black);
}

.tasbih-number {
  font-size: 26px;
  font-weight: 900;
  display: block;
  color: var(--ink-black);
}

.tasbih-label {
  font-size: 10px;
  font-weight: 700;
  color: #333;
}

.tasbih-reset-btn {
  font-family: var(--font-body);
  display: block;
  margin: 8px auto 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-red);
  background: none;
  border: none;
  cursor: pointer;
}

/* ════════════════ LIST VIEW PANELS ════════════════ */
.dua-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dua-card {
  background: #fff;
  border: 2px solid var(--ink-black);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink-black);
  transition: transform 0.2s;
}

.dua-card.completed {
  background: #f2fcf6;
}

.dua-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dua-card-number {
  font-size: 11px;
  font-weight: 900;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink-black);
  padding: 1px 6px;
  border-radius: 4px;
}

.dua-card-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-black);
  border-radius: 50%;
  cursor: pointer;
  background: #fff;
}

.completed .dua-card-checkbox {
  background: var(--teal-doodle);
}

.dua-arabic {
  font-family: var(--font-dua);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
  margin-bottom: 8px;
}

.dua-arabic.size-sm { font-size: 15px; }
.dua-arabic.size-md { font-size: 18px; }
.dua-arabic.size-lg { font-size: 21px; }

.dua-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 8px;
}

.dua-action-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink-black);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0 var(--ink-black);
}

.dua-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0.5px 0.5px 0 var(--ink-black);
}

/* ════════════════ VIRTUES PANEL ════════════════ */
.virtues-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.virtue-card {
  /* Inherits glass-card styling and adapts */
}

.virtue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.virtue-icon {
  font-size: 22px;
}

.virtue-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.virtue-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 8px;
}

.virtue-hadith {
  font-family: var(--font-dua);
  font-size: 15px;
  color: #444;
  background: var(--bg-paper);
  border-right: 3px solid var(--orange-doodle);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* Mount Arafat Showcase */
.mount-arafat-showcase {
  padding: 12px;
}

.showcase-img-container {
  position: relative;
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  overflow: hidden;
  height: 150px;
  margin-bottom: 10px;
}

.showcase-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--yellow-doodle);
  color: var(--ink-black);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border: 1.5px solid var(--ink-black);
  border-radius: 4px;
}

.showcase-content h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 6px;
}

.showcase-content p {
  font-size: 12.5px;
  line-height: 1.4;
  color: #444;
}

/* Footer Decoration */
.footer-decoration {
  text-align: center;
  padding: 20px 0 10px 0;
}

.lantern-deco {
  width: 45px;
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* ════════════════ BOTTOM TAB NAVIGATION ════════════════ */
.app-navbar {
  position: relative;
  z-index: 10;
  background-color: #fff;
  border-top: 3.5px solid var(--ink-black);
  display: flex;
  height: 64px;
  box-shadow: 0 -4px 0px rgba(0,0,0,0.05);
}

.nav-tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: all 0.2s;
  color: #666;
}

.nav-tab.active {
  color: var(--ink-black);
  font-weight: 700;
}

/* Active tab binder highlight effect */
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 6px;
  background: var(--teal-doodle);
  border-top: 2px solid var(--ink-black);
  border-left: 2px solid var(--ink-black);
  border-right: 2px solid var(--ink-black);
  border-radius: 4px 4px 0 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.nav-tab.active .nav-icon {
  transform: scale(1.1) translateY(-2px);
}

.nav-label {
  font-family: var(--font-body);
  font-size: 11px;
}

/* ════════════════ TOAST NOTIFICATION ════════════════ */
.toast-notification {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-black);
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ════════════════ KEYFRAME ANIMATIONS ════════════════ */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wobble {
  0%, 100% { border-radius: 50% 40% 45% 50% / 40% 45% 50% 50%; }
  50% { border-radius: 42% 48% 40% 52% / 48% 40% 52% 42%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes swing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes spin {
  100% { transform: rotate(-360deg); }
}

/* ════════════════ GLOBAL UTILITIES ════════════════ */
.hidden {
  display: none !important;
}

/* ════════════════ PWA INSTALL BUTTON ════════════════ */
.welcome-btn.install-btn {
  background-color: var(--green-doodle) !important;
  margin-top: 14px;
  animation: pulseButton 2.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.welcome-btn.install-btn:active {
  transform: translate(2px, 2px) scale(0.98);
}

/* ════════════════ DUA TOGGLE BAR (TEXT / IMAGE) ════════════════ */
.dua-card-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
  padding-bottom: 12px;
}

.toggle-view-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-black);
  background: #faf7f0;
  border: 2px solid var(--ink-black);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-black);
  transition: all 0.15s;
}

.toggle-view-btn.active {
  background: var(--yellow-doodle);
  box-shadow: none;
  transform: translate(2px, 2px);
}

.focus-image-container {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--ink-black);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  margin: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-in;
}

.focus-page-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}

.focus-page-img:hover {
  transform: scale(1.02);
}

/* ════════════════ LIGHTBOX MODAL ════════════════ */
.lightbox {
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(26, 24, 20, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
  z-index: 100002;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--yellow-doodle);
  text-decoration: none;
}

.lightbox-wrapper {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  border: 4px solid var(--ink-black);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox:not(.hidden) .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 40px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

/* List view inline image button */
.dua-action-btn.view-img-btn {
  background: var(--purple-doodle) !important;
}

/* ════════════════ PDF DOWNLOADS SECTION ════════════════ */
.pdf-downloads-section {
  margin-top: 24px;
  padding: 20px 16px;
  background: #faf7f0;
}

.pdf-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--ink-black);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink-black);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pdf-card:nth-child(2) {
  border-color: var(--ink-black);
  background: #faf7f0;
  box-shadow: 3px 3px 0 var(--ink-black);
}

.pdf-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink-black);
}

.pdf-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  background: #f0ede4;
  padding: 6px;
  border-radius: 8px;
  border: 1.5px solid var(--ink-black);
}

.pdf-card-info {
  flex-grow: 1;
}

.pdf-card-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 2px;
}

.pdf-card-desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: #666;
  margin: 0;
  line-height: 1.3;
}

.pdf-download-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: var(--teal-doodle);
  border: 2px solid var(--ink-black);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-black);
  text-decoration: none;
  white-space: nowrap;
}

.pdf-card:nth-child(2) .pdf-download-btn {
  background-color: var(--orange-doodle);
}

.pdf-card:nth-child(3) .pdf-download-btn {
  background-color: var(--purple-doodle);
}

.pdf-download-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-black);
}
