﻿body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
}

/* Responsive thumbnail container */
#filePreviewList .preview-box {
    position: relative;
    margin: 10px;
    padding: 5px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    width: 100%;
    max-width: 160px;
    cursor: move;
    text-align: center;
    overflow: hidden;
}

/* Canvas for PDF preview */
.preview-box canvas {
    width: 100%;
    height: 180px !important;
    object-fit: contain;
    border-radius: 3px;
}

/* File name styling */
.preview-name {
    font-size: 12px;
    margin-top: 5px;
    word-break: break-word;
    overflow: hidden;
    white-space: normal;
}

/* File size styling */
.preview-size {
    font-size: 11px;
    color: #888;
}

/* Delete button */
.remove-btn {
    position: absolute;
    top: 2px;
    right: 4px;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    line-height: 18px;
    padding: 0;
}

/* Responsive row spacing */
#filePreviewList {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.preview-box canvas {
    width: 100%;
    height: auto;
    max-height: 180px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
}

.preview-box canvas {
    width: 100%;
    height: auto;
    max-height: 180px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    display: block;
}

.preview-box {
    min-height: 200px;
}

    .preview-box img.pdf-preview-image {
        width: 100%;
        height: auto;
        max-height: 180px;
        border: 1px solid #ccc;
        border-radius: 3px;
        margin-bottom: 8px;
        display: block;
    }
