

/* Upload Section */



/* Merge Button */
.merge-btn { margin-top: 20px; padding: 12px 25px; background: #28a745; color: white; border: none; border-radius: 6px; cursor: pointer; }
.merge-btn:hover { background: #218838; }


/* PDF Preview */
.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

/* Each PDF Card */
.pdf-preview {
    background: #1e293b;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.pdf-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Thumbnail */
.pdf-preview canvas {
    width: 100%;
    border-radius: 8px;
    background: #0f172a;
    margin-bottom: 8px;
}

/* Filename */
.pdf-filename {
    font-size: 0.9rem;
    color: #e2e8f0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

/* Remove button */
.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 77, 77, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.remove-btn:hover {
    background: #e60000;
}


.preview-controls {
    display: flex;
    justify-content: space-between; /* places counter left, button right */
    align-items: center;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.preview-controls span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.preview-controls button {
    padding: 6px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.preview-controls button:hover {
    background: #0056b3;
}


