/* Image Upload Styles */
.pr-image-upload-wrapper {
    margin-top: 8px;
}

#event-banner-image {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.pr-image-upload-area {
    border: 2px dashed rgba(92, 10, 20, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(92, 10, 20, 0.02);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-image-upload-area:hover {
    border-color: rgba(92, 10, 20, 0.6);
    background: rgba(92, 10, 20, 0.05);
}

.pr-image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pr-upload-icon {
    font-size: 48px;
    color: rgba(92, 10, 20, 0.4);
}

.pr-upload-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #5C0A14;
}

.pr-upload-subtext {
    margin: 0;
    font-size: 13px;
    color: rgba(92, 10, 20, 0.6);
}

.pr-image-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.pr-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pr-remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pr-current-image {
    margin-top: 16px;
    padding: 12px;
    background: rgba(92, 10, 20, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(92, 10, 20, 0.1);
}

.pr-current-image-label {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #5C0A14;
}

.pr-current-image-thumb {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* Pre-Registration styles and ticket/card design */
:root {
    --pr-primary: #5C0A14;
    --pr-secondary: #8d1436;
    --pr-accent: #f8f2e8;
    --pr-gradient: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
}

/* Custom checkbox (global) */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.custom-checkbox input[type="checkbox"],
.custom-checkbox input[type="radio"] {
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pr-primary);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: #fff;
    pointer-events: none;
}

.custom-checkbox input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.custom-checkbox .custom-checkbox-label {
    pointer-events: none;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
    display: block;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid var(--pr-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="radio"]:checked + .checkmark:after {
    display: block;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pr-primary);
    border: none;
    transform: translate(-50%, -50%);
}

.custom-checkbox .label {
    cursor: pointer;
}

.custom-checkbox[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.pr-ticket {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(155, 33, 33, 0.08);
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(155, 33, 33, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.pr-ticket::before {
    display: none;
}

.pr-ticket .pr-qr {
    flex: 0 0 320px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    order: 1;
    margin: 0;
}

.pr-ticket .pr-qr::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: var(--pr-gradient);
    border-radius: 0 0 8px 8px;
}

.pr-ticket .pr-qr .qr-frame {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(155, 33, 33, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.pr-ticket .pr-qr .qr-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(155, 33, 33, 0.15);
    border-radius: 12px;
    pointer-events: none;
}

.pr-ticket .pr-qr img {
    width: 100%;
    height: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
}

.pr-ticket .pr-qr .qr-token-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.pr-ticket .pr-qr .qr-token-footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pr-primary);
}

.pr-ticket .pr-qr .qr-token-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.pr-ticket .pr-qr .pr-save-qr-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    border: 1px solid rgba(155, 33, 33, 0.18);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--pr-primary);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.pr-ticket .pr-qr .pr-save-qr-btn .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    position: relative;
    top: 1px;
}

.pr-ticket .pr-qr .pr-save-qr-btn:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(155, 33, 33, 0.12);
}

.pr-ticket .pr-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
    min-width: 0;
}

.pr-ticket .registration-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--pr-primary);
    margin: 0 0 5px 0;
    padding: 0;
    letter-spacing: -0.5px;
    background: var(--pr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pr-ticket .registration-list {
    color: #2d3748;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(155, 33, 33, 0.05);
    min-width: 0;
}

.pr-ticket .registration-list div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.pr-ticket .registration-list strong {
    color: var(--pr-primary);
    font-weight: 600;
    min-width: 90px;
    flex-shrink: 0;
}

.pr-ticket .registration-list .qr-token {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(155, 33, 33, 0.1);
    width: 100%;
}

    .pr-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 0.95rem;
        line-height: 1.2;
        font-weight: 700;
        border: 1px solid transparent;
        text-transform: capitalize;
        white-space: nowrap;
    }

    .pr-status-badge.pr-status-not-claimed {
        background: rgba(226, 232, 240, 0.85);
        color: #334155;
        border-color: rgba(148, 163, 184, 0.5);
    }

    .pr-status-badge.pr-status-claimed {
        background: rgba(72, 187, 120, 0.16);
        color: #1f7a3b;
        border-color: rgba(72, 187, 120, 0.35);
    }

    .pr-status-badge.pr-status-accepted {
        background: rgba(99, 102, 241, 0.14);
        color: #3730a3;
        border-color: rgba(99, 102, 241, 0.35);
    }

    .pr-status-badge.pr-status-rejected {
        background: rgba(248, 113, 113, 0.16);
        color: #991b1b;
        border-color: rgba(248, 113, 113, 0.35);
    }

    .pr-status-scanned {
        color: #2f855a;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .pr-status-icon {
        font-size: 18px;
        line-height: 1;
        vertical-align: middle;
    }

    .pr-ticket .hint {
        color: #718096;
        font-size: 13px;
        margin-top: 16px;
        padding: 10px 14px;
        background: rgba(44, 170, 65, 0.05);
        border-radius: 8px;
        font-weight: 500;
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }

/* Small responsive tweaks */
@media (max-width: 900px) {
    .pr-scan-layout {
        grid-template-columns: 1fr !important;
    }

    .pr-scan-camera-section {
        max-width: none;
        width: 100%;
    }

    .pr-scan-result-section {
        width: 100%;
        min-width: 0;
    }

    .table-container:-webkit-full-screen .pr-scan-layout,
    .table-container:fullscreen .pr-scan-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .pr-scan-layout {
        gap: 16px;
    }

    .pr-scan-camera-section {
        padding: 16px;
    }

    .pr-scan-camera-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 800px) {
    .pr-ticket {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px;
        width: 100%;
        max-width: none;
    }

    .pr-ticket .pr-qr {
        width: 100%;
        flex: unset;
        max-width: 280px;
        order: -1;
    }

    .pr-ticket .pr-qr img {
        max-width: 260px;
    }

    .pr-ticket .pr-details {
        width: 100%;
        padding: 0;
    }

    .pr-ticket .registration-title {
        text-align: center;
        font-size: 24px;
    }

    .pr-ticket .registration-list {
        text-align: left;
    }

    .pr-ticket .registration-list div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pr-ticket .registration-list .qr-token {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pr-ticket .registration-list strong {
        min-width: auto;
        color: var(--pr-primary);
    }

    .pr-ticket .hint {
        text-align: center;
        order: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        align-self: stretch;
        padding-left: 16px;
        padding-right: 16px;
    }

    .pr-ticket .pr-details {
        order: 1;
    }

    .pr-header-banner {
        text-align: center;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .pr-header-title {
        font-size: 28px;
    }

    .pr-header-subtitle {
        font-size: 16px;
    }

    .pr-page-container {
        padding: 20px 0 !important;
        max-width: 100%;
    }

    .pr-form-card {
        width: 100%;
        max-width: none;
    }
}

/* Confirmed page tweaks */
.pr-confirmed-container {
    padding: 0;
}

.pr-confirmed-collection {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-confirmed-collection .item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Admin adjustments - ensure custom checkbox visible in admin pages too */
.admin .custom-checkbox .checkmark {
    border-color: var(--pr-primary);
}

/* Fine tuning spacing */
.container .card {
    margin-top: 0;
    margin-bottom: 0;
}

/* Optional brand button */
.btn-pr {
    background: var(--pr-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
}

.btn-pr[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* Page layout helpers */
.pr-page-container {
    padding: 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.pr-page-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.pr-header-banner {
    background: var(--pr-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 32px 40px;
    border-radius: 16px;
    margin: 0 0 24px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .pr-header-banner--event-details {
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
    }

    .pr-header-banner--event-details .pr-header-banner-image {
        display: block !important;
        width: 100% !important;
        min-height: 240px !important;
        height: 240px !important;
        border-radius: 0 !important;
        flex-basis: auto !important;
        flex: none !important;
    }

    .pr-header-banner--event-details .pr-header-content {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 24px 20px 28px !important;
        margin-top: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        box-sizing: border-box !important;
        flex: none !important;
    }

    .pr-header-banner--event-details .pr-header-title {
        font-size: clamp(1.15rem, 4vw, 1.7rem) !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
    }

    .pr-header-banner--event-details .pr-header-subtitle {
        font-size: clamp(0.9rem, 2.6vw, 1rem) !important;
        margin-top: 10px !important;
    }

    .pr-page-container > .pr-header-banner--event-details + * {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .pr-header-banner {
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
    }

    .pr-header-banner-image {
        width: 100%;
        height: 180px;
    }

    .pr-header-content {
        text-align: center;
    }

    .pr-header-stats {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pr-header-banner--event-details .pr-header-banner-image {
        min-height: 200px;
        height: 200px;
    }

    .pr-header-banner--event-details .pr-header-content {
        padding: 20px 16px 24px;
        margin-bottom: 16px;
    }

    .pr-header-banner--event-details .pr-header-title {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
        line-height: 1.2;
    }

    .pr-header-banner--event-details .pr-header-subtitle {
        font-size: clamp(0.9rem, 3.4vw, 1rem);
    }
}

.pr-header-banner-image {
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pr-header-banner--event-details {
    padding: 0;
    height: clamp(260px, 38vw, 320px);
    min-height: clamp(260px, 38vw, 320px);
    align-items: stretch;
    gap: 0;
}

.pr-header-banner--event-details .pr-header-banner-image {
    position: relative;
    flex: 0 0 56%;
    min-height: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.pr-header-banner--event-details .pr-header-banner-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.45) 100%);
    box-shadow: inset -90px 0 70px -40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.pr-header-banner--event-details .pr-header-content {
    flex: 1 1 auto;
    min-height: 100%;
    width: 100%;
    padding: clamp(24px, 3.2vw, 36px);
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: none;
    position: relative;
    overflow: hidden;
    display: block;
}

.pr-header-banner--event-details .pr-header-title {
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    width: 100%;
    display: block;
}

.pr-header-banner--event-details .pr-header-subtitle {
    font-size: clamp(0.9rem, 1.25vw, 1.08rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    width: 100%;
    display: block;
}

.pr-page-container > .pr-header-banner--event-details + .pr-form-card,
.pr-page-container > .pr-header-banner--event-details + .pr-confirmed-container {
    margin-top: clamp(24px, 3vw, 32px);
}

.pr-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-header-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.pr-stat-card {
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.pr-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.pr-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.pr-header-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.pr-header-title {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.pr-header-subtitle {
    margin-top: 12px;
    opacity: .95;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.pr-alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.pr-info-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 26px;
    margin-top: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(182, 51, 66, 0.16);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.pr-info-card-highlight {
    background: linear-gradient(135deg, rgba(255, 250, 248, 0.96), rgba(255, 240, 236, 0.96));
}

.pr-info-card .pr-form-copy {
    margin: 0;
    color: #433334;
    line-height: 1.7;
    font-size: 0.97rem;
}

.pr-google-signin-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pr-google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 12px;
    background: rgb(128, 0, 0);
    color: white;
    border: 1px solid rgb(96, 0, 0);
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px;
    transition: all 0.3s ease;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.pr-google-signin-btn span:last-child {
    flex: none;
    width: auto;
    text-align: center;
}

.pr-google-signin-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: #a00000;
}

.pr-google-signin-btn svg {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.pr-google-signin-btn span {
    display: inline-flex;
    align-items: center;
}

.pr-google-signin-btn .google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.pr-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.pr-col-flex {
    flex: 1;
    min-width: 220px;
}

.pr-grid {
    display: grid;
    gap: 8px;
}

.pr-token-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 6px 12px;
    border: 1px solid rgba(155, 33, 33, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--pr-primary);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pr-token-link:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(155, 33, 33, 0.12);
}

.pr-token-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 33, 33, 0.16);
}

.pr-note {
    color: #666;
    margin-top: 12px;
}

.pr-qr-card {
    flex: 0 0 360px;
    text-align: center;
}

.pr-qr-card-inner {
    background: #f5f5f5;
    padding: 18px;
    border-radius: 12px;
    display: inline-block;
}

.pr-qr-card-inner img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.pr-form-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(155, 33, 33, 0.06);
    position: relative;
    overflow: hidden;
}

.pr-form-card::before {
    display: none;
}

.pr-form-card.no-top-accent::before {
    display: none;
}

.pr-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, #fcb9c1 0%, #ffe6e9 45%, #e090a7 100%);
    overflow: hidden;
    position: relative;
}

.pr-login-shell::before,
.pr-login-shell::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.pr-login-shell::before {
    top: 0%;
    width: 250%;
    height: 800px;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 46%;
    filter: blur(36px);
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.18);
    animation: pr-wave 10s ease-in-out infinite;
}

.pr-login-shell::after {
    top: 20%;
    left: 60%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0.04) 65%, rgba(255, 255, 255, 0) 90%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 150px rgba(255, 255, 255, 0.28);
    animation: pr-circle 14s ease-in-out infinite;
    transform: translateX(-50%);
}

@keyframes pr-wave {
    0% {
        transform: translateX(-50%) scaleX(1) translateY(0);
        opacity: 0.84;
    }
    50% {
        transform: translateX(-50%) scaleX(1.12) translateY(16px);
        opacity: 0.62;
    }
    100% {
        transform: translateX(-50%) scaleX(1) translateY(0);
        opacity: 0.84;
    }
}

@keyframes pr-circle {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.75;
    }
    50% {
        transform: translateX(-50%) translateY(-18px) scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.75;
    }
}

.pr-login-shell .pr-page-container {
    width: 100%;
    max-width: 560px;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

.pr-login-shell .pr-form-card {
    margin-top: 0;
    padding: 36px 32px;
    border-radius: 28px;
}

.pr-login-shell .pr-header-banner {
    background: var(--pr-gradient);
    padding: 28px 32px 24px;
    border-radius: 22px;
    margin-bottom: 24px;
    text-align: center;
}

.pr-login-shell .pr-header-banner-with-logo {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pr-login-shell .pr-header-banner-with-logo .pr-login-logo-wrap {
    justify-content: center;
}

.pr-login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.pr-login-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: none;
    background: transparent;
}

.pr-login-shell .pr-header-text-wrap {
    margin-top: 14px;
}

.pr-login-shell .pr-header-title {
    font-size: 2.15rem;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.pr-login-shell .pr-header-subtitle {
    margin: 0 auto;
    opacity: 0.95;
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.5;
}

.pr-login-shell .pr-info-card {
    margin-top: 16px;
}

.pr-google-signin-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pr-login-shell .pr-google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 380px;
    min-width: 300px;
    gap: 14px;
    padding: 12px 24px;
    border-radius: 14px;
    text-align: center;
    background: #fff;
    color: #202124;
    border: 1px solid #dadce0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-transform: none;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.pr-login-shell .pr-google-signin-btn:hover {
    background-color: #f8f9fb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.pr-login-shell .pr-google-signin-btn span:last-child {
    flex: none;
    text-align: center;
}

.pr-login-shell .pr-google-signin-btn .google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.pr-login-shell .pr-google-signin-btn svg {
    width: 20px;
    height: 20px;
}

.pr-login-shell .pr-google-signin-btn span:last-child {
    flex: 1;
    text-align: center;
}

.pr-login-shell .pr-note {
    margin-top: 18px;
    text-align: center;
}

.pr-login-shell .pr-alert-error {
    margin-top: 20px;
}

.pr-form-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--pr-primary);
    letter-spacing: -0.5px;
}

.pr-form-copy {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.pr-form-strong {
    color: var(--pr-primary);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
}

.pr-form {
    margin-top: 20px;
}

.pr-form-row {
    margin-top: 24px;
}

.pr-button,
.add-btn,
.pr-modal-delete-btn,
.pr-scanner-copy-btn,
.pr-admin-action-btn,
.page-btn {
    background: var(--pr-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(92, 10, 20, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pr-button:hover,
.add-btn:hover,
.pr-modal-delete-btn:hover,
.pr-scanner-copy-btn:hover,
.pr-admin-action-btn:hover,
.page-btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 33, 33, 0.28);
}

.pr-button:active,
.add-btn:active,
.pr-modal-delete-btn:active,
.pr-scanner-copy-btn:active,
.pr-admin-action-btn:active,
.page-btn:active {
    transform: translateY(0);
}

.pr-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.pr-disabled-checkbox {
    margin-top: 16px;
    opacity: .6;
}

.pr-disabled-button {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #6b7280;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    opacity: .6;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* Scan page */
.table-container {
    margin: 40px auto 30px;
}

.pr-scanner-access-card {
    background: #fff;
    border: 1px solid rgba(155, 33, 33, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(92, 10, 20, 0.08);
    margin: 0 0 24px;
}

.pr-scanner-access-banner {
    margin: 0;
    padding: 24px 24px 18px;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pr-scanner-access-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.pr-scanner-access-subtitle {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.pr-button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.pr-button-secondary:hover {
    background-color: #5a6268;
}

.pr-button-danger {
    background-color: #dc3545;
    color: #fff;
}

.pr-button-danger:hover {
    background-color: #c82333;
}

.pr-event-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.pr-schedule-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    line-height: 1.3;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
}

.pr-schedule-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pr-schedule-item i {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .pr-event-schedule {
        gap: 6px 8px;
        padding: 8px 10px;
    }

    .pr-schedule-item {
        font-size: clamp(0.68rem, 2.7vw, 0.84rem);
        gap: 5px;
    }
}

.analytics-container {
    margin-top: 24px;
}

.analytics-field-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analytics-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.analytics-field-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.analytics-field-type {
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.analytics-field-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.analytics-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-stat-label {
    color: #666;
    font-size: 14px;
}

.analytics-stat-value {
    font-weight: 600;
    color: #333;
}

.analytics-chart-container {
    margin: 20px 0;
}

.analytics-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.analytics-bar-label {
    width: 200px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-bar-track {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.analytics-bar-value {
    width: 80px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.analytics-responses-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.analytics-responses-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.analytics-responses-list {
    max-height: 300px;
    overflow-y: auto;
}

.analytics-response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 8px;
}

.analytics-response-student {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-response-no {
    font-size: 12px;
    color: #666;
}

.analytics-response-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.analytics-response-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.analytics-no-responses {
    color: #999;
    font-style: italic;
    padding: 16px;
    text-align: center;
}

.analytics-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.pr-scanner-access-body {
    padding: 0 24px 24px;
}

.pr-scanner-access-body .form-group {
    margin-bottom: 16px;
}

.pr-scanner-access-body .form-group:last-child {
    margin-bottom: 0;
}

.pr-scanner-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.pr-scanner-link-input {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    text-overflow: clip;
}

.pr-scanner-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(155, 33, 33, 0.18);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--pr-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pr-scanner-copy-btn:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    transform: translateY(-1px);
}

.pr-scanner-credentials {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #f9f1e8;
    border: 1px solid #efd7b8;
}

.pr-modern-input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(155, 33, 33, 0.16) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: block !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.pr-modern-input:focus {
    outline: none !important;
    border-color: var(--pr-primary) !important;
    box-shadow: 0 0 0 4px rgba(155, 33, 33, 0.12) !important;
}

.pr-modern-input[readonly] {
    background: #fdf8f4 !important;
    color: #4b5563 !important;
}

.pr-modern-modal .form-group input,
.pr-modern-modal .form-group select,
.pr-modern-modal .form-group textarea,
#scanner-account-modal input,
#scanner-account-modal select,
#scanner-account-modal textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(155, 33, 33, 0.16) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: block !important;
    font: inherit !important;
    color: #1f2937 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.pr-modern-modal .form-group select.browser-default,
#scanner-account-modal select.browser-default {
    background-image: none !important;
    cursor: pointer !important;
}

.pr-modern-modal .select-wrapper,
#scanner-account-modal .select-wrapper {
    display: none !important;
}

#event-registration-info {
    display: none !important;
}

.pr-modern-modal .form-group input:focus,
.pr-modern-modal .form-group select:focus,
.pr-modern-modal .form-group textarea:focus,
#scanner-account-modal input:focus,
#scanner-account-modal select:focus,
#scanner-account-modal textarea:focus {
    outline: none !important;
    border-color: var(--pr-primary) !important;
    box-shadow: 0 0 0 4px rgba(155, 33, 33, 0.12) !important;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.table-actions .add-btn,
.table-actions a.add-btn,
.table-actions button.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: auto;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--pr-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(92, 10, 20, 0.2);
}

.table-actions .add-btn .material-icons,
.table-actions a.add-btn .material-icons,
.table-actions button.add-btn .material-icons,
.add-btn .material-icons,
.add-btn i.material-icons {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pr-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 1000;
    display: none;
}

.pr-modal-backdrop.is-open {
    display: block;
}

.pr-modern-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
}

.pr-modern-modal.open {
    display: flex;
}

.pr-modern-modal-card {
    width: min(840px, calc(100vw - 32px));
    max-height: 90vh;
    margin: 0 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(155, 33, 33, 0.12);
    display: flex;
    flex-direction: column;
}

.pr-modern-modal-header {
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pr-modern-modal-header h5 {
    margin: 0 0 4px;
    color: white;
    font-size: 20px;
}

.pr-modern-modal-header p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    line-height: 1.5;
}

.pr-modal-close {
    border: none;
    background: rgba(255,255,255,0.18);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.pr-modern-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.pr-modern-modal .form-group {
    margin-bottom: 18px;
}

.pr-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 16px;
}

.pr-modal-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 600;
    text-decoration: none;
}

.pr-scan-fullscreen-btn {
    cursor: pointer;
    border: none;
}

.pr-scan-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.table-container .card-content {
    padding: 24px 20px 30px;
    margin: 0 auto 24px;
    box-sizing: border-box;
    max-width: 100%;
}

.pr-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pr-scan-title {
    margin: 0;
}

.pr-scan-copy {
    margin: 4px 0 0 0;
    color: #666;
}

.pr-scan-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.pr-scan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.pr-scan-layout {
    display: grid;
    grid-template-columns: minmax(240px, 400px) minmax(240px, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.pr-scan-camera-section {
    max-width: 400px;
    align-self: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(155, 33, 33, 0.08);
    box-shadow: 0 10px 40px rgba(155, 33, 33, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 22px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pr-scan-camera-section-message {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .pr-scan-camera-section-success {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border-color: #10b981;
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .pr-scan-camera-section-success .pr-scan-camera-section-message {
        background: rgba(16, 185, 129, 0.2);
        color: #065f46;
    }

    .pr-scan-camera-section-error {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        border-color: #ef4444;
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .pr-scan-camera-section-error .pr-scan-camera-section-message {
        background: rgba(239, 68, 68, 0.2);
        color: #991b1b;
    }

    .pr-scan-camera-section-warning {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-color: #f59e0b;
        box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .pr-scan-camera-section-warning .pr-scan-camera-section-message {
        background: rgba(245, 158, 11, 0.2);
        color: #92400e;
    }
}

.pr-scan-camera-wrapper {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    min-height: 350px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .pr-scan-layout {
        grid-template-columns: 1fr;
    }

    .pr-scan-camera-section,
    .pr-scan-result-section {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .table-container .card-content {
        margin: 0;
        padding: 18px 14px 24px;
    }
}

.pr-scan-camera-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.pr-scan-settings-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(155, 33, 33, 0.16);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--pr-primary);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(155, 33, 33, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pr-scan-settings-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(155, 33, 33, 0.12);
}

.pr-scan-settings-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 33, 33, 0.16);
}

.pr-camera-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(155, 33, 33, 0.2);
    border-radius: 6px;
    background: white;
}

.pr-camera-toggle {
    white-space: nowrap;
}

.pr-camera-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
}

.pr-scan-result-section {
    min-width: 300px;
    display: flex;
    align-self: stretch;
    height: 100%;
}

.table-container:-webkit-full-screen,
.table-container:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    height: auto;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.table-container:-webkit-full-screen .card-content,
.table-container:fullscreen .card-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    flex: 1 1 auto;
    overflow: visible;
    box-sizing: border-box;
}

.table-container:-webkit-full-screen .pr-scan-layout,
.table-container:fullscreen .pr-scan-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .table-container:-webkit-full-screen,
    .table-container:fullscreen {
        padding: 16px;
    }

    .table-container:-webkit-full-screen .card-content,
    .table-container:fullscreen .card-content {
        padding: 16px;
    }

    .table-container:-webkit-full-screen .pr-scan-layout,
    .table-container:fullscreen .pr-scan-layout {
        padding: 0;
    }

    .table-container:-webkit-full-screen .pr-scan-camera-section,
    .table-container:fullscreen .pr-scan-camera-section {
        max-width: 100%;
        width: 100%;
    }

    .table-container:-webkit-full-screen .pr-scan-result-section,
    .table-container:fullscreen .pr-scan-result-section {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 901px) {
    .table-container:-webkit-full-screen,
    .table-container:fullscreen {
        width: min(1400px, calc(100vw - 64px));
        max-width: 1400px;
        margin: 0 auto;
        padding: 28px 32px;
        box-sizing: border-box;
        justify-content: flex-start;
        align-items: stretch;
    }

    .table-container:-webkit-full-screen .table-header,
    .table-container:fullscreen .table-header {
        width: 100%;
        box-sizing: border-box;
    }

    .table-container:-webkit-full-screen .card-content,
    .table-container:fullscreen .card-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0 0 8px;
    }

    .table-container:-webkit-full-screen .pr-scan-layout,
    .table-container:fullscreen .pr-scan-layout {
        align-items: center;
        width: 100%;
    }
}

.pr-scan-auto-claim {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #9b2121;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.pr-scan-help {
    margin: 0;
}

.pr-scanner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.pr-scanner-close-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
}

.pr-scanner-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
}

.pr-scanner-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: #000;
}

.pr-scanner-note {
    color: white;
    text-align: center;
    margin: 12px 0 0;
    position: relative;
    z-index: 2;
}

.pr-scan-guide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 52%);
}

.pr-scan-guide-frame {
    position: relative;
    width: min(260px, 76%);
    aspect-ratio: 1;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 40px rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.18);
    padding: 20px;
    overflow: hidden;
}

.pr-scan-guide-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #fbbf24;
    border-style: solid;
    border-width: 0;
    border-radius: 0;
    background: transparent;
}

.pr-scan-guide-corner.top-left {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.pr-scan-guide-corner.top-right {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.pr-scan-guide-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.pr-scan-guide-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.pr-scan-guide-line {
    position: absolute;
    left: 14%;
    right: 14%;
    top: 12%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(248, 113, 113, 0.95) 20%, rgba(248, 113, 113, 0.95) 80%, transparent 100%);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
    animation: pr-scan-guide-sweep 2.4s ease-in-out infinite;
    will-change: top, opacity;
}

.pr-scan-guide-label {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pr-scan-guide-hint {
    position: absolute;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    width: min(320px, calc(100% - 24px));
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes pr-scan-guide-sweep {
    0% {
        top: 8%;
        opacity: 0.22;
    }
    20% {
        top: 18%;
        opacity: 0.85;
    }
    50% {
        top: 52%;
        opacity: 1;
    }
    80% {
        top: 86%;
        opacity: 0.85;
    }
    100% {
        top: 92%;
        opacity: 0.22;
    }
}

.pr-scan-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pr-scan-settings-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pr-scan-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.pr-scan-settings-dialog {
    position: relative;
    width: min(480px, 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(155, 33, 33, 0.12);
    overflow: hidden;
}

.pr-scan-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.pr-scan-settings-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
}

.pr-scan-settings-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.pr-scan-settings-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.pr-scan-settings-body {
    padding: 20px 24px 24px;
}

.pr-scan-settings-status {
    margin-bottom: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.pr-scan-camera-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pr-scan-camera-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pr-scan-camera-option:hover {
    border-color: rgba(155, 33, 33, 0.28);
    box-shadow: 0 6px 14px rgba(155, 33, 33, 0.08);
    transform: translateY(-1px);
}

.pr-scan-camera-option.active {
    border-color: rgba(155, 33, 33, 0.4);
    box-shadow: 0 8px 18px rgba(155, 33, 33, 0.14);
    background: linear-gradient(135deg, #fff7f7 0%, #fef2f2 100%);
}

.pr-scan-camera-option-meta.selected {
    color: var(--pr-primary);
    font-weight: 700;
}

.pr-scan-camera-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: var(--pr-primary);
}

.pr-scan-camera-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(155, 33, 33, 0.08);
    color: var(--pr-primary);
    flex-shrink: 0;
}

.pr-scan-camera-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pr-scan-camera-option-name {
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
}

.pr-scan-camera-option-meta {
    font-size: 13px;
    color: #64748b;
}

.pr-scan-camera-empty {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.pr-scan-form {
    margin-top: 12px;
}

.pr-scan-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pr-scan-input,
.pr-scan-form .search-input {
    flex: 1;
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #2d3748 !important;
    font-size: 15px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.pr-scan-input.browser-default,
.pr-scan-form .search-input.browser-default {
    border: 2px solid #e0e0e0 !important;
}

.pr-scan-input:focus,
.pr-scan-form .search-input:focus {
    outline: none !important;
    border-color: rgba(155, 33, 33, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(155, 33, 33, 0.08) !important;
}

.pr-scan-result {
    margin-top: 20px;
}

.pr-scan-result-layout {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.pr-scan-photo {
    flex: 0 0 180px;
}

.pr-scan-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.pr-scan-details {
    flex: 1;
    min-width: 200px;
}

.pr-scan-action-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Admin list helper */
.table-number-col {
    width: 50px;
}

.admin-dashboard {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(155, 33, 33, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(155, 33, 33, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(155, 33, 33, 0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    color: #fff;
}

.stat-icon.total-items {
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
}

.stat-icon.reservations {
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
}

.stat-icon.low-stock {
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
}

.stat-info {
    min-width: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.status-claimed {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.24);
}

.status-badge.status-blocked {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.24);
}

.status-badge.status-not-claimed {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.24);
}

.status-badge.status-no-qr {
    background: rgba(107, 114, 128, 0.12);
    color: #374151;
    border-color: rgba(107, 114, 128, 0.24);
}

.status-badge .material-icons {
    font-size: 16px;
    line-height: 1;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pr-admin-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pr-admin-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pr-admin-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.pr-admin-confirm-dialog {
    position: relative;
    width: min(460px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(155, 33, 33, 0.12);
    padding: 24px;
    outline: none;
}

.pr-admin-confirm-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pr-admin-confirm-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(155, 33, 33, 0.12);
    color: var(--pr-primary);
    flex-shrink: 0;
}

.pr-admin-confirm-icon.success {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.pr-admin-confirm-icon.danger {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.pr-admin-confirm-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.pr-admin-confirm-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pr-admin-confirm-body p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 15px;
}

.pr-admin-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pr-admin-confirm-cancel,
.pr-admin-confirm-proceed {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.pr-admin-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

.pr-admin-confirm-proceed {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-secondary));
    color: #fff;
}

.pr-admin-confirm-proceed.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Modern Admin Action Buttons */
.pr-admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.pr-admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pr-admin-action-btn:active {
    transform: translateY(0);
}

.pr-admin-action-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pr-admin-action-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.pr-admin-action-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.pr-admin-action-reject:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.pr-admin-action-process {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-secondary));
    color: #fff;
    box-shadow: 0 2px 8px rgba(155, 33, 33, 0.3);
}

.pr-admin-action-process:hover {
    background: linear-gradient(135deg, var(--pr-secondary), #8b1a1a);
    box-shadow: 0 4px 16px rgba(155, 33, 33, 0.4);
}

.pr-admin-action-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pr-admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.pr-admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.pr-admin-action-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.pr-admin-action-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.pr-admin-action-process {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-secondary));
    color: #fff;
}

.pr-admin-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(155, 33, 33, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-secondary));
}

.pr-admin-action-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pr-admin-action-view {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pr-admin-action-manual {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pr-admin-action-block {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pr-admin-action-unblock {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pr-admin-action-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pr-admin-action-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.pr-btn-analytics {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pr-btn-edit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pr-btn-registrations {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pr-btn-scanner {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.pr-qr-token-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-qr-token-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.pr-qr-token-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(155, 33, 33, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    background: #f5f5f5;
    flex-shrink: 0;
}

.pr-qr-token-toggle:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.pr-qr-token-toggle i {
    font-size: 16px;
}

 .pr-event-link-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pr-event-link-cell .pr-inline-link {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
}

.pr-event-link-cell .pr-admin-action-icon-btn {
    flex-shrink: 0;
}

.pr-event-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.pr-event-form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pr-event-student-info-card {
    display: none;
}

.pr-event-student-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    align-items: flex-start;
}

.pr-event-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #111827;
    line-height: 1.2;
}

.pr-event-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.pr-event-form-field {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}


.pr-event-checkbox-wrap {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pr-event-checkbox-group {
    display: grid;
    gap: 10px;
}

.pr-event-field-builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.pr-student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    border: 1px solid rgba(155, 33, 33, 0.08);
}

.pr-student-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pr-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pr-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pr-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: start;
    align-items: stretch;
}

.pr-event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer !important;
    align-self: stretch;
    height: 100%;
}

.pr-event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(155, 33, 33, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.pr-event-card-link * {
    cursor: pointer !important;
}

.pr-event-card-link:hover .pr-event-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(92, 10, 20, 0.15);
}

.pr-event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(155, 33, 33, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    align-items: stretch;
}

.pr-event-card-banner {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pr-event-countdown {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(121, 16, 28, 0.8) 0%, rgba(143, 29, 43, 0.8) 45%, rgba(145, 23, 58, 0.8) 50%); 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pr-event-countdown .pr-event-icon {
    font-size: 20px;
    color: #f7f7f7;
}

.pr-event-countdown .countdown-timer {
    color: #f7f7f7;
    font-weight: 700;
}

.pr-event-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.pr-event-register-btn {
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pr-event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5C0A14;
    font-weight: 500;
}

.pr-event-icon {
    font-size: 18px;
    color: #5C0A14;
}

.pr-event-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8d1436;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(92, 10, 20, 0.1);
}

.pr-event-countdown.countdown-expired {
    color: #ccc;
    background: rgba(0, 0, 0, 0.8);
}

.countdown-timer {
    font-weight: 600;
    font-family: monospace;
}

.pr-event-card:hover {
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.12);
    transform: translateY(-2px);
}

.pr-event-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pr-event-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-event-info {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.pr-event-register-btn {
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pr-event-register-btn:hover {
    background: linear-gradient(135deg, #8f1d2b 0%, #91173a 100%);
    transform: translateY(-2px);
}

.pr-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(155, 33, 33, 0.08);
}

.pr-empty-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.pr-registered-status {
    margin-bottom: 12px;
}

.pr-registered-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(155, 33, 33, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(155, 33, 33, 0.1);
}

.pr-registered-qr {
    text-align: center;
}

.pr-registered-qr img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(155, 33, 33, 0.15);
}

.pr-registered-info {
    font-size: 13px;
    color: #4b5563;
}

.pr-registered-info p {
    margin: 4px 0;
}

.pr-registered-info strong {
    color: #111827;
}

.pr-event-field-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.pr-event-field-row > .form-group,
.pr-event-field-row > .custom-checkbox,
.pr-event-field-row > button {
    min-width: 0;
}

@media (max-width: 768px) {
    .pr-event-form-grid,
    .pr-event-form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .pr-event-student-info-card {
        grid-template-columns: 1fr;
    }

    .pr-event-field-builder {
        grid-template-columns: 1fr;
    }
}

.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    margin: 40px auto 60px;
    overflow: hidden;
    border: 1px solid rgba(155, 33, 33, 0.08);
}

.table-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 260px;
    min-width: 220px;
}

.table-title h5,
.table-title h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.table-title p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.table-row {
    transition: background 0.3s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 25px;
    border-top: 2px solid #f0f0f0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-btn:hover:not(.active) {
    background: var(--pr-primary);
    color: white;
    border-color: var(--pr-primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--pr-primary);
    color: white;
    border-color: var(--pr-primary);
}
.pr-admin-action-manual:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.pr-admin-action-manual:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.pr-admin-action-block {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.pr-admin-action-block:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.pr-admin-action-unblock:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.pr-admin-action-view {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.pr-admin-action-view:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.pr-admin-details-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pr-admin-details-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pr-admin-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.pr-admin-details-dialog {
    position: relative;
    width: min(780px, 100%);
    background: linear-gradient(135deg, #ffffff 0%, #fbf7f7 100%);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(155, 33, 33, 0.12);
    padding: 24px;
    outline: none;
}

.pr-admin-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pr-admin-details-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.pr-admin-details-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pr-admin-details-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

.pr-admin-details-body {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 20px;
}

.pr-admin-details-qr-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7f7 0%, #f8fafc 100%);
    border: 1px solid rgba(155, 33, 33, 0.1);
}

.pr-admin-details-qr-badge,
.pr-admin-details-token-pill,
.pr-admin-details-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pr-admin-details-qr-badge {
    background: rgba(155, 33, 33, 0.1);
    color: var(--pr-primary);
}

.pr-admin-details-token-pill {
    background: #fff;
    color: #374151;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.pr-admin-details-token-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(155, 33, 33, 0.18);
    border-radius: 999px;
    background: rgba(155, 33, 33, 0.08);
    color: var(--pr-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pr-admin-details-token-toggle:hover,
.pr-admin-details-token-toggle:focus-visible {
    background: rgba(155, 33, 33, 0.14);
}

.pr-admin-details-status-pill {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.pr-admin-details-status-pill.claimed {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.pr-admin-details-status-pill.blocked {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.pr-admin-details-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.pr-admin-details-qr img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
}

.pr-admin-details-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pr-admin-details-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.pr-admin-details-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-admin-details-summary-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.pr-admin-details-summary-subtext {
    font-size: 13px;
    color: #64748b;
}

.pr-admin-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pr-admin-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.pr-admin-detail-row label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pr-admin-detail-row span {
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .data-table {
        min-width: 760px;
        width: 100%;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .pr-admin-action-icons {
        gap: 5px;
    }

    .pr-admin-action-icon-btn {
        width: 34px;
        height: 34px;
    }

    .pr-admin-confirm-modal,
    .pr-admin-details-modal {
        padding: 0;
        align-items: stretch;
    }

    .pr-admin-confirm-dialog,
    .pr-admin-details-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 16px;
        overflow-y: auto;
    }

    .pr-admin-confirm-actions {
        flex-direction: column-reverse;
    }

    .pr-admin-confirm-cancel,
    .pr-admin-confirm-proceed {
        width: 100%;
        justify-content: center;
    }

    .pr-admin-details-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pr-admin-details-body {
        grid-template-columns: 1fr;
    }

    .pr-admin-details-grid {
        grid-template-columns: 1fr;
    }

    .pr-admin-details-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .pr-admin-details-qr-card {
        align-items: center;
    }

    .pr-admin-details-qr img {
        max-width: 180px;
    }
}

/* Admin scan result card modernization */
.pr-scan-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    isolation: isolate;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(155, 33, 33, 0.08);
    box-shadow: 0 10px 40px rgba(155, 33, 33, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.3s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
}

.pr-scan-result-card::before,
.pr-scan-result-card::after {
    content: '';
    position: absolute;
    left: -12%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    filter: blur(1px);
    animation: pr-scan-wave 8s ease-in-out infinite;
}

.pr-scan-result-card::before {
    top: -12%;
    width: 140%;
    height: 52%;
    border-radius: 0 0 70% 0 / 0 0 100% 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(192, 192, 192, 0.38) 45%, rgba(255, 255, 255, 0.06));
    transform: rotate(-10deg);
    box-shadow: 0 0 45px rgba(192, 192, 192, 0.18);
}

.pr-scan-result-card::after {
    bottom: -12%;
    width: 136%;
    height: 46%;
    border-radius: 0 70% 0 0 / 0 100% 0 0;
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.12), rgba(192, 192, 192, 0.3) 45%, rgba(255, 255, 255, 0.05));
    transform: rotate(10deg);
    animation-direction: reverse;
    animation-duration: 10s;
}

.pr-scan-result-card > * {
    position: relative;
    z-index: 1;
}

@keyframes pr-scan-wave {
    0%,
    100% {
        transform: rotate(-10deg);
        opacity: 0.95;
    }
    50% {
        transform: rotate(-6deg);
        opacity: 1;
    }
}

.pr-scan-result-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pr-scan-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 56px;
    color: white;
    background: rgba(16, 185, 129, 0.95);
}

.pr-scan-result-icon i {
    font-size: 56px;
    line-height: 1;
}

.pr-scan-result-icon.claimed {
    background: #10b981;
    width: 46px !important;
    height: 46px !important;
    font-size: 22px !important;
}

.pr-scan-result-icon.already-claimed {
    background: #f59e0b;
}

.pr-scan-result-icon.error {
    background: #dc2626;
}

.pr-scan-result-icon.waiting {
    background: #2563eb;
}

.pr-scan-result-card.pr-scan-result-waiting,
.pr-scan-result-card.pr-scan-result-error,
.pr-scan-result-card.pr-scan-result-processing {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pr-scan-result-card.pr-scan-result-waiting .pr-scan-result-status,
.pr-scan-result-card.pr-scan-result-error .pr-scan-result-status,
.pr-scan-result-card.pr-scan-result-processing .pr-scan-result-status {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pr-scan-result-card.pr-scan-result-waiting .pr-scan-result-status-title,
.pr-scan-result-card.pr-scan-result-waiting .pr-scan-result-status-caption,
.pr-scan-result-card.pr-scan-result-error .pr-scan-result-status-title,
.pr-scan-result-card.pr-scan-result-error .pr-scan-result-status-caption,
.pr-scan-result-card.pr-scan-result-processing .pr-scan-result-status-title,
.pr-scan-result-card.pr-scan-result-processing .pr-scan-result-status-caption {
    text-align: center;
}

.pr-scan-error-block .pr-scan-result-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.pr-scan-result-claimed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pr-scan-result-claimed .pr-scan-detail-item label {
    color: #059669;
}

.pr-scan-result-not-claimed {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(155, 33, 33, 0.08);
    box-shadow: 0 10px 40px rgba(155, 33, 33, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pr-scan-result-waiting {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid rgba(155, 33, 33, 0.1);
    box-shadow: 0 10px 40px rgba(155, 33, 33, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pr-scan-result-processing {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pr-scan-result-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pr-scan-result-error .pr-scan-detail-item label {
    color: #991b1b;
}

.pr-scan-result-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.pr-scan-result-status {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pr-scan-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    font-size: 56px;
    color: white;
    background: linear-gradient(135deg, #16a34a 0%, #10b981 45%, #34d399 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(16, 185, 129, 0.2);
}

.pr-scan-result-icon i {
    font-size: 56px;
    line-height: 1;
}

.pr-scan-result-icon.claimed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pr-scan-result-icon.not-claimed {
    background: linear-gradient(135deg, #16a34a 0%, #10b981 45%, #34d399 100%);
}

.pr-scan-result-icon.already-claimed {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.pr-scan-result-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pr-scan-result-icon.waiting {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.pr-scan-result-icon.processing {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    animation: pr-scan-spin 1s linear infinite;
}

@keyframes pr-scan-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pr-scan-result-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
}

.pr-scan-result-meta.pr-scan-result-meta-compact {
    width: min(320px, 100%);
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    text-align: left;
}

.pr-scan-result-meta.pr-scan-result-meta-compact .pr-scan-result-meta-row {
    justify-content: space-between;
}

.pr-scan-result-meta.pr-scan-result-meta-compact .pr-scan-result-meta-label {
    min-width: 84px;
}

.pr-scan-result-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #374151;
}

.pr-scan-result-countdown {
    width: 100%;
    margin-top: 8px;
}

.pr-scan-result-countdown-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.pr-scan-result-countdown-fill {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b 0%, #dc2626 100%);
    transition: width 0.2s linear;
}

.pr-scan-result-countdown-text {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.pr-scan-result-meta-label {
    font-weight: 700;
    color: #1f2937;
    min-width: 84px;
}

.pr-scan-result-status-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.pr-scan-result-status-caption {
    color: #4b5563;
    font-size: 14px;
}

.pr-scan-result-error .pr-scan-result-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pr-scan-result-error .pr-scan-result-status {
    justify-content: center;
}

.pr-scan-result-error .pr-scan-result-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pr-scan-photo {
    flex: 0 0 200px;
    text-align: center;
}

.pr-scan-photo img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(155, 33, 33, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pr-scan-photo-meta {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
}

.pr-scan-photo-meta-label {
    color: #4b5563;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}

.pr-scan-photo-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    word-break: break-all;
}

.pr-scan-no-photo {
    width: 200px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    border: 2px dashed rgba(155, 33, 33, 0.2);
    color: #6b7280;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pr-scan-detail-item .status-icon {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.pr-scan-result-card.pr-scan-result-claimed .status-icon {
    color: #047857;
}

.pr-scan-result-card.pr-scan-result-error .status-icon {
    color: #ffffff;
}

.pr-scan-details {
    flex: 1;
    min-width: 250px;
}

.pr-scan-detail-item {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.pr-scan-detail-item label {
    color: var(--pr-primary);
    font-weight: 600;
    font-size: 14px;
}

.pr-scan-detail-item span {
    color: #2d3748;
    font-size: 16px;
    font-weight: 500;
}

.pr-scan-detail-item .status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.pr-scan-detail-item .status-claimed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #10b981;
}

.pr-scan-detail-item .status-not-claimed {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.pr-scan-action-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.pr-scan-action-row .pr-admin-action-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

/* Scan error card */
.pr-scan-error-card {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.pr-scan-error-icon {
    font-size: 48px;
    color: #dc2626;
    margin-bottom: 16px;
}

.pr-scan-error-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #991b1b;
}

.pr-scan-error-message {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #7f1d1d;
    line-height: 1.5;
}

.pr-scan-error-ok {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.pr-scan-error-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.pr-scan-error-ok:active {
    transform: translateY(0);
}

/* Tiptap Editor Styles */
.tiptap-editor {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 300px;
    background: white;
}

.tiptap-editor .ProseMirror {
    padding: 16px;
    min-height: 268px;
    outline: none;
}

.tiptap-editor .ProseMirror:focus {
    outline: none;
}

.tiptap-editor h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    line-height: 1.2;
}

.tiptap-editor h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 14px 0 6px 0;
    line-height: 1.3;
}

.tiptap-editor h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 6px 0;
    line-height: 1.4;
}

.tiptap-editor p {
    margin: 8px 0;
    line-height: 1.6;
}

.tiptap-editor ul,
.tiptap-editor ol {
    margin: 8px 0;
    padding-left: 24px;
}

.tiptap-editor ul {
    list-style-type: disc;
}

.tiptap-editor ol {
    list-style-type: decimal;
}

.tiptap-editor li {
    margin: 4px 0;
    line-height: 1.5;
}

.tiptap-editor strong {
    font-weight: 700;
}

.tiptap-editor em {
    font-style: italic;
}

.tiptap-editor a {
    color: #2563eb;
    text-decoration: underline;
}

.tiptap-editor a:hover {
    color: #1d4ed8;
}

/* Student side event description styling */
.pr-form-copy,
.pr-event-info {
    line-height: 1.6;
}

.pr-form-copy h1,
.pr-event-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    line-height: 1.2;
    color: #111827;
}

.pr-form-copy h2,
.pr-event-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 14px 0 6px 0;
    line-height: 1.3;
    color: #111827;
}

.pr-form-copy h3,
.pr-event-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 6px 0;
    line-height: 1.4;
    color: #111827;
}

.pr-form-copy p,
.pr-event-info p {
    margin: 8px 0;
    color: #374151;
}

.pr-form-copy ul,
.pr-event-info ul,
.pr-form-copy ol,
.pr-event-info ol {
    margin: 8px 0;
    padding-left: 24px;
    color: #374151;
}

.pr-form-copy ul,
.pr-event-info ul {
    list-style-type: disc;
}

.pr-form-copy ol,
.pr-event-info ol {
    list-style-type: decimal;
}

.pr-form-copy li,
.pr-event-info li {
    margin: 4px 0;
    line-height: 1.5;
}

.pr-form-copy strong,
.pr-event-info strong {
    font-weight: 700;
    color: #111827;
}

.pr-form-copy em,
.pr-event-info em {
    font-style: italic;
}

.pr-form-copy a,
.pr-event-info a {
    color: #2563eb;
    text-decoration: underline;
}

.pr-form-copy a:hover,
.pr-event-info a:hover {
    color: #1d4ed8;
}

label {
    color: #202124
}

/* Event Selection Page Styles */
.pr-event-selection-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.pr-event-selection-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(92, 10, 20, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 10, 20, 0.08);
    cursor: pointer !important;
}

.pr-event-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(92, 10, 20, 0.15);
    border-color: rgba(92, 10, 20, 0.3);
    cursor: pointer !important;
}

.pr-event-selection-card * {
    cursor: pointer !important;
}

.pr-event-selection-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #79101c 0%, #8f1d2b 45%, #91173a 100%);
    border-radius: 10px;
    color: white;
}

.pr-event-selection-icon .material-icons {
    font-size: 24px;
}

.pr-event-selection-info {
    flex: 1;
    min-width: 0;
}

.pr-event-selection-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #5C0A14;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-event-selection-slug {
    margin: 0;
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-event-selection-arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 10, 20, 0.1);
    border-radius: 50%;
    color: #5C0A14;
    transition: all 0.3s ease;
}

.pr-event-selection-card:hover .pr-event-selection-arrow {
    background: rgba(92, 10, 20, 0.2);
    transform: translateX(4px);
}

.pr-event-selection-arrow .material-icons {
    font-size: 18px;
}

.pr-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(92, 10, 20, 0.1);
    color: #5C0A14;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pr-logout-link:hover {
    background: rgba(92, 10, 20, 0.2);
    transform: translateY(-1px);
}

.pr-logout-link .material-icons {
    font-size: 18px;
}

/* Event Switcher Styles */
.pr-event-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: rgba(92, 10, 20, 0.05);
    border: 1px solid rgba(92, 10, 20, 0.1);
    border-radius: 8px;
}

.pr-event-switcher label {
    font-weight: 600;
    color: #5C0A14;
    margin: 0;
    white-space: nowrap;
}

.pr-event-switcher-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(92, 10, 20, 0.2);
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-family: inherit !important;
}

.pr-event-switcher-select:hover {
    border-color: rgba(92, 10, 20, 0.4);
}

.pr-event-switcher-select:focus {
    outline: none;
    border-color: #5C0A14;
    box-shadow: 0 0 0 3px rgba(92, 10, 20, 0.1);
}

/* Force override Materialize select styles */
.pr-event-switcher-select.select-wrapper {
    display: block !important;
    position: relative !important;
}

.pr-event-switcher-select + .select-wrapper {
    display: none !important;
}

.pr-event-switcher-select.initialized {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Custom Event Switcher Styles */
.pr-custom-select {
    position: relative;
    flex: 0 1 auto;
    min-width: 200px;
}

.pr-custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 1px solid rgba(92, 10, 20, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.pr-custom-select-trigger:hover {
    border-color: rgba(92, 10, 20, 0.4);
    background: #fafafa;
}

.pr-custom-select-trigger:focus {
    outline: none;
    border-color: #5C0A14;
    box-shadow: 0 0 0 3px rgba(92, 10, 20, 0.1);
}

.pr-custom-select-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.pr-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid rgba(92, 10, 20, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    min-width: 100%;
    white-space: nowrap;
}

.pr-custom-select-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.pr-custom-select-option:last-child {
    border-bottom: none;
}

.pr-custom-select-option:hover {
    background: rgba(92, 10, 20, 0.05);
    color: #5C0A14;
}

.pr-custom-select-option.selected {
    background: rgba(92, 10, 20, 0.1);
    color: #5C0A14;
    font-weight: 500;
}