:root {
  --bg-color: #e0e5ec;
  --primary: #4a90e2;
  --wa-color: #25D366;
  --receipt-bg: #ffffff;
  --text-dark: #222;
  --text-light: #555;
}

* { 
  box-sizing: border-box; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
  background-color: var(--bg-color); 
  margin: 0; 
  padding: 20px; 
  display: flex; 
  justify-content: center; 
}

.container { 
  display: flex; 
  gap: 30px; 
  flex-wrap: wrap; 
  max-width: 900px; 
  width: 100%; 
}

.form-section, .preview-section {
  background: white; 
  padding: 25px; 
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
  flex: 1; 
  min-width: 300px;
}

h2, h3 { 
  margin-top: 0; 
  color: var(--text-dark); 
}

label { 
  display: block; 
  margin: 10px 0 5px; 
  font-weight: 600; 
  font-size: 14px; 
  color: var(--text-dark); 
}

input, select {
  width: 100%; 
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 6px;
  font-size: 14px; 
  transition: border 0.3s; 
  background: white;
}

input:focus, select:focus { 
  border-color: var(--primary); 
  outline: none; 
}

/* Styling Khusus Input File QRIS */
#qrisContainer {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  border: 1px dashed #4a90e2;
  margin-top: 10px;
}

.action-buttons { 
  display: flex; 
  gap: 10px; 
  margin-top: 20px; 
}

button {
  flex: 1; 
  padding: 12px; 
  border: none; 
  border-radius: 6px;
  font-weight: bold; 
  cursor: pointer; 
  transition: 0.3s; 
  color: white;
}

.btn-save { background: var(--primary); }
.btn-save:hover { background: #357abd; }
.btn-wa { background: var(--wa-color); }
.btn-wa:hover { background: #1ebe5d; }

/* === GAYA STRUK (Dioptimalkan untuk html2canvas) === */
.struk-wrapper { 
  display: flex; 
  justify-content: center; 
  margin-top: 15px; 
}

.receipt {
  width: 290px; 
  background: var(--receipt-bg); 
  padding: 22px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e2e2e2;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-dark);
}

.receipt-header { text-align: center; }
.receipt-header h1 { margin: 0 0 5px; font-size: 20px; letter-spacing: 2px; font-weight: bold; }
.studio-info { font-size: 11px; line-height: 1.3; color: var(--text-light); margin-bottom: 10px; }

.dashed-line { border-bottom: 2px dashed #aaa; margin: 10px 0; }

.receipt-body { font-size: 12px; }
.row { display: flex; justify-content: space-between; margin: 6px 0; }
.row span:first-child { color: var(--text-light); }
.row span:last-child { font-weight: bold; text-align: right; max-width: 65%; word-break: break-word; }

.total-row { font-size: 14px; font-weight: bold; margin-top: 10px; }
.link-row { margin-top: 10px; }
.link-text { font-size: 9px; color: var(--text-light); word-break: break-all; line-height: 1.2; margin-bottom: 10px; }

.receipt-footer { text-align: center; margin-top: 15px; }
.stars { letter-spacing: 5px; color: #888; font-size: 14px; margin: 5px 0; }
.receipt-footer p { font-size: 11px; margin: 0; color: var(--text-light); font-weight: bold; }