/* BL SCANNING DROPZONE AREA/ FILE UPLOAD*/ 
 /* File Explorer Style Thumbnails */
 #fileCardsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
    background-color: white;
}

.file-item-grid {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 5px;
    border-radius: 2px;
    transition: all 0.2s;
    position: relative;
}

.file-item-grid:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.file-item-grid:active {
    background-color: rgba(0, 123, 255, 0.2);
}

.file-item-grid.selected {
    background-color: rgba(0, 123, 255, 0.2);
    outline: 2px solid #0078d7;
    position: relative;
}

.file-item-grid.selected:after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #0078d7;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.file-thumbnail-container {
    width: 80px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.file-thumbnail {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdf-thumbnail {
    width: 70px;
    height: 90px;
    background-color: white;
    border: 1px solid #ddd;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.pdf-thumbnail:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 15px 15px 0;
    border-style: solid;
    border-color: #ddd white;
}

.pdf-icon {
    background-color: #f44336;
    color: white;
    font-weight: bold;
    padding: 4px 0;
    font-size: 16px;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.video-thumbnail, .zip-thumbnail, .generic-thumbnail {
    width: 70px;
    height: 90px;
    background-color: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.video-thumbnail i, .zip-thumbnail i {
    font-size: 32px;
    color: #555;
}

.file-ext {
    background-color: #4285f4;
    color: white;
    font-weight: bold;
    padding: 4px 0;
    font-size: 14px;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.file-name {
    font-size: 12px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    padding: 0 5px;
}

.file-info {
    font-size: 10px;
    color: #777;
    text-align: center;
    margin-top: 3px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal styling improvements */
.modal-dialog.file-browser-dialog {
    width: 90%;
    max-width: 800px;
}

.modal-content {
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}


/* Scan Results Styling */
.scan-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.scan-summary {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-weight: bold;
}

.scan-result-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #ddd;
}

.scan-result-item h5 {
    margin-top: 0;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.scan-result-item p {
    margin: 5px 0;
}

.scan-result-item ul {
    margin-top: 5px;
    padding-left: 20px;
}

.scan-result-item.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.scan-result-item.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.scan-result-item.no-qr {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

/* DOCUMENT SCANNING RESPONSE*/ 

.file-item {
    padding: 8px;
    margin: 4px 0;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.file-item .file-status {
    font-size: 0.9em;
    color: #666;
}
.file-item.processing .file-status {
    color: #007bff;
}
.file-item.success .file-status {
    color: #28a745;
}
.file-item.error .file-status {
    color: #dc3545;
}
.fileBrowserModalButton:hover {
    color: #0056b3;
}


.auto-reload-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 9999;
}
