/* RESET */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* GLOBAL */
body {
  background: #f4f8f6;              /* fond clair doux */
  color: #1f2937;
  padding-bottom: 140px;
}

/* HEADER */
header {
  text-align: center;
  padding: 26px 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.logo {
  width: 42px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #065f46;                   /* vert profond */
}

.subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #4b5563;
}

.subtitle-org {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.75;
}

/* RESET BUTTON */
#resetBtn {
  position: absolute;
  right: 16px;
  top: 22px;
  background: none;
  border: none;
  font-size: 22px;
  color: #065f46;
  cursor: pointer;
}

/* ACCORDION */
.accordion {
  padding: 18px 16px 0;
}

.accordion-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #065f46;
  text-align: left;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

/* INFO */
.info {
  text-align: center;
  margin: 22px 16px;
  font-size: 14px;
  color: #374151;
}

.status {
  margin-top: 8px;
  opacity: 0.85;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.cell {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 2px solid #d1fae5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #065f46;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cell:active {
  transform: scale(0.96);
}

.cell.checked {
  background: #10b981;              /* vert doux */
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 14px rgba(16,185,129,0.35);
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}

.progress-text {
  text-align: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.3s ease;
}

.finish-message {
  display: none;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  color: #065f46;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #1f2937;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
}

.modal-header {
  padding: 20px;
  text-align: center;
}

.modal-header h2 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.modal-header p {
  font-size: 14px;
  opacity: 0.85;
}

.modal-content {
  padding: 16px;
  overflow-y: auto;
  max-height: 70vh;
}

.zikr-step {
  display: none;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border: 2px solid #d1fae5;
}

.zikr-step.active {
  display: block;
}

.zikr-step.completed {
  opacity: 0.6;
}

.zikr-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #065f46;
}

.zikr-step input {
  transform: scale(1.2);
}

.count {
  float: right;
  background: #10b981;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.zikr-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.zikr-text.arabic {
  font-size: 18px;
  text-align: center;
  direction: rtl;
  color: #065f46;
}


.complete-btn {
  width: 100%;
  padding: 14px;
  background: #10b981;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  margin-top: 14px;
  cursor: pointer;
}
