/* ===================== style.css ===================== */

/* RESET DAN GLOBAL STYLE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #096b68 0%, #0a7b78 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 414px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* HEADER */
.header {
  background: linear-gradient(135deg, #096b68 0%, #0a7b78 100%);
  padding: 20px;
  color: white;
  text-align: center;
  position: relative;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

/* QUICK ACTIONS */
.quick-actions {
  padding: 20px;
  background: #fff;
}

.quick-actions h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #096b68;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.action-card {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 15px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
  border-color: #096b68;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(9, 107, 104, 0.1);
}

.action-card.active {
  background: linear-gradient(135deg, #096b68 0%, #0a7b78 100%);
  color: white;
  border-color: #096b68;
}

.action-card i {
  font-size: 20px;
  color: #096b68;
  margin-bottom: 8px;
}

.action-card.active i {
  color: white;
}

.action-card h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}

.action-card p {
  font-size: 10px;
  opacity: 0.7;
}

/* PAGE HANDLING */
.page {
  display: none;
  padding-bottom: 90px; /* 🔥 supaya konten tidak ketutupan menu */
}

.page.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #096b68;
  cursor: pointer;
  margin-right: 15px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: rgba(9, 107, 104, 0.1);
}

.page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* MENU ITEM */
.menu-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item:hover {
  border-color: #096b68;
  box-shadow: 0 2px 10px rgba(9, 107, 104, 0.1);
}

.menu-item i {
  font-size: 20px;
  color: #096b68;
  margin-right: 15px;
  width: 25px;
}

.menu-item-content {
  flex: 1;
}

.menu-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
  color: #333;
}

.menu-item p {
  font-size: 12px;
  color: #666;
}

.menu-item .arrow {
  color: #ccc;
  font-size: 16px;
}

/* SURAH LIST */
.surah-list {
  max-height: 400px;
  overflow-y: auto;
}

.surah-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.surah-item:hover {
  background: #f8f9fa;
}

.surah-number {
  width: 40px;
  height: 40px;
  background: #096b68;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 15px;
}

.surah-info h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
}

.surah-info p {
  font-size: 12px;
  color: #666;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex: 1;
}

.nav-item.active {
  background: rgba(9, 107, 104, 0.1);
}

.nav-item i {
  font-size: 20px;
  color: #666;
  margin-bottom: 5px;
}

.nav-item.active i {
  color: #096b68;
}

.nav-item span {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.nav-item.active span {
  color: #096b68;
}

/* PRAYER TIMES */
.prayer-times {
  background: #fff;
  margin: 0 20px 20px;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.prayer-times h3 {
  color: #096b68;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prayer-item {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.prayer-item.current {
  background: #096b68;
  color: white;
}

.prayer-item h4 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}

.prayer-item p {
  font-size: 14px;
  font-weight: 600;
}

/* SEARCH BAR */
.search-bar {
  margin: 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: #096b68;
}

.search-bar i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

/* QIBLA COMPASS */
.qibla-compass {
  text-align: center;
  padding: 40px 20px;
}

.compass-circle {
  width: 200px;
  height: 200px;
  border: 3px solid #096b68;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  background: linear-gradient(45deg, #f8f9fa 0%, #fff 100%);
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 80px;
  background: linear-gradient(to top, #096b68 0%, #ff4444 50%);
  border-radius: 2px;
  transform-origin: center bottom;
  animation: rotate 4s ease-in-out infinite;
}

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

.location-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin: 20px;
}

.location-info h4 {
  color: #096b68;
  font-weight: 600;
  margin-bottom: 5px;
}

/* DHIKR CARD (JUGA UNTUK DOA) */
.dhikr-card {
  background: #fff;
  margin: 10px 20px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #096b68;
}

.dhikr-arabic {
  font-size: 24px;
  text-align: right;
  margin-bottom: 10px;
  color: #096b68;
  line-height: 1.6;
}

.dhikr-translation {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.dhikr-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.counter-btn {
  background: #096b68;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.counter-btn:hover {
  background: #0a7b78;
  transform: scale(1.1);
}

.counter-display {
  font-size: 24px;
  font-weight: 600;
  color: #096b68;
}
