* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 92vh;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.name-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.name-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.name-link:hover h1 {
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 1.9rem;
    margin-bottom: 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    transition: text-shadow 0.3s ease;
}

.header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

.student-id {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 50px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 34px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-btn:active {
    transform: translateY(0);
}

.profile-btn svg {
    transition: transform 0.3s ease;
}

.profile-btn:hover svg {
    transform: scale(1.1);
}

.pdf-container {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    margin: 8px;
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

#pdfFrame {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

/* Cover top portion to hide Google Drive controls */
.pdf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Disable right-click on iframe */
.pdf-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(118, 75, 162, 0.3), transparent);
}

.footer p {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
}

.footer p::before {
    content: '🔒';
    margin-right: 8px;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
    }

    .container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow: hidden;
    }

    .header {
        padding: 20px 15px;
    }

    .document-badge {
        font-size: 0.65rem;
        padding: 6px 18px;
        letter-spacing: 1.5px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header-meta {
        gap: 8px;
    }

    .student-id {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        padding: 0 12px;
        height: 32px;
        min-width: auto;
    }

    .profile-btn {
        font-size: 0.7rem;
        padding: 0 12px;
        height: 32px;
        min-width: auto;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .pdf-container {
        margin: 4px;
        border-radius: 12px;
    }

    .footer {
        padding: 10px 15px;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Additional protection layers */
body {
    -webkit-touch-callout: none;
}

img {
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for iframe */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.pdf-container:empty::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
}