/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0,0,0,0.6);
  border-radius: 0 0 20px 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  margin-bottom: 30px;
}

.header-text h1 {
  font-size: 26px;
  color: #00ffb3;
}

.header-text p {
  font-size: 14px;
  color: #caff00;
  margin-top: 5px;
}

.navbar {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap: wrap;
}

.navbar li a {
  text-decoration: none;
  color: #caff00;
  font-weight: 600;
  transition: all 0.3s;
}

.navbar li a:hover {
  color: #00e676;
  transform: scale(1.05);
}

/* Receipt Container */
.receipt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  flex: 1;
}

/* Receipt Card */
.receipt-card {
  width: 100%;
  max-width: 550px;
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.receipt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.receipt-card h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  color: #222;
}

/* Receipt Rows */
.receipt-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.receipt-row span:first-child {
  font-weight: 600;
  color: #555;
}

.receipt-row span:last-child {
  color: #111;
}

/* Divider */
hr {
  margin: 20px 0;
  border: none;
  height: 1px;
  background: #ddd;
}

/* Total */
.total {
  font-weight: bold;
  font-size: 16px;
  color: #4400ff;
}

/* Receipt Buttons */
.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.receipt-actions button {
  padding: 14px 25px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.receipt-actions button:first-child {
  background: linear-gradient(135deg, #ff9800, #ff5722);
}

.receipt-actions button:last-child {
  background: linear-gradient(135deg, #4caf50, #00c853);
}

.receipt-actions button:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Footer Info */
.receipt-footer {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 15px;
}

.thanks {
  margin-top: 10px;
  color: #00e676;
  font-weight: bold;
}

/* Print Styles */
@media print {
  .receipt-actions {
    display: none;
  }

  body {
    background: white;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    text-align: center;
  }

  .navbar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .receipt-card {
    padding: 20px;
  }

  .receipt-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .receipt-card {
    padding: 18px;
  }

  .receipt-actions button {
    padding: 12px 18px;
    font-size: 14px;
  }
}