
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
.receipt {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.receipt::before {
    content: "GTEC MIS • OFFICIAL RECEIPT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 40px;
    font-weight: 700;
    color: rgba(0, 33, 71, 0.08);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f6f9;
}

/* HEADER */
.header {
    background: #002147;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.header h1 {
    font-size: 18px;
}

/* MAIN */
.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 15px;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* TOP BAR */
.top-bar {
    padding: 12px 20px;
    background: #f4f6f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.back-btn {
    text-decoration: none;
    background: #777;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.page-title {
    font-size: 13px;
    color: #555;
}

/* SECTION HEADER */
.section-header {
    background: #e9eef5;
    padding: 15px 20px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    color: #002147;
}

/* BODY */
.form-body {
    padding: 25px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input:focus {
    border-color: #002147;
    outline: none;
}

/* BUTTON */
.form-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

button {
    background: #002147;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #003366;
}

/* RESULT BOX */
.result {
    margin-top: 20px;
    padding: 15px;
    border-left: 5px solid #002147;
    background: #f4f6f9;
    border-radius: 5px;
}

.paid {
    color: green;
    font-weight: bold;
}

.pending {
    color: red;
    font-weight: bold;
}

/* FOOTER */
.footer {
    background: #002147;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    font-size: 13px;
}

 

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-header h2 {
    color: #002147;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.receipt-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.print-btn {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.receipt {
    position: relative;
    overflow: hidden;
}

.receipt::before {
    content: "GTEC MIS • OFFICIAL RECEIPT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 45px;
    font-weight: 700;
    color: rgba(0, 33, 71, 0.08);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

@media print {

    .receipt {
        position: relative !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body * {
        visibility: hidden;
    }

    #receipt, #receipt * {
        visibility: visible;
    }

    #receipt {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .print-btn {
        display: none !important;
    }
    .receipt::before {
        content: "GTEC MIS • OFFICIAL RECEIPT" !important;
        position: fixed; /* IMPORTANT FIX */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-30deg);
        font-size: 50px;
        font-weight: 700;
        color: rgba(0, 33, 71, 0.12);
        white-space: nowrap;
        z-index: 0;
        pointer-events: none;
    }

    .receipt * {
        position: relative;
        z-index: 1;
    }

    button {
        display: none !important;
    }
}


.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-logo img {
    height: 60px;
    margin-bottom: 10px;
}

.receipt-header h2 {
    color: #002147;
    margin-bottom: 5px;
}



.receipt-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;   /* RIGHT ALIGN */
    gap: 10px;
}

/* same size buttons */
.pay-btn,
.print-btn {
    min-width: 140px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
}

/* Pay Now */
.pay-btn {
    background: #28a745;
    color: white;
}

/* Print */
.print-btn {
    background: #002147;
    color: white;
}

/* hover effect */
.pay-btn:hover {
    background: #218838;
}

.print-btn:hover {
    background: #003366;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;   /* right align */
    gap: 10px;
    margin-top: 15px;
}

/* base button style */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    min-width: 120px;   /* forces equal sizing */
    text-align: center;
}

/* Pay button (primary) */
.pay-btn {
    background: #002147;
    color: white;
}

/* Print button */
.secondary-btn {
    background: #777;
    color: white;
}

.success-box {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f0fff4;
    border-left: 4px solid #28a745;
    color: #155724;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
}

.success-box.show {
    display: block;
}

.error-box {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.error-box.show {
    display: block;
}
.hide {
    display: none;
}
.show {
    display: block;

}

.event-tag{
    padding:20px;
}

.tag-card{
    width:350px;
    border:2px solid #000;
    border-radius:12px;
    padding:20px;
    text-align:center;
    margin:auto;
}

.tag-logo{
    width:80px;
    margin-bottom:10px;
}

.tag-name{
    font-size:24px;
    font-weight:bold;
    margin-top:10px;
}

.tag-institution{
    margin-top:8px;
    font-size:16px;
}

.tag-reference{
    margin-top:15px;
    font-size:14px;
}



.tag-qr {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

@media print {

    body * {
        visibility: hidden !important;
    }

    /* PRINT RECEIPT ONLY */
    body.print-receipt #receiptSection,
    body.print-receipt #receiptSection * {
        visibility: visible !important;
    }

    body.print-receipt #receiptSection {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* PRINT TAG ONLY */
    body.print-tag #eventTag,
    body.print-tag #eventTag * {
        visibility: visible !important;
    }

    body.print-tag #eventTag {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    button {
        display: none !important;
    }
}