/* ═══════════════════════════════════════════════════════════
   KALENDER HIJRIYAH
═══════════════════════════════════════════════════════════ */

.kalender-today-card {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: white;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 12px 16px;
  text-align: center;
}

.kalender-today-hijri {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.kalender-today-masehi {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Navigator */
.kalender-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin-bottom: 4px;
}

.kalender-nav button {
  width: 36px;
  height: 36px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #374151);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.kalender-nav button:hover {
  background: #0891b2;
  color: white;
  border-color: #0891b2;
}

.kalender-nav-title {
  text-align: center;
}

.kalender-nav-title span {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #111827);
}

.kalender-nav-title small {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
}

/* Grid */
.kalender-grid-wrap {
  padding: 0 16px;
  margin-bottom: 16px;
}

.kalender-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.kalender-day-headers span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
  padding: 4px 0;
}

.kalender-day-headers span:first-child { color: #dc2626; }
.kalender-day-headers span:last-child  { color: #0891b2; }

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

.kal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  padding: 2px;
}

.kal-cell:not(.empty):hover { background: #e0f2fe; }
.dark-mode .kal-cell:not(.empty):hover { background: #0c4a6e; }

.kal-cell.empty { pointer-events: none; }

.kal-cell.kal-today {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

.kal-cell.kal-today .kal-hijri,
.kal-cell.kal-today .kal-masehi { color: white; }

.kal-hijri {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  line-height: 1;
}

.kal-masehi {
  font-size: 9px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1;
  margin-top: 2px;
}

.kal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
  position: absolute;
  bottom: 3px;
}

.kal-cell.kal-today .kal-dot { background: white; }

/* Events list */
.kalender-events-section {
  padding: 0 16px 24px;
}

.kalender-events-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kalender-events-section h3 i { color: #f59e0b; }

.kal-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.kal-event-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.kal-event-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.kal-event-info small {
  font-size: 11px;
  color: var(--text-secondary, #6b7280);
}

.kal-no-event {
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
  text-align: center;
  padding: 16px;
}


/* ═══════════════════════════════════════════════════════════
   DOA HARIAN
═══════════════════════════════════════════════════════════ */

.doa-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 8px;
  background: var(--card-bg, #fff);
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
}

.doa-search-wrap i { color: #9ca3af; font-size: 14px; }

.doa-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--text-primary, #111827);
}

/* Tabs kategori */
.doa-category-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.doa-cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  background: var(--card-bg, #fff);
  color: var(--text-secondary, #6b7280);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.doa-cat-tab.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  border-color: transparent;
}

/* Doa list */
.doa-list {
  padding: 0 16px 24px;
}

.doa-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.doa-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.doa-item-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin-bottom: 3px;
}

.doa-item-info span {
  font-size: 11px;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.dark-mode .doa-item-info span {
  background: #451a03;
  color: #fbbf24;
}

.doa-item-arrow { color: #9ca3af; font-size: 12px; }

.doa-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary, #9ca3af);
}

.doa-empty i { font-size: 32px; margin-bottom: 12px; display: block; }
.doa-empty p { font-size: 14px; }

/* Detail modal */
.doa-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.doa-detail-modal.active {
  opacity: 1;
  pointer-events: all;
}

.doa-detail-content {
  background: var(--card-bg, #fff);
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 8px 20px 32px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doa-detail-modal.active .doa-detail-content {
  transform: translateY(0);
}

.doa-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
}

.doa-detail-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #111827);
}

.doa-detail-header button {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  font-size: 13px;
}

/* Handle bar */
.doa-detail-content::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 0 auto 8px;
}

.doa-arab {
  font-size: 22px;
  line-height: 2;
  text-align: right;
  direction: rtl;
  color: var(--text-primary, #111827);
  font-family: 'Amiri Quran', 'Traditional Arabic', serif;
  background: #fefce8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.dark-mode .doa-arab {
  background: #1c1917;
}

.doa-latin {
  font-size: 14px;
  color: #0891b2;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 12px;
  padding: 0 4px;
}

.doa-arti {
  font-size: 14px;
  color: var(--text-primary, #374151);
  line-height: 1.7;
  margin-bottom: 12px;
  padding: 0 4px;
}

.doa-fadilah {
  font-size: 12px;
  color: #16a34a;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.dark-mode .doa-fadilah {
  background: #052e16;
}

.doa-copy-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.doa-copy-btn:hover { opacity: 0.9; }
