*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}#root{width:100%}.app-container{max-width:1400px;margin:0 auto;padding:2rem}.app-header{text-align:center;margin-bottom:3rem;color:#fff}.app-title{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,0,0,.1)}.app-subtitle{font-size:1.1rem;opacity:.95;font-weight:300}.upload-section{margin-bottom:2rem}.file-upload-label{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;background:#fff;border:3px dashed #cbd5e1;border-radius:1rem;cursor:pointer;transition:all .3s ease}.file-upload-label:hover{border-color:#667eea;background:#f8fafc;transform:translateY(-2px);box-shadow:0 10px 30px #0000001a}.file-input{display:none}.upload-icon{width:4rem;height:4rem;color:#667eea;margin-bottom:1rem}.upload-text{font-size:1.1rem;font-weight:600;color:#1e293b;margin-bottom:.5rem}.upload-hint{font-size:.875rem;color:#64748b}.pdf-viewer{background:#fff;border-radius:1rem;padding:2rem;box-shadow:0 20px 60px #00000026}.controls-panel{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #f1f5f9}.page-controls{display:flex;align-items:center;gap:1rem}.control-button{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:#667eea;color:#fff;border:none;border-radius:.5rem;cursor:pointer;transition:all .2s ease}.control-button:hover:not(:disabled){background:#5568d3;transform:scale(1.05)}.control-button:disabled{background:#e2e8f0;cursor:not-allowed;opacity:.5}.control-button svg{width:1.25rem;height:1.25rem}.page-info{display:flex;align-items:center;gap:.5rem;background:#f8fafc;padding:.5rem 1.5rem;border-radius:.5rem;font-weight:600}.page-current{color:#667eea;font-size:1.25rem}.page-separator{color:#cbd5e1}.page-total{color:#64748b;font-size:1rem}.reset-button{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:#f1f5f9;color:#475569;border:none;border-radius:.5rem;font-weight:600;cursor:pointer;transition:all .2s ease}.reset-button:hover{background:#e2e8f0;color:#1e293b}.reset-button svg{width:1.25rem;height:1.25rem}.content-wrapper{display:flex;justify-content:space-around;gap:2rem}.coordinates-panel{flex-shrink:0;width:280px;background:linear-gradient(135deg,#667eea,#764ba2);padding:1.5rem;border-radius:1rem;color:#fff;height:fit-content;position:sticky;top:2rem}.panel-title{font-size:1.25rem;font-weight:700;margin-bottom:1.5rem;text-align:center}.coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}.coordinate-item{background:#ffffff26;padding:1rem;border-radius:.75rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-align:center;transition:transform .2s ease}.coordinate-item:hover{transform:translateY(-2px);background:#fff3}.coordinate-label{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;opacity:.9;margin-bottom:.5rem;font-weight:600}.coordinate-value{display:block;font-size:1.5rem;font-weight:700;font-family:Courier New,monospace}.panel-hint{background:#ffffff1a;padding:1rem;border-radius:.75rem;font-size:.875rem;text-align:center;line-height:1.5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.pdf-container{position:relative;display:inline-block;box-shadow:0 10px 40px #0000001a;border-radius:.5rem;overflow:hidden;background:#f8fafc}.draggable-overlay{width:100%;height:100%;background:#3b82f640;border:3px solid #3b82f6;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:move;transition:all .2s ease;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.draggable-overlay:hover{background:#3b82f659;border-color:#2563eb}.overlay-handle{font-size:2rem;color:#3b82f6;margin-bottom:.5rem;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.1)}.overlay-info{background:#fffffff2;padding:.5rem 1rem;border-radius:.375rem;font-weight:600;color:#1e293b;font-size:.875rem;box-shadow:0 2px 8px #0000001a}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;padding:2rem}.spinner{width:3rem;height:3rem;border:4px solid #f3f4f6;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{to{transform:rotate(360deg)}}.loading-container p{color:#64748b;font-weight:500}.error-container p{color:#ef4444;font-weight:500}@media(max-width:1024px){.content-wrapper{flex-direction:column}.coordinates-panel{width:100%;position:static}.coordinate-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:768px){.app-container{padding:1rem}.app-title{font-size:1.75rem}.controls-panel{flex-direction:column;gap:1rem}.coordinate-grid{grid-template-columns:repeat(2,1fr)}.pdf-viewer{padding:1rem}}.input-mode-selector{display:flex;gap:1rem;justify-content:center;margin-bottom:2rem}.mode-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#fff;color:#64748b;border:2px solid #e2e8f0;border-radius:.75rem;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease}.mode-button svg{width:1.25rem;height:1.25rem}.mode-button:hover{border-color:#667eea;color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea33}.mode-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent;box-shadow:0 8px 20px #667eea4d}.base64-section{background:#fff;border-radius:1rem;padding:2rem;box-shadow:0 10px 30px #0000001a;margin-bottom:2rem}.base64-form{display:flex;flex-direction:column;gap:1rem}.base64-input-wrapper{position:relative}.base64-textarea{width:100%;padding:1rem;border:2px solid #e2e8f0;border-radius:.75rem;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;resize:vertical;transition:all .3s ease;background:#f8fafc}.base64-textarea:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.base64-textarea::placeholder{color:#94a3b8}.base64-actions{display:flex;gap:1rem}.base64-submit-button{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:.75rem;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease}.base64-submit-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.base64-submit-button svg{width:1.25rem;height:1.25rem}.base64-clear-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.5rem;background:#f1f5f9;color:#64748b;border:none;border-radius:.75rem;font-weight:600;cursor:pointer;transition:all .3s ease}.base64-clear-button:hover{background:#fee2e2;color:#dc2626}.base64-clear-button svg{width:1.25rem;height:1.25rem}.base64-success{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#d1fae5;color:#065f46;border-radius:.75rem;font-weight:500;margin-top:1rem}.base64-success svg{width:1.5rem;height:1.5rem;flex-shrink:0}@media(max-width:768px){.input-mode-selector{flex-direction:column}.mode-button{justify-content:center}.base64-actions{flex-direction:column}}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors:active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors:active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}
