/* ===============================
   Global Layout
================================= */

body {
    background-color: #f5f7fb;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand-logo {
    max-height: 48px;
    width: auto;
}

@media (max-width: 576px) {
    .brand-logo {
        max-height: 38px;
    }
}

.card {
    border-radius: 1rem;
    border: none;
}

.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-weight: 600;
}

.amount-display {
    font-size: 1.75rem;
    font-weight: 600;
}

.footer-note {
    font-size: 0.9rem;
    color: #6c757d;
}

.input-group-text {
    background-color: #f8f9fa;
}

.btn-primary {
    border-radius: 0.75rem;
}

.form-control-lg {
    border-radius: 0.75rem;
}

/* ===============================
   Receipt / Details Styling
================================= */

.font-monospace {
    word-break: break-word; /* long transaction ids on mobile */
}

.badge {
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

hr {
    opacity: 0.12;
}

.alert {
    border-radius: 0.75rem;
}

/* Improve card padding on very small screens */
@media (max-width: 420px) {
    .card.card-shadow {
        padding: 1.25rem !important;
    }
}

/* Make iframe modal look cleaner */
.modal-content {
    border-radius: 1rem;
}

/* ===============================
   Print Styles
================================= */

@media print {
    body {
        background: #fff !important;
    }

    .no-print {
        display: none !important;
    }

    .card {
        border: 1px solid rgba(0,0,0,0.15) !important;
        border-radius: 0.5rem !important;
        box-shadow: none !important;
    }

    .card-shadow {
        box-shadow: none !important;
    }

    a[href]:after {
        content: "" !important;
    }

    /* Avoid truncation */
    .font-monospace {
        word-break: break-all;
    }
}
