body {
    min-width: 310px;
}

.carousel-item img {
    object-fit: contain;
    height: auto;
}

#folderInput {
    max-width: 300px;
}

.loading {
    display: none;
    margin-left: 1rem;
}

.error-message {
    color: #dc3545;
    margin-top: 0.5rem;
    display: none;
}

.modal-dialog.modal-fullscreen {
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
}

.modal-content {
    height: 100%;
    overflow: hidden;
}

#fullScreenImage {
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    display: block;
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.9);
    min-height: 100vh;
    overflow: hidden
}

/*#pdfViewer {
    width: 100%;
    height: 600px;
    border: 1px solid #dee2e6;
    overflow: auto;
    background-color: #525252;
}*/

/*#pdfCanvas {
    display: block;
    margin: 0 auto;
}*/

.search-input {
    height: 20px;
}

#pdfViewerContainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#pdfViewer {
    width: 100%;
    height: auto;
    position: relative;
    overflow: auto;
}

#pdfCanvas {
    width: 100%;
    height: auto;
    display: block;
}

/* Disable right-click on carousel images */
.carousel-inner img {
    margin-top: 1rem;
    -webkit-user-drag: none;
    user-select: none;
}

.folder-cid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.folder-cid-text {
    font-size: clamp(0.55rem, 2vw, 1rem);
    color: #9da5ac;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    background-color: #343a40;
    padding: 10px;
    border-radius: 5px;
    transition: width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.search-box.expanded {
    display: block;
    width: 300px;
}
