﻿
.pdf-viewer {
    box-shadow: 0 4px 5px #abacac;
}

.pdf-viewer .card-header {
    padding: .6rem 1rem;
    background: #fff;
}

.pdf-viewer h1 {
    margin: 0 !important;
    text-align: left;
    font-size: 24px;
}

.subheader {
    text-align: left !important;
    font-size: 16px;
    font-weight: 600;
}

.json-output-container {
    border: 2px solid #e1e3e5;
    border-radius: 8px;
    background-color: #fff;
    padding: 15px;
    min-height: 92vh;
    max-height: 92vh;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

h1, h2, h3, .subheader {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.pdf-preview-container {
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #f5f5f5;
    padding: 15px;
    min-height: 92vh;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

#arrowOverlay line {
    stroke: #0000FF !important;
}

#arrowOverlay polygon {
    fill: #0000FF !important;
}

.json-tree {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #1e2a4a;
}

.json-header {
    cursor: pointer;
    padding: 6px 10px;
    background-color: #e8f0fe;
    border-left: 3px solid #00b0f0;
    margin-top: 12px;
    user-select: none;
    font-weight: 600;
    margin-left: 0;
    background: #FFF;
    margin-bottom: 0;
    box-shadow: 4px 0 20px 0 rgba(0, 64, 93, 15%);
}

    .json-header:hover {
        color: #fff;
        background-color: #00609c;
    }

.json-row {
    padding: 4px 10px;
    margin-left: 20px;
    margin-left: 15px;
    background: rgb(255 255 255 / 65%);
    /* margin-bottom: 12px; */
    border-bottom: 1px solid #e2e2e2;
    padding: 8px;
}

.json-key {
    font-weight: 600;
    color: #333;
}

.json-value {
    margin-left: 6px;
    color: #1a1a1a;
}


    /* Indentation */
    .level-0 {
        margin-left: 0;
    }

.level-1 {
    margin-left: 15px;
}

.level-2 {
    margin-left: 30px;
}

.level-3 {
    margin-left: 45px;
}

.json-children {
    background: #f3f6f7 !important;
    padding: 12px;
}
    /* Collapsed children hidden by default */
    .json-children.collapsed {
        display: none;
    }

.arrow {
    display: inline-block;
    width: 12px;
    margin-right: 6px;
    font-size: 12px;
    vertical-align: middle;
}

.json-row.highlighted {
    background-color: #d5e2fd;
    border-left: 3px solid #4a90e2;
}

#pdfPreviewContainer {
    position: relative;
    overflow-y: auto;
    max-height: 92vh; /* for scrolling */
}

.highlight-box {
    position: absolute;
    border: 2px solid blue;
    background: rgba(0,0,255,0.2);
    pointer-events: none;
    z-index: 999;
}


#zoomBox {
    box-sizing: border-box;
}

.modal-backdrop {
    width: 100%;
    height: 100%
}

.btn-primary {
    background: #00609C !important;
}

.filename {
    text-align: left;
    background: #f4f4f4;
    padding: 6px;
    font-weight: 600;
}

.pdf-uploader {
    font-size: 22px;
}

.upload-container {
    border: 2px dashed #f0ebff;
    position: relative;
    padding: 2rem;
}

    .upload-container input[type="file"] {
        width: 100%;
        opacity: 0;
        padding: 20px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        cursor: pointer;
        z-index: 10;
    }

.upload i {
    font-size: 42px;
    color: #318651;
    opacity: 0.8;
}

.textarea {
    min-height: 400px !important;
    margin-top: 1rem
}

.sticky-bottom {
    position: fixed !important;
    left: 0;
    right: 0
}
.level-card {
    padding: 12px;
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 5px;
}

    .level-card .level-2 {
        margin: 0
    }