@font-face {
  font-family: "cairo";
  src: url("../fonts/cairo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* {
  font-family: "cairo", sans-serif;
}
body,
html {
  background: linear-gradient(
    180deg,
    var(--color-cream) 0%,
    var(--color-white) 100% 
  ) no-repeat center center fixed; 
  
  background-size: cover; 
  min-height: 100vh; 
  line-height: 1.6;
  direction: rtl;
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] body {
  background: linear-gradient(
    180deg, 
    var(--color-bg) 0%, 
    #1e293b 100%
  ) no-repeat center center fixed;
  color: #fff;
  margin: 0;
  padding: 0;
  font-variant: lining-nums;
  justify-content: center;
  align-items: center;
  user-select: none;
  height: 100dvh;
  min-height: 100%;
  width: 100%;
}
.prayer-content {
  transition: 0.1s ease-in-out;
}

.next-prayer-section {
  text-align: center;
  margin: 20px 0;
}
/* Highlight للصلاة القادمة */
.prayer-item.next-prayer {
  border-right: 8px solid #ff4d5a;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* اسم الصلاة بالـ Highlight */
.prayer-item.next-prayer .prayer-name {
  color: #ff4d5a;
}

/* وقت الصلاة */
.prayer-item.next-prayer .prayer-time {
  color: #ff4d5a;
  font-weight: bold;
}

/* عند Hover على الصلاة القادمة */
.prayer-item.next-prayer:hover {
  background-color: #ff4d5a50;
  cursor: pointer;
}

.progress-circle {
  position: relative;
  display: inline-block;
  text-align: center;
}

.next-prayer-name {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #ff4d5a;
  font-weight: 700;
  text-align: center;
}

.next-prayer-countdown {
  font-size: 48px;
  font-weight: 700;
  margin-top: 10px;
}

.prayer-date {
  margin-top: 5px;
  font-size: 14px;
  color: #9aa6b2;
}

/* قائمة مواقيت الصلاة */
.prayer-times-section {
  margin: 20px;
}

.prayer-list {
  list-style: none;
  padding: 0;
  display: grid;
  flex-direction: column;
}

.prayer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b3c56;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 16px;
}

.prayer-item.active {
  background: #3c4f6b;
  color: #ff4d5a;
}

p span {
  font-size: 0.7rem;
  text-align: center;
}
p{
  margin-bottom: 1rem;
  text-align: center;
}
/* اتجاه القبلة */
#qiblaSection {
  text-align: center;
  background: #1f2d45;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: background 0.3s;
  width: 100%;
  height: 100%;
}

#qiblaSection p {
  font-size: 1rem;
  color: #0280ab;
  font-weight: 600;
  margin-top: 0.5rem;
}

#qiblaSection .rot-hint {
  color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-align: center;
}
#qiblaSection .rot-hint span {
  font-size: 3rem;
  font-weight: 400;
  color: #0275f7;
  padding: 0 10px;
}
#qiblaSection .dis-hint {
  display: flex;
  flex-direction: column;
  margin: auto;
  margin-top: 1rem;
  border: #0280ab 1px solid;
  border-radius: 1rem;
  padding: 10px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: rgb(123, 136, 148);
  font-size: 0.9rem;
  max-width: 200px;
}
#qiblaSection h2 {
  margin-top: 1rem;
}

#enableCompass {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 5px 12px;
  border-radius: var(--radius);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin: 20px auto;
  display: block; /* عشان يتوسطن */
}

#enableCompass:hover {
  background-color: var(--color-teal-dark);
  transform: scale(1.05);
}
.location-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #2b3a55;
  padding: 0 10px;
  border-radius: 30px;
  color: #fff;
  font-size: 0.8rem;
  width: max-content;
  margin: auto;
  margin-top: 1rem;
}

/* أيقونة GPS */
.gps-icon {
  font-size: 18px;
  font-weight: 800;
  animation: pulse 1.5s infinite;
}

/* loading effect */
.loading {
  opacity: 0.7;
}

/* زر التحديث */
#refreshLocationBtn {
  background: transparent;
  border: none;
  color: #ff4d5a;
  cursor: pointer;
  font-size: 1.5rem;
  transition: 0.3s;
}

#refreshLocationBtn:hover {
  transform: rotate(180deg);
}

/* animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.page-header {
  display: none;
}
.mobile-nav {
  max-width: 888px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  border-radius: 1rem 1rem 0 0;
  background: var(--color-bg);
  border-top: 1px solid #2a354b;
  height: 75px;
  z-index: 9999;
}

.mobile-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #718096; /* لون رمادي باهت للزراير العادية */
  cursor: pointer;
  font-size: 1.4rem;
  transition: 0.3s ease-in-out;
}

/* إضافة نص تحت الأيقونة زي الصورة */
.mobile-nav ul li::after {
  content: attr(title);
  font-size: 0.8rem;
  font-family: "cairo";
  font-weight: 600;
}

.mobile-nav ul li.active {
  color: #d63d46;
  transform: translateY(-2px) scale(1.2);
}


.bento-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 0.7rem;

  margin-top: 1rem;

  max-width: 888px;
  margin-left: 1rem;
  margin-right: 1rem; 
  margin: auto;
}

.card {
  background-color: #2a354b;
  border-radius: 1.5rem;
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  cursor: pointer;
  transition: 0.7s ease-in-out;
}
.card .icon {
  font-size: 1.8rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 600;
}

.azkar-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a354b;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #37445c;
  color: #e2e8f0;
  font-weight: 600;
}

.prayer {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
  background: #007465;
}
.morning,
.evening,
.tasbeeh {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
  background: #a99a6b;
}
.evening {
  background: #1b445cd4;
}
.tasbeeh {
  background: #03567c;
  grid-row: span 2;
}
.dua {
  grid-column: span 4;
  grid-row: span 1;
  flex-direction: row;
  background: #028383cb;
}

.daily {
  grid-column: span 4;
  grid-row: span 4;
  flex-direction: column;
  background: #007465;
}
.daily h2 {
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 700;
}
.daily .label {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: "cairo";
}

.azkar-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  background: linear-gradient(
    180deg,
    var(--color-cream) 0%,
    var(--color-white) 100% 
  ) no-repeat center center fixed; 
  
  background-size: cover; 
  min-height: 100vh; 
  line-height: 1.6;
  direction: rtl;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] body {
  background: linear-gradient(
    180deg, 
    var(--color-bg) 0%, 
    #1e293b 100%
  ) no-repeat center center fixed;
  
}

.back-btn {
  background: transparent;
  border: none;

  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 15px;
}

.prayer-zikr,
.morning-zikr,
.evening-zikr,
.doaa-zikr,
.tasbeeh-section {
  background: var(--color-bg, #1f2d45);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  min-height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: 0.7s ease-in-out;
  overflow: hidden;
  
}

.prayer-header {
  background: #1f2d45;
  color: #e3e3e3;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.headZikr {
  text-align: center;
  color: #d2d2d2;
}
.back-btn {
  text-align: right;
  padding: 5px 20px;
  border-radius: 10px;
  font-size: 1rem;
  background: #0b2946;
  cursor: pointer;
}
.back-btn:hover {
  background: #0b2946cc;
}

.section-azkar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  background: var(--color-bg, #1f2d45);
  overflow-y: auto;
  flex-grow: 1;

  list-style: none;
  margin: 0;
}

.section-azkar li {
  color: var(--color-text);
  background: var(--color-bg-card, var(--color-white));
  box-shadow: var(--shadow-card);
  padding: 20px;
  list-style: none;
  padding-left: 100px;
  font-weight: 600;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  box-sizing: border-box;
}
summary {
  background: #007465;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  font-family: inherit;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 1rem;
}
summary:hover {
  background: #006153;
}
.doaa li {
  margin-bottom: 1rem;
}
li .done-btn,
.copy-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  color: #fff;
  background: #d63d46;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  font-family: inherit;
}

li .done-btn:hover,
.copy-btn:hover {
  background: #b52b33;

  transform: translateY(-50%) scale(0.95);
}

li span {
  display: inline-block;
  text-align: justify;
  max-width: 60ch;
  line-height: 2.2rem;
  font-size: 0.9rem;
}

.showHiddenBtnazz {
  display: none;
  margin: 20px auto;
  padding: 12px 25px;
  background: #034884bb;
  color: #c9d4df;
  border: 1px dashed #066587;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.showHiddenBtnazz:hover {
  color: #fff;
  border-color: #d63d46;
  transform: scale(1.05);
}

.tasbeeh-container {
  font-family: "cairo", sans-serif;
  width: 100%;
  background: #dfefff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  max-width: 80%;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid #ffffffcc;
  user-select: none;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
}

#dhikrSelect {
  width: 100%;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 600;
  color: #2c3e50;
  background-color: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
}

#dhikrSelect:hover {
  border-color: #cbd5e1;
}

#dhikrSelect:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  background-color: #ffffff;
}

/* شاشة العداد */
#counter {
  font-size: 4.5rem;
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
  width: 100%;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow:
    inset 0 6px 10px #0000001a,
    inset 0 -2px 5px rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px #ffffff80;
}

#tasbeehBtn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow:
    0 10px 20px rgba(16, 185, 129, 0.4),
    inset 0 -6px 10px rgba(0, 0, 0, 0.2),
    inset 0 6px 10px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* حركة ناعمة جداً */
}

/* تأثير الضغط على زر التسبيح (أهم جزء لتجربة المستخدم) */
#tasbeehBtn:active {
  transform: translateY(4px) scale(0.96);
  box-shadow:
    0 4px 10px rgba(16, 185, 129, 0.4),
    inset 0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 -4px 10px rgba(255, 255, 255, 0.1);
}

/* كلمة توضيحية داخل الزر الفارغ */
#tasbeehBtn::after {
  content: "اضغط";
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "cairo", sans-serif;
}

#resetBtn {
  margin-top: 10px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #ef4444; /* لون أحمر هادئ */
  background: transparent;
  border: 1.5px solid #ef4444;
  border-radius: 30px; /* حواف دائرية بالكامل */
  cursor: pointer;
  transition: all 0.3s ease;
}

#resetBtn:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 12px #ef444433;
}

#resetBtn:active {
  transform: scale(0.95);
}

.close-nav {
  position: fixed;
  top: 0;
  left: -280px;

  width: 260px;
  height: 100%;

  background: #1f2d45;

  display: flex;
  flex-direction: column;

  padding: 20px;

  transition: 0.3s;

  z-index: 10000;
}

.close-nav a {
  text-decoration: none;
  color: #fff;

  padding: 12px 10px;

  border-radius: 10px;

  margin-bottom: 8px;

  transition: 0.2s;
}

.close-nav a:hover {
  background: #2f4264;
}

.close-nav.open {
  left: 0;
}
.more-btn {
  color: #fff;
  font-size: 2.2rem;
}
.side-nav {
  position: fixed;
  top: 0;
  left: -280px;

  width: 260px;
  height: 100%;

  background: #1f2d45;

  display: flex;
  flex-direction: column;

  padding: 25px 15px;

  transition: 0.35s ease;

  z-index: 10001;

  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.4);
}

.side-nav.open {
  left: 0;
}
.side-nav a {
  color: #fff;
  text-decoration: none;

  padding: 12px 15px;

  border-radius: 12px;

  margin-bottom: 8px;

  font-size: 1rem;

  transition: 0.2s;
}

.side-nav a:hover {
  background: #2e4268;

  transform: translateX(5px);
}
.close-icon {
  font-size: 1.4rem;

  margin-bottom: 20px;

  cursor: pointer;

  align-self: flex-end;

  color: #fff;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000073;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 10000;
}
.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}
