/* GMZ Events — Public Styles
   Mobiel-first, responsief.
   ============================================ */

/* Scanner wrapper */
.gmz-scanner-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 16px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* User bar — shown when logged in */
.gmz-scanner-userbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a3a5c;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.gmz-scanner-userbar__name {
    opacity: 0.9;
}

.gmz-scanner-userbar__logout {
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.8rem;
    opacity: 0.75;
    white-space: nowrap;
}

.gmz-scanner-userbar__logout:hover {
    opacity: 1;
}

/* Login block — shown when not logged in */
.gmz-scanner-login {
    max-width: 540px;
    margin: 40px auto;
    padding: 40px 32px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gmz-scanner-login__message {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 24px;
}

.gmz-scanner-login__btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #1a3a5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.gmz-scanner-login__btn:hover,
.gmz-scanner-login__btn:focus {
    background-color: #12284a;
    color: #ffffff;
}

.gmz-scanner-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}
/* QR reader container */
#gmz-qr-reader {
    width: 100%;
    min-height: 300px;
    max-width: 500px;
    margin: 0 auto 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

#gmz-qr-reader video {
    width: 100% !important;
    border-radius: 6px;
}

/* Scan result */
.gmz-scan-result {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    text-align: center;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
    min-height: 56px;
}

.gmz-scan-result__message {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.gmz-scan-result__details {
    font-size: 0.9rem;
    margin-top: 8px;
}

.gmz-scan-result__details p {
    margin: 4px 0;
}

.gmz-scan-result__name {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Success state */
.gmz-scan-result--success {
    background-color: #eafaf1;
    border-color: #27ae60;
    color: #1e8449;
}

/* Warning state (dubbelscan) */
.gmz-scan-result--warning {
    background-color: #fef9e7;
    border-color: #e67e22;
    color: #ca6f1e;
}

/* Error state */
.gmz-scan-result--error {
    background-color: #fdedec;
    border-color: #e74c3c;
    color: #c0392b;
}

/* Error message for no-access */
.gmz-error {
    color: #c0392b;
    background: #fdedec;
    border: 1px solid #e74c3c;
    padding: 12px 16px;
    border-radius: 6px;
}

/* Status badges */
.gmz-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gmz-badge--unused {
    background-color: #eafaf1;
    color: #1e8449;
    border: 1px solid #27ae60;
}

.gmz-badge--used {
    background-color: #fef9e7;
    color: #ca6f1e;
    border: 1px solid #e67e22;
}

.gmz-badge--cancelled {
    background-color: #fdedec;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

/* Ticket download list */
.gmz-ticket-download-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gmz-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gmz-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    gap: 16px;
}

.gmz-ticket-item__info {
    flex: 1;
}

.gmz-ticket-item__qr {
    text-align: center;
    flex-shrink: 0;
}

.gmz-ticket-item__qr img {
    display: block;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
}

/* Payment confirmation page
   ============================================ */
.gmz-payment-confirmation {
    max-width: 600px;
    margin: 40px auto;
    padding: 32px 40px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    text-align: center;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gmz-confirmation-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}

.gmz-confirmation-icon--success {
    color: #27ae60;
}
.gmz-confirmation-icon--pending {
    color: #e67e22;
}
.gmz-confirmation-icon--error {
    color: #e74c3c;
}

.gmz-payment-confirmation--paid {
    border-color: #27ae60;
}
.gmz-payment-confirmation--failed,
.gmz-payment-confirmation--canceled,
.gmz-payment-confirmation--expired,
.gmz-payment-confirmation--error {
    border-color: #e74c3c;
}
.gmz-payment-confirmation--pending,
.gmz-payment-confirmation--open,
.gmz-payment-confirmation--authorized {
    border-color: #e67e22;
}

.gmz-confirmation-title {
    font-size: 1.6rem;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.gmz-confirmation-intro {
    font-size: 1rem;
    color: #444;
    margin-bottom: 24px;
}

.gmz-confirmation-details {
    text-align: left;
    margin: 24px 0;
}

.gmz-confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.gmz-confirmation-table th,
.gmz-confirmation-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    vertical-align: top;
}

.gmz-confirmation-table th {
    width: 160px;
    font-weight: 600;
    color: #555;
    text-align: left;
}

.gmz-confirmation-table td {
    color: #222;
}

.gmz-confirmation-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gmz-confirmation-notice p {
    margin: 0 0 8px;
}
.gmz-confirmation-notice p:last-child {
    margin-bottom: 0;
}

.gmz-confirmation-notice--info {
    background-color: #eaf4fb;
    border-left: 4px solid #2980b9;
    color: #1a5276;
}

.gmz-confirmation-notice--warning {
    background-color: #fef9e7;
    border-left: 4px solid #e67e22;
    color: #784212;
}

.gmz-confirmation-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: #1a3a5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.gmz-confirmation-btn:hover,
.gmz-confirmation-btn:focus {
    background-color: #12284a;
    color: #ffffff;
}

@media (max-width: 520px) {
    .gmz-payment-confirmation {
        padding: 24px 18px;
        margin: 20px auto;
    }

    .gmz-confirmation-table th {
        width: 120px;
    }
}

/* "Volgende scan" button */
.gmz-next-scan-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background-color: #1a3a5c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gmz-next-scan-btn:hover,
.gmz-next-scan-btn:focus {
    background-color: #12284a;
    outline: 2px solid #12284a;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .gmz-ticket-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gmz-scan-result__message {
        font-size: 0.95rem;
    }
}
