* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #1a73e8, #3a9bdc);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: fadeInUp 0.8s ease;
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #1a73e8;
}

.title {
  font-size: 1.8rem;
  color: #1a73e8;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
}

.donation-target {
  background: #e8f0fe;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.target-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.target-title {
  font-weight: 600;
  color: #1a73e8;
}

.target-amount {
  font-weight: 600;
  color: #333;
}

.progress-bar {
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #1a73e8;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form label {
  text-align: left;
  font-weight: 500;
  color: #333;
}

.input-group {
  position: relative;
}

.input-group span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.form input {
  padding: 12px 12px 12px 30px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.form button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #1a73e8;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.form button:hover {
  background: #155ab6;
}

.quick-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.quick {
  flex: 1;
  background: #e8f0fe;
  border: 1px solid #1a73e8;
  color: #1a73e8;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 0;
  cursor: pointer;
  transition: 0.3s;
}

.quick:hover {
  background: #1a73e8;
  color: #fff;
}

.qris-box {
  background: #f9f9f9;
  border: 2px dashed #1a73e8;
  border-radius: 16px;
  padding: 20px;
  display: inline-block;
  margin: 15px auto;
  position: relative;
}

.qrcode {
  animation: fadeIn 1s ease;
}

.countdown {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #e74c3c;
  font-weight: 600;
}

.scan-text {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.action-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.download-btn {
  background: #3a9bdc;
  color: #fff;
}

.download-btn:hover {
  background: #267bbf;
}

.cancel-btn {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #1a73e8;
}

.cancel-btn:hover {
  background: #1a73e8;
  color: #fff;
}

.donation-history {
  margin-top: 20px;
  text-align: left;
}

.donation-history h3 {
  color: #1a73e8;
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-tabs {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 8px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-bottom: 2px solid #1a73e8;
  color: #1a73e8;
  font-weight: 600;
}

.donation-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.donation-info {
  display: flex;
  flex-direction: column;
}

.donation-amount {
  font-weight: 600;
  color: #1a73e8;
}

.donation-time {
  color: #777;
  font-size: 0.85rem;
}

.donation-status {
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 12px;
  align-self: center;
}

.status-success {
  background: #e8f6ef;
  color: #28a745;
}

.status-cancelled {
  background: #fde8e8;
  color: #dc3545;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.hidden {
  display: none;
}

.loading {
  text-align: center;
  padding: 10px;
  color: #666;
}

.error-message {
  color: #dc3545;
  background: #fde8e8;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 0.9rem;
}

.firebase-warning {
  color: #856404;
  background: #fff3cd;
  padding: 8px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 0.8rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}