.pdf-viewer-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #2c2c2c;
}

.pdf-viewer-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-back {
    background: transparent;
    border: none;
    color: #0097dc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(0, 151, 220, 0.1);
}

.viewer-notice {
    background: linear-gradient(135deg, rgba(0, 151, 220, 0.1) 0%, rgba(0, 220, 180, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 8px;
    color: #0097dc;
    font-size: 14px;
    font-weight: 600;
}

.pdf-viewer-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.pdf-viewer-content {
    position: relative;
    max-width: 100%;
}

#pdf-canvas {
    display: block;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    background: white;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.pdf-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.pdf-btn {
    background: transparent;
    border: none;
    color: #0097dc;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.pdf-btn:hover {
    background: rgba(0, 151, 220, 0.1);
    transform: scale(1.1);
}

.pdf-btn:active {
    transform: scale(0.95);
}

#page-info {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: center;
}


.custom-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.4);
    z-index: 10000;
    font-weight: 600;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s;
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.error-message {
    text-align: center;
    padding: 50px;
    color: white;
    font-size: 18px;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: #ff3b30;
}

.pdf-viewer-wrapper * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.pdf-viewer-wrapper img,
.pdf-viewer-wrapper canvas {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@media (max-width: 768px) {
    .viewer-notice {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .pdf-controls {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .pdf-btn {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    #page-info {
        font-size: 14px;
        min-width: 60px;
    }
    
    .watermark {
        font-size: 24px;
        letter-spacing: 5px;
    }
}