* {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
}
html, body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}
input, textarea, select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#exam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
}
#exam-frame-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}
#frame-ujian {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: zoom 0.25s ease-in-out, opacity 0.15s ease;
    transform: translateZ(0);
}

#floating-identity {
    position: fixed;
    z-index: 40;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 4px;
    pointer-events: none;
    transition: all 1s ease-in-out;
    font-family: monospace;
    font-weight: bold;
}

#anti-cheat-curtain {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #090d16;
    color: #ffffff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

@media print {
    @page { margin: 1cm; size: A4; }
    body { background: white !important; margin: 0; padding: 0; overflow: auto; }
    body > *:not(#print-area) { display: none !important; }
    #print-area { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
    .break-inside-avoid { page-break-inside: avoid; break-inside: avoid; }
}
