body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Gunakan summary-container sebagai satu-satunya container card */
.summary-container {
    max-width: 600px;
    margin: 4rem auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-container h2 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.summary-container .amount {
    color: #28a745;
    font-weight: 700;
    font-size: 2rem;
}

.summary-container .desc {
    font-style: italic;
    color: #6c757d;
}

.label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

.centered-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 0.8s ease-out forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    color: #007bff;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.submit-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.sales-header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: red;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem;
    animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.modal-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}
.footer {
    background-color: #0a192f; /* dark navy */
}
.footer img {
    filter: grayscale(100%); /* logo hitam putih */
    transition: filter 0.3s ease;
}
.footer img:hover {
    filter: none; /* hilangkan grayscale saat hover */
}
.footer {
    font-family: Arial, sans-serif;
}
.footer-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLogo 0.8s ease forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s forwards;
}

.logo-animate:nth-child(1) { animation-delay: 0.1s; }
.logo-animate:nth-child(2) { animation-delay: 0.2s; }
.logo-animate:nth-child(3) { animation-delay: 0.3s; }
.logo-animate:nth-child(4) { animation-delay: 0.4s; }
.logo-animate:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
::placeholder {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #c0c6cf; /* abu-abu pudar */
  opacity: 1; /* pastikan placeholder tetap terlihat */
  transition: color 0.3s ease;
}

.form-control:focus::placeholder {
  color: #d4d7dc; /* sedikit lebih terang saat focus */
}

input:not(:placeholder-shown)::-webkit-input-placeholder {
  color: transparent;
}
input:not(:placeholder-shown):-ms-input-placeholder {
  color: transparent;
}
input:not(:placeholder-shown)::placeholder {
  color: transparent;
}

.copy-btn { cursor: pointer; color: #0d6efd; }
        .copy-btn:hover { text-decoration: underline; }
   
/* Responsive adjustments */

.container {
    max-width: 600px;
    margin: auto;
    padding: 1rem;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header h4 {
    font-size: 1.3rem;
}

.table th,
.table td {
    font-size: 0.95rem;
    word-break: break-word;
}

.copy-btn {
    cursor: pointer;
    color: #0d6efd;
    font-size: 0.9rem;
}

.copy-btn:hover {
    text-decoration: underline;
}

.qr-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.alert h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.alert .fw-bold.fs-4 {
    font-size: 1.2rem;
}

/* Make button full width on small screens */
@media (max-width: 576px) {
    .d-grid .btn {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}
.justify-text {
  text-align: justify;
}
.qris-title {
  color: var(--primary-color, #4361ee);
  text-align: center;
  margin-bottom: 1.5rem;
}

.qris-note {
  font-size: 1.2rem;
  color: #6c757d;
  margin-top: 0.75rem;
}
.modal-header {
      background-color: var(--bs-primary);
      color: white;
    }
    .toggle-btn {
      margin: 20px 0;
      display: inline-flex;
      align-items: center;
    }
    .toggle-btn i {
      margin-right: 8px;
    }

#loadingOverlay {
  display: none;              /* default disembunyikan */
  position: fixed;            /* bukan absolute */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* semi-transparent */
  z-index: 9999;              /* di atas segalanya */
  align-items: center;        /* center content */
  justify-content: center;
  flex-direction: column;
  display: flex;              /* flexbox untuk center spinner */
}
#loadingOverlay.active { display: flex; }