/* style.css */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  color: #2e2e2e;
  min-height: 100vh;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(46,125,50,0.15);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(40px); }
  to { opacity:1; transform:translateY(0); }
}

h1, h2 {
  color: #1b5e20;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}

form label {
  display:block;
  margin:18px 0 6px;
  font-weight:600;
  color:#1b5e20;
}

input, select {
  width:100%;
  padding:14px;
  border:2px solid #a5d6a7;
  border-radius:10px;
  font-size:16px;
  transition:all 0.3s;
}

input:focus, select:focus {
  border-color:#2e7d32;
  box-shadow:0 0 0 3px rgba(46,125,50,0.2);
  outline:none;
}

button {
  width:100%;
  padding:16px;
  background: linear-gradient(to right, #2e7d32, #388e3c);
  color:white;
  border:none;
  border-radius:10px;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  transition:transform 0.2s, box-shadow 0.2s;
  margin-top:20px;
}

button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:0 10px 25px rgba(46,125,50,0.3);
}

#message {
  margin:20px 0;
  padding:14px;
  border-radius:10px;
  text-align:center;
  font-weight:600;
  animation: fadeIn 0.6s ease;
}

.success { background:#e8f5e9; color:#1b5e20; }
.error   { background:#ffebee; color:#c62828; }

.progress-bar {
  height:14px;
  background:#e0e0e0;
  border-radius:7px;
  overflow:hidden;
  margin:12px 0;
}

#bar {
  height:100%;
  background:linear-gradient(to right, #4caf50, #81c784);
  width:0%;
  transition:width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card, .rank-item {
  background:#f1f8e9;
  padding:16px;
  margin:16px 0;
  border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
}

.card:hover, .rank-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:0 12px 30px rgba(46,125,50,0.25);
}

.ayat-picker {
  position: relative;
  height: 200px;
  overflow: hidden;
  border: 2px solid #a5d6a7;
  border-radius: 12px;
  background: #fff;
  margin: 10px 0;
  touch-action: pan-y;
}

.ayat-wheel {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #e8f5e9 40%, #e8f5e9 60%, transparent);
  pointer-events: none;
}

.ayat-item {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #555;
  transition: transform 0.3s, color 0.3s, opacity 0.3s;
  opacity: 0.6;
}

.ayat-item.active {
  color: #1b5e20;
  font-size: 32px;
  transform: scale(1.3);
  opacity: 1;
  font-weight: 900;
}

/* Global style untuk custom dropdown (dipakai di semua halaman kalau perlu) */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.custom-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #a5d6a7;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
}

.custom-input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.15);
  outline: none;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 100;
  display: none;
  animation: fadeIn 0.3s ease;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-item:hover {
  background: #e8f5e9;
}

.suggestion-item.selected {
  background: #4caf50;
  color: white;
}

.suggestion-item .icon {
  width: 36px;
  height: 36px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #2e7d32;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#message {
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  display: none;
}

#message.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

#message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 20px; margin: 20px; }
}

