/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
}

/* ===== DARK & LIGHT MODE ===== */
body.light-mode {
  background: #f8fafc;
  color: #0f172a;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 1.5rem 1rem;
}

.header h1 {
  font-size: 2rem;
  font-weight: 600;
}

.header p {
  opacity: 0.8;
  margin-top: 0.25rem;
}

.clock {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ===== JADWAL SHOLAT ===== */
.prayer-section {
  background: rgba(255, 255, 255, 0.05);
  margin: 1rem;
  padding: 1rem;
  border-radius: 14px;
}

body.light-mode .prayer-section {
  background: #e2e8f0;
}

.prayer-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.prayer-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.prayer {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  border-radius: 12px;
  text-align: center;
}

body.light-mode .prayer {
  background: #ffffff;
}

.prayer span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== TASBIH CONTAINER ===== */
.tasbih-container {
  flex: 1;
  padding: 1rem;
  display: grid;
  gap: 1.5rem;
}

/* ===== DZIKIR SECTION ===== */
.dzikir-section h2 {
  margin-bottom: 0.5rem;
}

.dzikir-section select,
.dzikir-section input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-top: 0.5rem;
}

.dzikir-section input {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

/* ===== COUNTER ===== */
.counter-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 18px;
  text-align: center;
}

body.light-mode .counter-section {
  background: #e2e8f0;
}

.counter-display {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.target {
  margin-bottom: 0.75rem;
}

.target select {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: none;
}

/* ===== PROGRESS BAR ===== */
.progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.3s ease;
}

/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  gap: 0.75rem;
}

.buttons button {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

#btn-add {
  background: #22c55e;
  color: #052e16;
}

#btn-reset {
  background: #ef4444;
  color: white;
}

.buttons button:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* ===== STATISTIK ===== */
.stats-section h2 {
  margin-bottom: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 12px;
  text-align: center;
}

body.light-mode .stat {
  background: #ffffff;
}

/* ===== FOOTER ===== */
.footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

#toggle-theme {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.active-prayer {
  border: 2px solid #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
