    #pdfModal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 9999;
        backdrop-filter: blur(5px);
    }
    #pdfModal .modal-content {
        position: relative;
        width: 92%;
        max-width: 900px;
        height: 90%;
        margin: 2% auto;
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
    }
    #pdfModal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
        flex-shrink: 0;
    }
    #pdfModal .modal-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1e3a8a;
        margin: 0;
    }
    #pdfModal .modal-header .close-btn {
        background: #fee2e2;
        border: none;
        color: #dc2626;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #pdfModal .modal-header .close-btn:hover {
        background: #fecaca;
        transform: scale(1.05);
    }
    #pdfModal .pdf-viewer-wrapper {
        flex: 1;
        overflow: auto;
        margin-top: 15px;
        background: #f8fafc;
        border-radius: 12px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
    }
    #pdfModal canvas {
        max-width: 100%;
        height: auto;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border-radius: 8px;
        background: white;
    }
    #pdfModal .pdf-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 12px 0;
        flex-shrink: 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 10px;
    }
    #pdfModal .pdf-controls button {
        padding: 8px 20px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    #pdfModal .pdf-controls button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    #pdfModal .pdf-controls button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }
    #pdfModal .pdf-controls .btn-prev {
        background: #e5e7eb;
        color: #374151;
    }
    #pdfModal .pdf-controls .btn-prev:hover:not(:disabled) {
        background: #d1d5db;
    }
    #pdfModal .pdf-controls .btn-next {
        background: #2563eb;
        color: white;
    }
    #pdfModal .pdf-controls .btn-next:hover:not(:disabled) {
        background: #1d4ed8;
    }
    #pdfModal .pdf-controls .btn-download {
        background: #10b981;
        color: white;
        margin-left: 10px;
    }
    #pdfModal .pdf-controls .btn-download:hover:not(:disabled) {
        background: #059669;
    }
    #pdfModal .pdf-controls .page-info {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        min-width: 80px;
        text-align: center;
    }
    #pdfModal .pdf-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 300px;
        color: #6b7280;
    }
    #pdfModal .pdf-loading i {
        font-size: 48px;
        color: #2563eb;
        margin-bottom: 16px;
    }
    #pdfModal .pdf-error {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 300px;
        color: #dc2626;
    }
    #pdfModal .pdf-error i {
        font-size: 48px;
        margin-bottom: 16px;
    }

