/* إلغاء التحديد الأزرق عند الضغط في جميع الصفحات */
* {
  -webkit-tap-highlight-color: transparent;
  /* للموبايل (Chrome, Safari) */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* زيادة تأكيد للموبايل */
}

/* إلغاء الإطار الأزرق (Outline) الذي يظهر عند الضغط بالماوس أو الكيبورد */
*:focus {
  outline: none !important;
}

/* منع اختيار النصوص في الأزرار ليعطي إحساس تطبيق حقيقي */
button,
.menu-btn,
.choice-card,
.menu-card {
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --main: #8e6d1c;
  --gold: #d4af37;
  --bg: #f4ece1;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.header {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.hasanat-badge {
  background: white;
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  color: var(--main);
  font-weight: bold;
}

.counter-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#dhikr-text {
  font-size: 2rem;
  color: var(--main);
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.big-btn {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: white;
  border: 8px solid var(--gold);
  color: var(--main);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.big-btn:active {
  transform: scale(0.9);
  background: #fef9e7;
}

.total-session {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #666;
}

/* إلغاء التحديد الأزرق عند الضغط في جميع الصفحات */
* {
  -webkit-tap-highlight-color: transparent;
  /* للموبايل (Chrome, Safari) */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* زيادة تأكيد للموبايل */
}

/* إلغاء الإطار الأزرق (Outline) الذي يظهر عند الضغط بالماوس أو الكيبورد */
*:focus {
  outline: none !important;
}

/* منع اختيار النصوص في الأزرار ليعطي إحساس تطبيق حقيقي */
button,
.menu-btn,
.choice-card,
.menu-card {
  user-select: none;
  -webkit-user-select: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4ece1;
  color: #333;
  overflow: hidden;
}

#selection-screen,
#tasbih-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.choice-card {
  width: 100%;
  max-width: 300px;
  background: white;
  border: 2px solid #d4af37;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: #8e6d1c;
}

/* --- تأثير تبديل الأذكار --- */
#current-dhikr {
  font-size: 1.8rem;
  color: #8e6d1c;
  font-weight: bold;
  min-height: 60px;
  margin-bottom: 20px;
  transition: 0.4s;
}

.dhikr-change {
  transform: translateY(-20px);
  opacity: 0;
}

.tasbih-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #fff;
  border: 12px solid #d4af37;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  position: relative;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.tasbih-circle:active {
  transform: scale(0.9);
}

.counter-val {
  font-size: 4.5rem;
  font-weight: bold;
  color: #8e6d1c;
  line-height: 1;
  transition: 0.1s;
}

.bump {
  transform: scale(1.15);
}

.total-hasanat-info {
  margin-top: 30px;
  background: #8e6d1c;
  padding: 10px 25px;
  border-radius: 50px;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.back-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #8e6d1c;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
}

