:root {
  --primary: #4caf50;
  --primary-light: #e8f5e9;
  --primary-dark: #2e7d32;
  --secondary: #3f51b5;
  --text: #333333;
  --text-light: #757575;
  --background: #262222;
  --card: #1e1c1c;
  --border: #e0e0e0;
  --success: #4caf50;
}


.success-card {
  background-color: var(--card);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 3rem;
}

.success-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.success-icon {
  background-color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success-icon i {
  color: var(--success);
  font-size: 40px;
}

.success-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.success-subtitle {
  opacity: 0.9;
  font-weight: 400;
  font-size: 1.1rem;
}

.order-details {
  padding: 2rem;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.order-summary h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.order-summary p {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.status-badge {
  background-color: var(--success);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.status-badge i {
  margin-right: 5px;
}

.order-items-section {
  margin-top: 2rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  color: var(--primary-dark);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.item-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.item-card:hover {
  transform: translateY(-5px);
}

.item-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.item-details {
  padding: 1.2rem;
}

.item-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.order-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.total-prices {
  font-weight: 600;
  color: var(--primary-dark);
}

.qty {
  background-color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 4px;
  color: var(--primary-dark);
}

.no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: var(--text-light);
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}


.btn i {
  margin-right: 8px;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ffd700;
  opacity: 0;
}

@keyframes fall {
  0% {
    opacity: 1;
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    top: 100%;
    transform: translateX(100px) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .order-summary {
    flex-direction: column;
    text-align: center;
  }

  .status-badge {
    margin-top: 1rem;
  }
}
